textproc/gnugrep: add missing dependency, build with --program-prefix=g
- Add run-time dependency on `textproc/groff': the manual page won't be rendered if groff(1) is not installed; - By popular demand, configure the port with `--program-prefix=g' as we do for other GNU utilities. This places the binaries within the same namespace more consistently; several other non-GNU/Linux systems, e.g. NetBSD, OpenBSD, Solaris, macOS (Homebrew) are doing the same. Avoid POLA violation by creating traditionally named compatibility symlinks. PR: 263275, 265729
This commit is contained in:
parent
7fac9dbc82
commit
f515b0e657
@ -1,5 +1,6 @@
|
||||
PORTNAME= grep
|
||||
PORTVERSION= 3.7
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= textproc
|
||||
MASTER_SITES= GNU
|
||||
PKGNAMEPREFIX= gnu
|
||||
@ -11,8 +12,11 @@ LICENSE= GPLv3+
|
||||
|
||||
CONFLICTS= bsd-grep
|
||||
|
||||
RUN_DEPENDS= groff:textproc/groff
|
||||
|
||||
USES= charsetfix cpe tar:xz
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --program-prefix=g
|
||||
TEST_TARGET= check
|
||||
|
||||
INFO= grep
|
||||
@ -46,4 +50,9 @@ post-patch-NLS-off:
|
||||
@${REINPLACE_CMD} '/install-exec-local:/s/install-exec-localcharset//' \
|
||||
${WRKSRC}/lib/Makefile.in
|
||||
|
||||
post-install:
|
||||
.for p in grep egrep fgrep
|
||||
${LN} -sf g${p} ${STAGEDIR}${PREFIX}/bin/${p}
|
||||
.endfor
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,9 +1,12 @@
|
||||
bin/egrep
|
||||
bin/fgrep
|
||||
bin/gegrep
|
||||
bin/gfgrep
|
||||
bin/ggrep
|
||||
bin/grep
|
||||
man/man1/egrep.1.gz
|
||||
man/man1/fgrep.1.gz
|
||||
man/man1/grep.1.gz
|
||||
man/man1/gegrep.1.gz
|
||||
man/man1/gfgrep.1.gz
|
||||
man/man1/ggrep.1.gz
|
||||
%%NLS%%share/locale/af/LC_MESSAGES/grep.mo
|
||||
%%NLS%%share/locale/be/LC_MESSAGES/grep.mo
|
||||
%%NLS%%share/locale/bg/LC_MESSAGES/grep.mo
|
||||
|
Loading…
Reference in New Issue
Block a user