pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/gindent Remove GNU_PROGRAM_PREFIX variable (disc...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6c345531db4d
branches:  trunk
changeset: 604369:6c345531db4d
user:      cheusov <cheusov%pkgsrc.org@localhost>
date:      Tue May 29 21:07:33 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:

 devel/gindent/Makefile |  18 ++++++++++--------
 devel/gindent/PLIST    |  10 ++++++----
 2 files changed, 16 insertions(+), 12 deletions(-)

diffs (62 lines):

diff -r 23e7a2bd7227 -r 6c345531db4d devel/gindent/Makefile
--- a/devel/gindent/Makefile    Tue May 29 21:01:42 2012 +0000
+++ b/devel/gindent/Makefile    Tue May 29 21:07:33 2012 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.48 2011/04/22 13:43:18 obache Exp $
+# $NetBSD: Makefile,v 1.49 2012/05/29 21:07:33 cheusov Exp $
 #
 
 DISTNAME=      indent-2.2.9
 PKGNAME=       g${DISTNAME}
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_GNU:=indent/}
 
@@ -11,6 +11,8 @@
 HOMEPAGE=      http://www.gnu.org/software/indent/indent.html
 COMMENT=       GNU version of pretty-printer for C source code
 
+LICENSE=       gnu-gpl-v2
+
 PKG_INSTALLATION_TYPES=        overwrite pkgviews
 PKG_DESTDIR_SUPPORT=   user-destdir
 
@@ -19,13 +21,13 @@
 INFO_FILES=            yes
 MAKE_JOBS_SAFE=                no
 
-.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
+post-install:
+       ln -s ${PREFIX}/bin/gindent      ${DESTDIR}${PREFIX}/gnu/bin/indent
+       ln -s ${PREFIX}/bin/gtexinfo2man ${DESTDIR}${PREFIX}/gnu/bin/texinfo2man
+
+CONFIGURE_ARGS+=       --program-prefix=g
 
 .include "../../devel/gettext-lib/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 23e7a2bd7227 -r 6c345531db4d devel/gindent/PLIST
--- a/devel/gindent/PLIST       Tue May 29 21:01:42 2012 +0000
+++ b/devel/gindent/PLIST       Tue May 29 21:07:33 2012 +0000
@@ -1,8 +1,10 @@
-@comment $NetBSD: PLIST,v 1.10 2009/07/18 19:32:38 wiz Exp $
-bin/${GNU_PROGRAM_PREFIX}indent
-bin/${GNU_PROGRAM_PREFIX}texinfo2man
+@comment $NetBSD: PLIST,v 1.11 2012/05/29 21:07:33 cheusov Exp $
+bin/gindent
+bin/gtexinfo2man
+gnu/bin/indent
+gnu/bin/texinfo2man
 info/indent.info
-man/man1/${GNU_PROGRAM_PREFIX}indent.1
+man/man1/gindent.1
 share/doc/indent/indent.html
 share/locale/ca/LC_MESSAGES/indent.mo
 share/locale/da/LC_MESSAGES/indent.mo



Home | Main Index | Thread Index | Old Index