summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwoodsb02 <woodsb02@FreeBSD.org>2017-05-29 13:50:20 +0000
committerwoodsb02 <woodsb02@FreeBSD.org>2017-05-29 13:50:20 +0000
commitc473e0ea16a2c25868a5dd473a685ebeb5dd6e46 (patch)
tree21312f2bf8cfa7324c7eb7fda287ac9ed077cd33
parent7c5d78ec4f5949db1723ce7944e475fc26cda95d (diff)
downloadFreeBSD-ports-c473e0ea16a2c25868a5dd473a685ebeb5dd6e46.zip
FreeBSD-ports-c473e0ea16a2c25868a5dd473a685ebeb5dd6e46.tar.gz
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
-rw-r--r--misc/mc/Makefile12
-rw-r--r--misc/mc/files/extra-patch-src_diffviewer_ydiff.c11
2 files changed, 21 insertions, 2 deletions
diff --git a/misc/mc/Makefile b/misc/mc/Makefile
index 45ba5d6..2c1cbe9 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 <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200030
+EXTRA_PATCHES= ${FILESDIR}/extra-patch-src_diffviewer_ydiff.c
+RUN_DEPENDS= gdiff:textproc/diffutils
+.endif
+
+.include <bsd.port.post.mk>
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 0000000..988d45e
--- /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);
+
OpenPOWER on IntegriCloud