summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorcheusov <cheusov@pkgsrc.org>2012-05-29 22:02:31 +0000
committercheusov <cheusov@pkgsrc.org>2012-05-29 22:02:31 +0000
commite9e2d21244fb7ae137521f59a5bfc1eafdb9445c (patch)
tree64ef7b6f67b4a6edc223b8f23106fd2f74f6c43a /textproc
parent2e320dfd0f40bb07c3a5ac66f7a7cea28b308fc7 (diff)
downloadpkgsrc-e9e2d21244fb7ae137521f59a5bfc1eafdb9445c.tar.gz
Remove GNU_PROGRAM_PREFIX variable (discussed in pkgsrc-users@).
All utilities are installed with a prefix 'g'. Symlinks with original names are created in ${PREFIX}/gnu/bin. ++pkgrevision Add LICENSE
Diffstat (limited to 'textproc')
-rw-r--r--textproc/grep/Makefile20
-rw-r--r--textproc/grep/PLIST17
2 files changed, 21 insertions, 16 deletions
diff --git a/textproc/grep/Makefile b/textproc/grep/Makefile
index d93bed08016..a8995ecb8f3 100644
--- a/textproc/grep/Makefile
+++ b/textproc/grep/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.25 2011/04/22 13:44:49 obache Exp $
+# $NetBSD: Makefile,v 1.26 2012/05/29 22:10:24 cheusov Exp $
#
DISTNAME= grep-2.5.3
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_GNU:=grep/}
EXTRACT_SUFX= .tar.bz2
@@ -10,6 +10,7 @@ EXTRACT_SUFX= .tar.bz2
MAINTAINER= bouyer@NetBSD.org
HOMEPAGE= http://www.gnu.org/software/grep/grep.html
COMMENT= GNU grep
+LICENSE= gnu-gpl-v3
PKG_DESTDIR_SUPPORT= user-destdir
@@ -17,17 +18,18 @@ GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --disable-perl-regexp
USE_PKGLOCALEDIR= YES
USE_TOOLS+= makeinfo msgfmt
-INFO_FILES= # PLIST
+INFO_FILES= yes
TEXINFO_REQD= 4.0
CONFIGURE_ENV+= MKDIR_P=${INSTALL_DATA_DIR:Q}
-.include "../../mk/bsd.prefs.mk"
+INSTALLATION_DIRS= gnu/bin
-.if defined(GNU_PROGRAM_PREFIX)
-CONFIGURE_ARGS+= --program-prefix=${GNU_PROGRAM_PREFIX:Q}
-.endif
-PLIST_SUBST+= GNU_PROGRAM_PREFIX=${GNU_PROGRAM_PREFIX:Q}
-BUILD_DEFS+= GNU_PROGRAM_PREFIX
+CONFIGURE_ARGS+= --program-prefix=g
+
+post-install:
+.for p in grep egrep fgrep
+ ln -s ../../bin/g${p} ${DESTDIR}${PREFIX}/gnu/bin/${p}
+.endfor
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/grep/PLIST b/textproc/grep/PLIST
index c5c527f70d5..67a60cb2c78 100644
--- a/textproc/grep/PLIST
+++ b/textproc/grep/PLIST
@@ -1,11 +1,14 @@
-@comment $NetBSD: PLIST,v 1.7 2008/03/08 12:16:43 tnn Exp $
-bin/${GNU_PROGRAM_PREFIX}egrep
-bin/${GNU_PROGRAM_PREFIX}fgrep
-bin/${GNU_PROGRAM_PREFIX}grep
+@comment $NetBSD: PLIST,v 1.8 2012/05/29 22:10:24 cheusov Exp $
+bin/gegrep
+bin/gfgrep
+bin/ggrep
+gnu/bin/egrep
+gnu/bin/fgrep
+gnu/bin/grep
info/grep.info
-man/man1/${GNU_PROGRAM_PREFIX}egrep.1
-man/man1/${GNU_PROGRAM_PREFIX}fgrep.1
-man/man1/${GNU_PROGRAM_PREFIX}grep.1
+man/man1/gegrep.1
+man/man1/gfgrep.1
+man/man1/ggrep.1
share/locale/af/LC_MESSAGES/grep.mo
share/locale/be/LC_MESSAGES/grep.mo
share/locale/bg/LC_MESSAGES/grep.mo