summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorcheusov <cheusov@pkgsrc.org>2012-05-29 18:33:34 +0000
committercheusov <cheusov@pkgsrc.org>2012-05-29 18:33:34 +0000
commitf84ee98eb0bab68b22e74c72745dcfd620f4c92c (patch)
tree5bb584b5cb3b2072a32b4dbf77adcdc2b9709fe4 /math
parent9122c9adf752c772c01052603bbf0c85c595a8d8 (diff)
downloadpkgsrc-f84ee98eb0bab68b22e74c72745dcfd620f4c92c.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. Add LICENSE. ++pkgrevision
Diffstat (limited to 'math')
-rw-r--r--math/units/Makefile15
-rw-r--r--math/units/PLIST7
2 files changed, 14 insertions, 8 deletions
diff --git a/math/units/Makefile b/math/units/Makefile
index 5ccad7d40e3..2a62f82557f 100644
--- a/math/units/Makefile
+++ b/math/units/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2009/05/20 00:58:22 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2012/05/29 18:33:34 cheusov Exp $
DISTNAME= units-1.86
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_GNU:=units/}
@@ -11,16 +11,21 @@ COMMENT= GNU Units - a calculator capable of performing unit conversions
PKG_DESTDIR_SUPPORT= user-destdir
+LICENSE= gnu-gpl-v2
+
INFO_FILES= YES
GNU_CONFIGURE= YES
.include "../../mk/bsd.prefs.mk"
-CONFIGURE_ARGS= --program-prefix=${GNU_PROGRAM_PREFIX}
+CONFIGURE_ARGS= --program-prefix=g
+
+INSTALLATION_DIRS= gnu/bin
-PLIST_SUBST+= GNU_PROGRAM_PREFIX=${GNU_PROGRAM_PREFIX}
-BUILD_DEFS+= GNU_PROGRAM_PREFIX
+post-install:
+ set -e; cd ${DESTDIR}${PREFIX}/gnu/bin; \
+ ln -s ../../bin/gunits units
.include "../../devel/readline/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/math/units/PLIST b/math/units/PLIST
index 51b1e70a90a..033a9658b89 100644
--- a/math/units/PLIST
+++ b/math/units/PLIST
@@ -1,5 +1,6 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2006/11/19 04:56:17 obache Exp $
-bin/${GNU_PROGRAM_PREFIX}units
+@comment $NetBSD: PLIST,v 1.2 2012/05/29 18:33:34 cheusov Exp $
+bin/gunits
+gnu/bin/units
info/units.info
-man/man1/${GNU_PROGRAM_PREFIX}units.1
+man/man1/gunits.1
share/units.dat