mirror of
https://git.freebsd.org/ports.git
synced 2025-06-01 19:06:28 -04:00
- Update to GNU grep 2.16 (bugfix release)
- Simplify options handling
This commit is contained in:
parent
47e4c4900f
commit
e67a30d69f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=338463
2 changed files with 8 additions and 18 deletions
|
@ -2,7 +2,7 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= grep
|
||||
PORTVERSION= 2.15
|
||||
PORTVERSION= 2.16
|
||||
CATEGORIES= textproc
|
||||
MASTER_SITES= GNU
|
||||
PKGNAMEPREFIX= gnu
|
||||
|
@ -24,24 +24,14 @@ INFO= grep
|
|||
|
||||
OPTIONS_DEFINE= PCRE NLS
|
||||
OPTIONS_DEFAULT=PCRE NLS
|
||||
OPTIONS_SUB= yes
|
||||
PCRE_LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre
|
||||
PCRE_CONFIGURE_ENABLE= perl-regexp
|
||||
NLS_USES= gettext
|
||||
NLS_CONFIGURE_ENABLE= nls
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MNLS}
|
||||
USES+= gettext
|
||||
LDFLAGS+= -lintl
|
||||
PLIST_SUB+= NLS=
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-nls
|
||||
PLIST_SUB+= NLS="@comment "
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MPCRE}
|
||||
LIB_DEPENDS+= libpcre.so:${PORTSDIR}/devel/pcre
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-perl-regexp
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
.if empty(PORT_OPTIONS:MNLS)
|
||||
@${REINPLACE_CMD} '/install-exec-local:/s/install-exec-localcharset//' \
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
SHA256 (grep-2.15.tar.xz) = bf5a834e587974c8c64e71b35b9e75cd21c7ff253c0e7fbfb0a78be794965314
|
||||
SIZE (grep-2.15.tar.xz) = 1267312
|
||||
SHA256 (grep-2.16.tar.xz) = 16dfeb5013d8c9f21f40ccec0936f2c1c6a014c828d30488f0d5c6ef7b551162
|
||||
SIZE (grep-2.16.tar.xz) = 1210192
|
||||
|
|
Loading…
Add table
Reference in a new issue