pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/units Remove GNU_PROGRAM_PREFIX variable (discuss...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c169e7f27040
branches:  trunk
changeset: 604359:c169e7f27040
user:      cheusov <cheusov%pkgsrc.org@localhost>
date:      Tue May 29 18:33:34 2012 +0000

description:
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:

 math/units/Makefile |  15 ++++++++++-----
 math/units/PLIST    |   7 ++++---
 2 files changed, 14 insertions(+), 8 deletions(-)

diffs (51 lines):

diff -r be8b8b789bcc -r c169e7f27040 math/units/Makefile
--- a/math/units/Makefile       Tue May 29 18:19:43 2012 +0000
+++ b/math/units/Makefile       Tue May 29 18:33:34 2012 +0000
@@ -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 @@
 
 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 -r be8b8b789bcc -r c169e7f27040 math/units/PLIST
--- a/math/units/PLIST  Tue May 29 18:19:43 2012 +0000
+++ b/math/units/PLIST  Tue May 29 18:33:34 2012 +0000
@@ -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



Home | Main Index | Thread Index | Old Index