Date: Sat, 1 Apr 2017 09:10:21 +0000 (UTC) From: Hiroki Sato <hrs@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r437401 - in head/textproc: . sdif Message-ID: <201704010910.v319ALes050964@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hrs Date: Sat Apr 1 09:10:20 2017 New Revision: 437401 URL: https://svnweb.freebsd.org/changeset/ports/437401 Log: Add textproc/sdif, a post-processor of diff(1) output for pretty-printing. Added: head/textproc/sdif/ head/textproc/sdif/Makefile (contents, props changed) head/textproc/sdif/distinfo (contents, props changed) head/textproc/sdif/pkg-descr (contents, props changed) Modified: head/textproc/Makefile Modified: head/textproc/Makefile ============================================================================== --- head/textproc/Makefile Sat Apr 1 09:02:07 2017 (r437400) +++ head/textproc/Makefile Sat Apr 1 09:10:20 2017 (r437401) @@ -1593,6 +1593,7 @@ SUBDIR += scss SUBDIR += sdcv SUBDIR += sdf + SUBDIR += sdif SUBDIR += sdocbook-xml SUBDIR += sdom SUBDIR += senna Added: head/textproc/sdif/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/sdif/Makefile Sat Apr 1 09:10:20 2017 (r437401) @@ -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> Added: head/textproc/sdif/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/sdif/distinfo Sat Apr 1 09:10:20 2017 (r437401) @@ -0,0 +1,3 @@ +TIMESTAMP = 1491037017 +SHA256 (kaz-utashiro-sdif-v2.8.20170401-356575d_GH0.tar.gz) = e2ee2814f585dccc9b90e5b76fc55cf5b6edace91043831e3a839ead5856fdb2 +SIZE (kaz-utashiro-sdif-v2.8.20170401-356575d_GH0.tar.gz) = 16067 Added: head/textproc/sdif/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/sdif/pkg-descr Sat Apr 1 09:10:20 2017 (r437401) @@ -0,0 +1,13 @@ +sdif is inspired by System V sdiff(1) command. The basic feature of +sdif is making a side-by-side listing of two different files. All +contents of two files are listed on left and right sides. Center +column is used to indicate how different those lines. No mark means +no difference. Added, deleted and modified lines are marked with `-' +and `+' character. + +It also reads and formats the output from diff command from standard +input. Besides normal diff output, context diff -c and unified diff +-u output will be handled properly. Combined diff format is also +supported, but currently limited upto three files. + +WWW: https://github.com/kaz-utashiro/sdif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704010910.v319ALes050964>