Changelog: * Noteworthy changes in release 2.23 (2016-02-04) [stable] ** Bug fixes Binary files are now less likely to generate diagnostics and more likely to yield text matches. grep now reports "Binary file FOO matches" and suppresses further output instead of outputting a line containing an encoding error; hence grep can now report matching text before a later binary match. Formerly, grep reported FOO to be binary when it found an encoding error in FOO before generating output for FOO, which meant it never reported both matching text and matching binary data; this was less useful for searching text containing encoding errors in non-matching lines. [bug introduced in grep-2.21] grep -c no longer stops counting when finding binary data. [bug introduced in grep-2.21] grep no longer outputs encoding errors in unibyte locales. For example, if the byte '\x81' is not a valid character in a unibyte locale, grep treats the byte as binary data. [bug introduced in grep-2.21] grep -oP is no longer susceptible to an infinite loop when processing invalid UTF8 just before a match. [bug introduced in grep-2.22] --exclude and related options are now matched against trailing parts of command-line arguments, not against the entire arguments. This partly reverts the --exclude-related change in 2.22. [bug introduced in grep-2.22] --line-buffer is no longer ineffective when combined with -l. [bug introduced in grep-2.5] -xw is now equivalent to -x more consistently, with -P and with backrefs. [bug only partially fixed in grep-2.19]
41 lines
1.2 KiB
Makefile
41 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.45 2016/02/12 23:28:43 ryoon Exp $
|
|
|
|
DISTNAME= grep-2.23
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= ${MASTER_SITE_GNU:=grep/}
|
|
EXTRACT_SUFX= .tar.xz
|
|
|
|
MAINTAINER= bouyer@NetBSD.org
|
|
HOMEPAGE= http://www.gnu.org/software/grep/grep.html
|
|
COMMENT= GNU grep
|
|
LICENSE= gnu-gpl-v3 # or later
|
|
|
|
USE_PKGLOCALEDIR= yes
|
|
USE_TOOLS+= makeinfo msgfmt
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --disable-perl-regexp
|
|
CONFIGURE_ARGS+= --program-prefix=g
|
|
CONFIGURE_ENV+= MKDIR_P=${INSTALL_DATA_DIR:Q}
|
|
INFO_FILES= yes
|
|
TEXINFO_REQD= 4.0
|
|
|
|
INSTALLATION_DIRS= ${PKGGNUDIR}bin ${PKGGNUDIR}${PKGMANDIR}/man1
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OS_VARIANT} == "SCOOSR5"
|
|
# SCO OpenServer 5.0.7/3.2's pthread is builtin GNU pth.
|
|
CONFIGURE_ARGS+= --enable-threads=pth
|
|
.endif
|
|
|
|
post-install:
|
|
.for g n in bin/ggrep ${PKGGNUDIR}bin/grep bin/gegrep ${PKGGNUDIR}bin/egrep \
|
|
bin/gfgrep ${PKGGNUDIR}bin/fgrep \
|
|
man/man1/ggrep.1 ${PKGGNUDIR}${PKGMANDIR}/man1/grep.1 \
|
|
man/man1/ggrep.1 ${PKGGNUDIR}${PKGMANDIR}/man1/egrep.1 \
|
|
man/man1/ggrep.1 ${PKGGNUDIR}${PKGMANDIR}/man1/fgrep.1
|
|
${LN} -sf ${PREFIX}/${g} ${DESTDIR}${PREFIX}/${n}
|
|
.endfor
|
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|