diff --git a/textproc/Makefile b/textproc/Makefile index 4812a197e808..1c07d54b6136 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -23,6 +23,7 @@ SUBDIR += dict SUBDIR += diff-mode.el SUBDIR += diffstat + SUBDIR += diffutils SUBDIR += docbook SUBDIR += docbook-241 SUBDIR += docbook-300 diff --git a/textproc/diffutils/Makefile b/textproc/diffutils/Makefile new file mode 100644 index 000000000000..feb830ec0999 --- /dev/null +++ b/textproc/diffutils/Makefile @@ -0,0 +1,37 @@ +# New ports collection makefile for: diffutils +# Date created: 5 September 2001 +# Whom: Garrett Rooney +# +# $FreeBSD$ +# + +PORTNAME= diffutils +PORTVERSION= 2.7 +CATEGORIES= textproc +MASTER_SITES= ${MASTER_SITE_GNU} +MASTER_SITE_SUBDIR= diffutils + +MAINTAINER= rooneg@electricjellyfish.net + +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --program-prefix=g + +INSTALL_INFO?= install-info + +post-extract: remove-info-files + +remove-info-files: + @${RM} -f ${WRKSRC}/${PORTNAME:S/utils//}.info* + +post-patch: patch-makeinfo + +patch-makeinfo: + @${PERL} -pi.fbsd -e 's|makeinfo|makeinfo --no-split|g' \ + ${WRKSRC}/Makefile.in + +post-install: install-info + +install-info: + @${INSTALL_INFO} ${PREFIX}/info/${PORTNAME:S/utils//}.info ${PREFIX}/info/dir + +.include diff --git a/textproc/diffutils/distinfo b/textproc/diffutils/distinfo new file mode 100644 index 000000000000..b600335a67f1 --- /dev/null +++ b/textproc/diffutils/distinfo @@ -0,0 +1 @@ +MD5 (diffutils-2.7.tar.gz) = 300d86a0566afee1c3756828f6c9538a diff --git a/textproc/diffutils/files/patch-diff.texi b/textproc/diffutils/files/patch-diff.texi new file mode 100644 index 000000000000..50a0e45ee30a --- /dev/null +++ b/textproc/diffutils/files/patch-diff.texi @@ -0,0 +1,21 @@ +--- diff.texi.orig Fri Sep 30 21:54:40 1994 ++++ diff.texi Sat Sep 8 16:56:14 2001 +@@ -6,6 +6,18 @@ + @c %**end of header + + @ifinfo ++@format ++INFO-DIR-SECTION Comparing and Merging Files ++START-INFO-DIR-ENTRY ++* Comparing files: (diff). Comparing and Merging Files. ++* cmp: (diff)cmp invocation. Compares two files. ++* diff: (diff)diff invocation. Pretty compares two files. ++* diff3: (diff)diff3 invocation. Compares and Merges three files. ++* patch: (diff)patch invocation. Apply a diff file to an original ++* sdiff: (diff)sdiff invocation. Interactively compares two files ++END-INFO-DIR-ENTRY ++@end format ++ + This file documents the the GNU @code{diff}, @code{diff3}, @code{sdiff}, + and @code{cmp} commands for showing the differences between text files + and the @code{patch} command for using their output to update files. diff --git a/textproc/diffutils/pkg-comment b/textproc/diffutils/pkg-comment new file mode 100644 index 000000000000..128be741d300 --- /dev/null +++ b/textproc/diffutils/pkg-comment @@ -0,0 +1 @@ +The GNU diff utilities diff --git a/textproc/diffutils/pkg-descr b/textproc/diffutils/pkg-descr new file mode 100644 index 000000000000..69c37cadb231 --- /dev/null +++ b/textproc/diffutils/pkg-descr @@ -0,0 +1,11 @@ +The Free Software Foundation's "diff" utilities, including "diff", +"diff3", "sdiff", and "cmp". + +These utilities exist in the FreeBSD base collection, but the GNU +versions have added functionality that is sometimes useful. + +Note that this port will install these utilities with a `g' prefix, +for example gdiff, gdiff3, ggcmp, but the texinfo documentation +will refer to these utilities without the `g' prefix. + +WWW: http://www.gnu.org/software/diffutils/diffutils.html diff --git a/textproc/diffutils/pkg-plist b/textproc/diffutils/pkg-plist new file mode 100644 index 000000000000..f1014b5e7f98 --- /dev/null +++ b/textproc/diffutils/pkg-plist @@ -0,0 +1,8 @@ +@comment $FreeBSD$ +bin/gcmp +bin/gdiff +bin/gdiff3 +bin/gsdiff +@unexec install-info --quiet --delete %D/info/diff.info %D/info/dir +info/diff.info +@exec install-info %D/info/diff.info %D/info/dir