1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

Add textproc/sdif, a post-processor of diff(1) output for pretty-printing.

This commit is contained in:
Hiroki Sato 2017-04-01 09:10:20 +00:00
parent 9e65d7fea5
commit b45cef2d66
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=437401
4 changed files with 55 additions and 0 deletions

View File

@ -1593,6 +1593,7 @@
SUBDIR += scss
SUBDIR += sdcv
SUBDIR += sdf
SUBDIR += sdif
SUBDIR += sdocbook-xml
SUBDIR += sdom
SUBDIR += senna

38
textproc/sdif/Makefile Normal file
View File

@ -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>

3
textproc/sdif/distinfo Normal file
View File

@ -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

13
textproc/sdif/pkg-descr Normal file
View File

@ -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