819f25b36d
The conflict checks compare the patterns first against the package names without version (as reported by "pkg query "%n"), then - if there was no match - agsinst the full package names including the version (as reported by "pkg query "%n-%v"). Many CONFLICTS definitions used patterns like "bash-[0-9]*" to filter for the bash package in any version. But that pattern is functionally identical with just "bash". Approved by: portmgr (blanket)
51 lines
1.2 KiB
Makefile
51 lines
1.2 KiB
Makefile
# Created by: Gabor Kovesdan <gabor@FreeBSD.org>
|
|
|
|
PORTNAME= grep
|
|
PORTVERSION= 3.7
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= GNU
|
|
PKGNAMEPREFIX= gnu
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
|
COMMENT= GNU version of popular pattern matching utility
|
|
|
|
LICENSE= GPLv3+
|
|
|
|
CONFLICTS= bsd-grep
|
|
|
|
USES= charsetfix cpe tar:xz
|
|
GNU_CONFIGURE= yes
|
|
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
|
|
|
|
.include <bsd.port.mk>
|