From c473e0ea16a2c25868a5dd473a685ebeb5dd6e46 Mon Sep 17 00:00:00 2001 From: woodsb02 Date: Mon, 29 May 2017 13:50:20 +0000 Subject: misc/mc: Use textproc/diffutils on FreeBSD 12 - The new bsddiff in FreeBSD 12 does not yet support --old-group-format - Fix python shebangfix to require python2 PR: 219277 Submitted by: bsam --- misc/mc/Makefile | 12 ++++++++++-- misc/mc/files/extra-patch-src_diffviewer_ydiff.c | 11 +++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 misc/mc/files/extra-patch-src_diffviewer_ydiff.c (limited to 'misc') diff --git a/misc/mc/Makefile b/misc/mc/Makefile index 45ba5d63d039..2c1cbe9d313d 100644 --- a/misc/mc/Makefile +++ b/misc/mc/Makefile @@ -3,7 +3,7 @@ PORTNAME= mc PORTVERSION= 4.8.19 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= misc shells MASTER_SITES= http://ftp.midnight-commander.org/ \ http://ftp.osuosl.org/pub/midnightcommander/ @@ -20,6 +20,7 @@ SHEBANG_FILES= misc/mcedit.menu.in configure configure.ac \ ${WRKSRC}/src/vfs/extfs/helpers/Makefile.in \ ${WRKSRC}/src/vfs/extfs/helpers/s3+.in \ ${WRKSRC}/src/vfs/extfs/helpers/uc1541.in +python_CMD= ${LOCALBASE}/bin/python2 python_OLD_CMD= @PYTHON@ USE_GNOME= glib20 GNU_CONFIGURE= yes @@ -90,4 +91,11 @@ post-install-X11-on: ${STAGEDIR}${PREFIX}/share/pixmaps/ ${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR} -.include +.include + +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200030 +EXTRA_PATCHES= ${FILESDIR}/extra-patch-src_diffviewer_ydiff.c +RUN_DEPENDS= gdiff:textproc/diffutils +.endif + +.include diff --git a/misc/mc/files/extra-patch-src_diffviewer_ydiff.c b/misc/mc/files/extra-patch-src_diffviewer_ydiff.c new file mode 100644 index 000000000000..988d45e447a5 --- /dev/null +++ b/misc/mc/files/extra-patch-src_diffviewer_ydiff.c @@ -0,0 +1,11 @@ +--- src/diffviewer/ydiff.c.orig 2017-03-04 20:51:38 UTC ++++ src/diffviewer/ydiff.c +@@ -816,7 +816,7 @@ dff_execute (const char *args, const char *extra, cons + /* escape potential $ to avoid shell variable substitutions in popen() */ + file1_esc = strutils_shell_escape (file1); + file2_esc = strutils_shell_escape (file2); +- cmd = g_strdup_printf ("diff %s %s %s %s %s", args, extra, opt, file1_esc, file2_esc); ++ cmd = g_strdup_printf ("gdiff %s %s %s %s %s", args, extra, opt, file1_esc, file2_esc); + g_free (file1_esc); + g_free (file2_esc); + -- cgit