aboutsummaryrefslogtreecommitdiff
path: root/textproc/bsdgrep
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2014-01-26 00:03:51 +0000
committerMathieu Arnold <mat@FreeBSD.org>2014-01-26 00:03:51 +0000
commit005071a063d80b0b3365ca212399876ea3a2361c (patch)
tree4b7f7b88d3de8b518ba048a5eff4bfd091c74416 /textproc/bsdgrep
parent18bc365f51a1a0bae2df36720bd7c0925f1ccf08 (diff)
downloadports-005071a063d80b0b3365ca212399876ea3a2361c.tar.gz
ports-005071a063d80b0b3365ca212399876ea3a2361c.zip
Notes
Diffstat (limited to 'textproc/bsdgrep')
-rw-r--r--textproc/bsdgrep/Makefile26
-rw-r--r--textproc/bsdgrep/pkg-plist23
2 files changed, 22 insertions, 27 deletions
diff --git a/textproc/bsdgrep/Makefile b/textproc/bsdgrep/Makefile
index 82bcea5040fe..01f098b17e97 100644
--- a/textproc/bsdgrep/Makefile
+++ b/textproc/bsdgrep/Makefile
@@ -12,22 +12,7 @@ PKGNAMEPREFIX= bsd-
MAINTAINER= gabor@FreeBSD.org
COMMENT= BSD-licensed version of grep
-MANCOMPRESSED= maybe
-MAN1= grep.1
-MLINKS= grep.1 bzegrep.1 \
- grep.1 bzfgrep.1 \
- grep.1 bzgrep.1 \
- grep.1 egrep.1 \
- grep.1 fgrep.1 \
- grep.1 lzegrep.1 \
- grep.1 lzfgrep.1 \
- grep.1 lzgrep.1 \
- grep.1 xzegrep.1 \
- grep.1 xzfgrep.1 \
- grep.1 xzgrep.1 \
- grep.1 zgrep.1 \
- grep.1 zegrep.1 \
- grep.1 zfgrep.1
+USES= uidfix
MAKE_ENV+= BINDIR="${PREFIX}/bin" \
MANDIR="${MANPREFIX}/man/man" \
@@ -40,8 +25,7 @@ GNU_COMPAT_DESC= Use GNU regex library (recommended)
CONFLICTS= gnugrep-*
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
PLIST_SUB+= NLS=""
@@ -59,8 +43,4 @@ pre-install:
${MKDIR} ${PREFIX}/share/nls/gl_ES.ISO8859-1
.endif
-post-install:
- ${LN} -s ${PREFIX}/bin/grep ${PREFIX}/bin/bsdgrep
- ${LN} -s /usr/bin/grep ${PREFIX}/bin/gnugrep
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/textproc/bsdgrep/pkg-plist b/textproc/bsdgrep/pkg-plist
index 5cda4f553507..672350e743d5 100644
--- a/textproc/bsdgrep/pkg-plist
+++ b/textproc/bsdgrep/pkg-plist
@@ -1,12 +1,12 @@
-@exec /bin/ln -s %%PREFIX%%/bin/grep %%PREFIX%%/bin/bsdgrep
-@exec /bin/ln -s /usr/bin/grep %%PREFIX%%/bin/gnugrep
-bin/bsdgrep
+@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/bzegrep
bin/bzfgrep
bin/bzgrep
bin/egrep
bin/fgrep
-bin/gnugrep
bin/grep
bin/lzegrep
bin/lzfgrep
@@ -17,6 +17,21 @@ bin/xzgrep
bin/zgrep
bin/zegrep
bin/zfgrep
+man/man1/bzegrep.1.gz
+man/man1/bzfgrep.1.gz
+man/man1/bzgrep.1.gz
+man/man1/egrep.1.gz
+man/man1/fgrep.1.gz
+man/man1/grep.1.gz
+man/man1/lzegrep.1.gz
+man/man1/lzfgrep.1.gz
+man/man1/lzgrep.1.gz
+man/man1/xzegrep.1.gz
+man/man1/xzfgrep.1.gz
+man/man1/xzgrep.1.gz
+man/man1/zegrep.1.gz
+man/man1/zfgrep.1.gz
+man/man1/zgrep.1.gz
%%NLS%%share/nls/es_ES.ISO8859-1/grep.cat
%%NLS%%share/nls/gl_ES.ISO8859-1/grep.cat
%%NLS%%share/nls/hu_HU.ISO8859-2/grep.cat