pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/time/gnutime Remove GNU_PROGRAM_PREFIX variable (discu...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/958d754d127e
branches:  trunk
changeset: 604381:958d754d127e
user:      cheusov <cheusov%pkgsrc.org@localhost>
date:      Tue May 29 22:20:40 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.

++pkgrevision

Add LICENSE

diffstat:

 time/gnutime/Makefile |  14 +++++++++-----
 time/gnutime/PLIST    |   5 +++--
 2 files changed, 12 insertions(+), 7 deletions(-)

diffs (45 lines):

diff -r 0dff4c74a78d -r 958d754d127e time/gnutime/Makefile
--- a/time/gnutime/Makefile     Tue May 29 22:02:31 2012 +0000
+++ b/time/gnutime/Makefile     Tue May 29 22:20:40 2012 +0000
@@ -1,22 +1,26 @@
-# $NetBSD: Makefile,v 1.7 2009/07/07 20:21:37 joerg Exp $
+# $NetBSD: Makefile,v 1.8 2012/05/29 22:20:40 cheusov Exp $
 #
 
 DISTNAME=              time-1.7
 PKGNAME=               gnu${DISTNAME}
+PKGREVISION=           1
 CATEGORIES=            time
 MASTER_SITES=          ${MASTER_SITE_GNU:=time/}
 
 MAINTAINER=            reed%reedmedia.net@localhost
 HOMEPAGE=              http://directory.fsf.org/GNU/time.html
 COMMENT=               Report user, system, and real time used by a process
+LICENSE=               gnu-gpl-v2
 
 PKG_DESTDIR_SUPPORT=   user-destdir
 
 GNU_CONFIGURE=         yes
-INFO_FILES=            # PLIST
+INFO_FILES=            yes
 
-CONFIGURE_ARGS+=       --program-prefix=${GNU_PROGRAM_PREFIX:Q}
-PLIST_SUBST+=          GNU_PROGRAM_PREFIX=${GNU_PROGRAM_PREFIX:Q}
-BUILD_DEFS+=           GNU_PROGRAM_PREFIX
+CONFIGURE_ARGS+=       --program-prefix=g
+INSTALLATION_DIRS=     gnu/bin
+
+post-install:
+       ln -f -s ../../bin/gtime ${DESTDIR}${PREFIX}/gnu/bin/time
 
 .include "../../mk/bsd.pkg.mk"
diff -r 0dff4c74a78d -r 958d754d127e time/gnutime/PLIST
--- a/time/gnutime/PLIST        Tue May 29 22:02:31 2012 +0000
+++ b/time/gnutime/PLIST        Tue May 29 22:20:40 2012 +0000
@@ -1,3 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2006/04/08 05:02:59 jlam Exp $
-bin/${GNU_PROGRAM_PREFIX}time
+@comment $NetBSD: PLIST,v 1.3 2012/05/29 22:20:40 cheusov Exp $
+bin/gtime
+gnu/bin/time
 info/time.info



Home | Main Index | Thread Index | Old Index