diff --git a/devel/gpatch/Makefile b/devel/gpatch/Makefile new file mode 100644 index 00000000000..e6346a4f3bf --- /dev/null +++ b/devel/gpatch/Makefile @@ -0,0 +1,38 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2012/09/23 12:23:35 rpe Exp $ + +COMMENT= GNU patch + +VERSION= 2.7 +DISTNAME= patch-${VERSION} +PKGNAME= gpatch-${VERSION} +CATEGORIES= devel + +HOMEPAGE= http://www.gnu.org/software/patch/ + +# GPLv3+ +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +WANTLIB= c + +MASTER_SITES= ${MASTER_SITE_GNU:=patch/} + +USE_GMAKE= Yes +USE_GROFF= Yes + +CONFIGURE_STYLE= gnu +CONFIGURE_ARGS+= --program-prefix=g + +REGRESS_DEPENDS= shells/bash \ + textproc/gdiff +REGRESS_FLAGS= SHELL=${LOCALBASE}/bin/bash + +pre-regress: + @ln -fs ${LOCALBASE}/bin/gdiff ${WRKDIR}/bin/diff + +post-install: + @rm ${PREFIX}/lib/charset.alias + +.include diff --git a/devel/gpatch/distinfo b/devel/gpatch/distinfo new file mode 100644 index 00000000000..2c2a1ee129c --- /dev/null +++ b/devel/gpatch/distinfo @@ -0,0 +1,2 @@ +SHA256 (patch-2.7.tar.gz) = WcKfVvqgqSSCfmpgxqzNbikA6uXGqqkiJoxxfwamIEg= +SIZE (patch-2.7.tar.gz) = 1013029 diff --git a/devel/gpatch/pkg/DESCR b/devel/gpatch/pkg/DESCR new file mode 100644 index 00000000000..98d1bd3b968 --- /dev/null +++ b/devel/gpatch/pkg/DESCR @@ -0,0 +1,9 @@ +GNU patch is the Free Software Foundation's version of the patch(1) +command. + +Patch takes a patch file containing a difference listing produced +by the diff program and applies those differences to one or more +original files, producing patched versions. + +The patch binary is prefixed with the letter g to differentiate it +from the standard application with the same name. diff --git a/devel/gpatch/pkg/PLIST b/devel/gpatch/pkg/PLIST new file mode 100644 index 00000000000..76b15d0a329 --- /dev/null +++ b/devel/gpatch/pkg/PLIST @@ -0,0 +1,3 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2012/09/23 12:23:35 rpe Exp $ +@bin bin/gpatch +@man man/man1/gpatch.1