diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-09-26 09:26:11 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-09-26 09:26:11 +0000 |
commit | 9a68a598a698caea83be82e4c96d483329987c90 (patch) | |
tree | e2e3c0322152e6da57a3ac8733b807b72a898eb8 /textproc/bsdgrep | |
parent | d48bb62e247be350e758ff32714b8d5b3c4b580a (diff) |
Notes
Diffstat (limited to 'textproc/bsdgrep')
-rw-r--r-- | textproc/bsdgrep/Makefile | 24 | ||||
-rw-r--r-- | textproc/bsdgrep/pkg-plist | 5 |
2 files changed, 9 insertions, 20 deletions
diff --git a/textproc/bsdgrep/Makefile b/textproc/bsdgrep/Makefile index 8b19d4b3b0e3..350a9148d8dc 100644 --- a/textproc/bsdgrep/Makefile +++ b/textproc/bsdgrep/Makefile @@ -3,7 +3,7 @@ PORTNAME= grep PORTVERSION= 20111002 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= textproc MASTER_SITES= LOCAL/gabor PKGNAMEPREFIX= bsd- @@ -20,26 +20,18 @@ MAKE_ENV+= BINDIR="${PREFIX}/bin" \ OPTIONS_DEFINE= GNU_COMPAT NLS OPTIONS_DEFAULT= GNU_COMPAT +OPTIONS_SUB= yes GNU_COMPAT_DESC= Use GNU regex library (recommended) CONFLICTS= gnugrep-* -.include <bsd.port.options.mk> +NLS_MAKE_ENV_OFF= WITHOUT_NLS=yes +GNU_COMPAT_MAKE_ENV_OFF= WITHOUT_GNU_COMPAT=yes -.if ${PORT_OPTIONS:MNLS} -PLIST_SUB+= NLS="" -.else -MAKE_ENV+= WITHOUT_NLS=yes -PLIST_SUB+= NLS="@comment " -.endif - -.if !${PORT_OPTIONS:MGNU_COMPAT} -MAKE_ENV+= WITHOUT_GNU_COMPAT=yes -.endif - -pre-install: -.if ${PORT_OPTIONS:MNLS} +pre-install-NLS-on: ${MKDIR} ${STAGEDIR}${PREFIX}/share/nls/gl_ES.ISO8859-1 -.endif + +post-install: + ${LN} -sf ${PREFIX}/bin/grep ${STAGEDIR}${PREFIX}/bin/bsdgrep .include <bsd.port.mk> diff --git a/textproc/bsdgrep/pkg-plist b/textproc/bsdgrep/pkg-plist index b9d2e31d267e..3a322bf9800f 100644 --- a/textproc/bsdgrep/pkg-plist +++ b/textproc/bsdgrep/pkg-plist @@ -1,7 +1,4 @@ -@unexec rm -f %D/bin/bsdgrep -@exec /bin/ln -s %D/bin/grep %D/bin/bsdgrep -@unexec rm -f %D/bin/gnugrep -@exec /bin/ln -s /usr/bin/grep %D/bin/gnugrep +bin/bsdgrep bin/bzegrep bin/bzfgrep bin/bzgrep |