diff options
author | erwin <erwin@FreeBSD.org> | 2005-07-07 02:06:20 +0800 |
---|---|---|
committer | erwin <erwin@FreeBSD.org> | 2005-07-07 02:06:20 +0800 |
commit | af1dafd04a45bf122dff24633a75f84f28726aaf (patch) | |
tree | 3bc5aafd792976ccc4683aaeb8c7e497f688625d /textproc | |
parent | b8b0549e06d19de5373fec2537b2445205c65402 (diff) | |
download | freebsd-ports-gnome-af1dafd04a45bf122dff24633a75f84f28726aaf.tar.gz freebsd-ports-gnome-af1dafd04a45bf122dff24633a75f84f28726aaf.tar.zst freebsd-ports-gnome-af1dafd04a45bf122dff24633a75f84f28726aaf.zip |
Add colordiff 1.0.5, a tool to colorize diff output.
Colordiff is a wrapper for diff and produces the same output as diff but with
coloured syntax highlighting at the command line to improve readability.
The output is similar to how a diff-generated patch might appear in Vim or Emacs
with the appropriate syntax highlighting options enabled.
PR: ports/83062
Submitted by: Emanuel Haupt <ehaupt@critical.ch>
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/Makefile | 1 | ||||
-rw-r--r-- | textproc/colordiff/Makefile | 41 | ||||
-rw-r--r-- | textproc/colordiff/distinfo | 2 | ||||
-rw-r--r-- | textproc/colordiff/pkg-descr | 10 |
4 files changed, 54 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile index b529b9024005..60ca3f601d22 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -51,6 +51,7 @@ SUBDIR += coco SUBDIR += code2html SUBDIR += cole + SUBDIR += colordiff SUBDIR += cost SUBDIR += crimson SUBDIR += cs-aspell diff --git a/textproc/colordiff/Makefile b/textproc/colordiff/Makefile new file mode 100644 index 000000000000..07ece3e68dc4 --- /dev/null +++ b/textproc/colordiff/Makefile @@ -0,0 +1,41 @@ +# New ports collection makefile for: colordiff +# Date created: 6 Jul 2005 +# Whom: Emanuel Haupt <ehaupt@critical.ch> +# +# $FreeBSD$ +# + +PORTNAME= colordiff +PORTVERSION= 1.0.5 +CATEGORIES= textproc +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED} +MASTER_SITE_SUBDIR= ${PORTNAME} + +MAINTAINER= ehaupt@critical.ch +COMMENT= A tool to colorize diff output + +USE_PERL5= yes +USE_REINPLACE= yes +NO_BUILD= yes + +PLIST_DIRS= %%EXAMPLESDIR%% +PLIST_FILES= bin/colordiff %%EXAMPLESDIR%%/colordiffrc +MAN1= colordiff.1 + +.include <bsd.port.pre.mk> + +.if ${PERL_LEVEL} < 500806 +IGNORE= needs Perl 5.8.6 or above (lang/perl5.8) +.endif + +post-patch: + @${REINPLACE_CMD} -e 's|/usr/local/bin/perl|${PERL}|' \ + ${WRKSRC}/${PORTNAME}.pl + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl ${PREFIX}/bin/${PORTNAME} + ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${PREFIX}/man/man1 + ${MKDIR} ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/colordiffrc ${EXAMPLESDIR} + +.include <bsd.port.post.mk> diff --git a/textproc/colordiff/distinfo b/textproc/colordiff/distinfo new file mode 100644 index 000000000000..de50e488e3c0 --- /dev/null +++ b/textproc/colordiff/distinfo @@ -0,0 +1,2 @@ +MD5 (colordiff-1.0.5.tar.gz) = b8ef81a80dfa8a4c001915d03a73f7d1 +SIZE (colordiff-1.0.5.tar.gz) = 14243 diff --git a/textproc/colordiff/pkg-descr b/textproc/colordiff/pkg-descr new file mode 100644 index 000000000000..a05a770bdc10 --- /dev/null +++ b/textproc/colordiff/pkg-descr @@ -0,0 +1,10 @@ +Colordiff is a wrapper for diff and produces the same output as diff but with +coloured syntax highlighting at the command line to improve readability. + +The output is similar to how a diff-generated patch might appear in Vim or Emacs +with the appropriate syntax highlighting options enabled. + +WWW: http://colordiff.sourceforge.net/ + +- ehaupt +ehaupt@critical.ch |