diff --git a/textproc/gnugrep/Makefile b/textproc/gnugrep/Makefile index 914bc036b3d0..9534e9ff6289 100644 --- a/textproc/gnugrep/Makefile +++ b/textproc/gnugrep/Makefile @@ -1,49 +1,58 @@ PORTNAME= grep PORTVERSION= 3.7 +PORTREVISION= 1 CATEGORIES= textproc MASTER_SITES= GNU PKGNAMEPREFIX= gnu MAINTAINER= danfe@FreeBSD.org COMMENT= GNU version of popular pattern matching utility 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 CPE_VENDOR= gnu OPTIONS_DEFINE= ICONV LIBSIGSEGV NLS PCRE OPTIONS_DEFAULT= ICONV PCRE LIBSIGSEGV_DESC= Use alternative page fault handler (GNU libsigsegv) OPTIONS_SUB= yes ICONV_CONFIGURE_USES= iconv ICONV_CONFIGURE_WITH= libiconv-prefix=${LOCALBASE} LIBSIGSEGV_LIB_DEPENDS= libsigsegv.so:devel/libsigsegv LIBSIGSEGV_CONFIGURE_WITH= libsigsegv-prefix=${LOCALBASE} NLS_USES= gettext NLS_CONFIGURE_ENABLE= nls NLS_CONFIGURE_WITH= libintl-prefix=${LOCALBASE} PCRE_LIB_DEPENDS= libpcre.so:devel/pcre PCRE_USES= pkgconfig PCRE_CONFIGURE_ENABLE= perl-regexp post-patch: @${REINPLACE_CMD} 's:@grep@:${PREFIX}/bin/&:' ${WRKSRC}/src/egrep.sh @${REINPLACE_CMD} 's|mkinstalldirs = .*|mkinstalldirs = ${MKDIR}|g' \ ${WRKSRC}/po/Makefile.in.in 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 diff --git a/textproc/gnugrep/pkg-plist b/textproc/gnugrep/pkg-plist index 6d59dd1baef0..499828b03cb5 100644 --- a/textproc/gnugrep/pkg-plist +++ b/textproc/gnugrep/pkg-plist @@ -1,49 +1,52 @@ 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 %%NLS%%share/locale/ca/LC_MESSAGES/grep.mo %%NLS%%share/locale/cs/LC_MESSAGES/grep.mo %%NLS%%share/locale/da/LC_MESSAGES/grep.mo %%NLS%%share/locale/de/LC_MESSAGES/grep.mo %%NLS%%share/locale/el/LC_MESSAGES/grep.mo %%NLS%%share/locale/eo/LC_MESSAGES/grep.mo %%NLS%%share/locale/es/LC_MESSAGES/grep.mo %%NLS%%share/locale/et/LC_MESSAGES/grep.mo %%NLS%%share/locale/eu/LC_MESSAGES/grep.mo %%NLS%%share/locale/fi/LC_MESSAGES/grep.mo %%NLS%%share/locale/fr/LC_MESSAGES/grep.mo %%NLS%%share/locale/ga/LC_MESSAGES/grep.mo %%NLS%%share/locale/gl/LC_MESSAGES/grep.mo %%NLS%%share/locale/he/LC_MESSAGES/grep.mo %%NLS%%share/locale/hr/LC_MESSAGES/grep.mo %%NLS%%share/locale/hu/LC_MESSAGES/grep.mo %%NLS%%share/locale/id/LC_MESSAGES/grep.mo %%NLS%%share/locale/it/LC_MESSAGES/grep.mo %%NLS%%share/locale/ja/LC_MESSAGES/grep.mo %%NLS%%share/locale/ko/LC_MESSAGES/grep.mo %%NLS%%share/locale/ky/LC_MESSAGES/grep.mo %%NLS%%share/locale/lt/LC_MESSAGES/grep.mo %%NLS%%share/locale/nb/LC_MESSAGES/grep.mo %%NLS%%share/locale/nl/LC_MESSAGES/grep.mo %%NLS%%share/locale/pa/LC_MESSAGES/grep.mo %%NLS%%share/locale/pl/LC_MESSAGES/grep.mo %%NLS%%share/locale/pt/LC_MESSAGES/grep.mo %%NLS%%share/locale/pt_BR/LC_MESSAGES/grep.mo %%NLS%%share/locale/ro/LC_MESSAGES/grep.mo %%NLS%%share/locale/ru/LC_MESSAGES/grep.mo %%NLS%%share/locale/sk/LC_MESSAGES/grep.mo %%NLS%%share/locale/sl/LC_MESSAGES/grep.mo %%NLS%%share/locale/sr/LC_MESSAGES/grep.mo %%NLS%%share/locale/sv/LC_MESSAGES/grep.mo %%NLS%%share/locale/th/LC_MESSAGES/grep.mo %%NLS%%share/locale/tr/LC_MESSAGES/grep.mo %%NLS%%share/locale/uk/LC_MESSAGES/grep.mo %%NLS%%share/locale/vi/LC_MESSAGES/grep.mo %%NLS%%share/locale/zh_CN/LC_MESSAGES/grep.mo %%NLS%%share/locale/zh_TW/LC_MESSAGES/grep.mo