summaryrefslogtreecommitdiff
path: root/textproc/sdif/Makefile
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2017-04-01 09:10:20 +0000
committerHiroki Sato <hrs@FreeBSD.org>2017-04-01 09:10:20 +0000
commitb45cef2d6693f7b1c910521aa2cd2c390636ea6a (patch)
tree2598c902e86d24559d6f962064912ab44cfafa8f /textproc/sdif/Makefile
parent- Fix WWW (diff)
Add textproc/sdif, a post-processor of diff(1) output for pretty-printing.
Diffstat (limited to 'textproc/sdif/Makefile')
-rw-r--r--textproc/sdif/Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/textproc/sdif/Makefile b/textproc/sdif/Makefile
new file mode 100644
index 000000000000..752535d10a50
--- /dev/null
+++ b/textproc/sdif/Makefile
@@ -0,0 +1,38 @@
+# $FreeBSD$
+
+PORTNAME= sdif
+PORTVERSION= 2.8.20170401
+DISTVERSIONPREFIX= v
+CATEGORIES= textproc
+
+MAINTAINER= hrs@FreeBSD.org
+COMMENT= Side-by-side diff viewer for ANSI terminal
+
+LICENSE= GREPLE
+LICENSE_NAME= GREPLE License
+LICENSE_FILE= ${WRKSRC}/LICENSE
+LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
+
+RUN_DEPENDS= ${SITE_PERL}/Getopt/EX.pm:devel/p5-Getopt-EX
+
+USES= perl5 shebangfix
+SHEBANG_FILES= ${PORTNAME}
+USE_GITHUB= yes
+GH_ACCOUNT= kaz-utashiro
+GH_TAGNAME= 356575d
+NO_BUILD= yes
+NO_ARCH= yes
+PLIST_FILES= bin/sdif \
+ %%SITE_PERL%%/App/sdif/colors.pm \
+ %%SITE_PERL%%/App/sdif/osx_autocolor.pm
+
+post-extract:
+ cd ${WRKSRC} && \
+ ${SED} -n "/^## Copyright/,/^$$/p" sdif > LICENSE
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+ cd ${WRKSRC}/lib && \
+ ${COPYTREE_SHARE} App ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}
+
+.include <bsd.port.mk>