Skip to content
Snippets Groups Projects
Commit f515b0e6 authored by Alexey Dokuchaev's avatar Alexey Dokuchaev
Browse files

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
parent 7fac9dbc
No related branches found
No related tags found
No related merge requests found
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>
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment