pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel DESTDIR support



details:   https://anonhg.NetBSD.org/pkgsrc/rev/57951a7c75eb
branches:  trunk
changeset: 570443:57951a7c75eb
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Jan 29 19:05:18 2010 +0000

description:
DESTDIR support

diffstat:

 devel/kscope/Makefile         |   8 ++++++--
 devel/ncc/Makefile            |  34 ++++++++++++++++++----------------
 devel/newfile/Makefile        |  12 ++++++++----
 devel/opencm/Makefile         |   6 ++++--
 devel/opencm/distinfo         |   4 ++--
 devel/opencm/patches/patch-ab |   6 +++---
 devel/roundup/Makefile        |  23 +++++++++++++----------
 7 files changed, 54 insertions(+), 39 deletions(-)

diffs (231 lines):

diff -r 88d7f26c2c46 -r 57951a7c75eb devel/kscope/Makefile
--- a/devel/kscope/Makefile     Fri Jan 29 19:04:47 2010 +0000
+++ b/devel/kscope/Makefile     Fri Jan 29 19:05:18 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2010/01/18 09:58:46 wiz Exp $
+# $NetBSD: Makefile,v 1.24 2010/01/29 19:05:18 joerg Exp $
 #
 
 DISTNAME=              kscope-1.6.0
@@ -10,6 +10,8 @@
 HOMEPAGE=              http://kscope.sourceforge.net/
 COMMENT=               KDE frontend for cscope
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 DEPENDS+=              cscope>=15.6:../../devel/cscope
 DEPENDS+=              exctags>=5.5.4:../../devel/exctags
 
@@ -19,12 +21,14 @@
 USE_LIBTOOL=           yes
 USE_LANGUAGES=         c c++
 
+INSTALLATION_DIRS+=    ${KDEDIR}/share/kde/config
+
 post-build:
        sed -e "s,@LOCALBASE@,${LOCALBASE},g" \
                ${FILESDIR}/kscoperc > ${WRKDIR}/kscoperc
 
 pre-install:
-       ${INSTALL_DATA} ${WRKDIR}/kscoperc ${KDEDIR}/share/kde/config
+       ${INSTALL_DATA} ${WRKDIR}/kscoperc ${DESTDIR}${KDEDIR}/share/kde/config
 
 .include "../../meta-pkgs/kde3/kde3.mk"
 
diff -r 88d7f26c2c46 -r 57951a7c75eb devel/ncc/Makefile
--- a/devel/ncc/Makefile        Fri Jan 29 19:04:47 2010 +0000
+++ b/devel/ncc/Makefile        Fri Jan 29 19:05:18 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2009/02/09 22:56:23 joerg Exp $
+# $NetBSD: Makefile,v 1.4 2010/01/29 19:10:00 joerg Exp $
 #
 
 DISTNAME=              ncc-2.8
@@ -10,6 +10,8 @@
 HOMEPAGE=              http://students.ceid.upatras.gr/~sxanth/ncc/index.html
 COMMENT=               Compiler that produces program analysis information
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 BUILD_TARGET=          tout
 CFLAGS+=               -DNOGNU='"${PREFIX}/share/ncc/nognu"'
 
@@ -23,22 +25,22 @@
 
 PYTHON_PATCH_SCRIPTS+= scripts/nccstrip2.py
 
+INSTALLATION_DIRS+=    bin ${PKGMANDIR}/man1 share/ncc share/doc/ncc
+
 do-install:
-       ${INSTALL_PROGRAM} ${WRKSRC}/objdir/ncc ${PREFIX}/bin
-       ${INSTALL_SCRIPT} ${WRKSRC}/scripts/nccstrip2.py ${PREFIX}/bin
-       ${LN} -s ncc ${PREFIX}/bin/nccar
-       ${LN} -s ncc ${PREFIX}/bin/nccc++
-       ${LN} -s ncc ${PREFIX}/bin/nccld
-       ${INSTALL_PROGRAM} ${WRKSRC}/nccnav/nccnav ${PREFIX}/bin
-       ${LN} -s nccnav ${PREFIX}/bin/nccnavi
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/ncc
-       ${INSTALL_DATA} ${WRKSRC}/doc/nognu ${PREFIX}/share/ncc
-       ${INSTALL_MAN} ${WRKSRC}/ncc.1 ${PREFIX}/${PKGMANDIR}/man1
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ncc
-       ${INSTALL_DATA} ${WRKSRC}/doc/KEYS.txt ${PREFIX}/share/doc/ncc
-       ${INSTALL_DATA} ${WRKSRC}/doc/TROUBLES ${PREFIX}/share/doc/ncc
-       ${INSTALL_DATA} ${WRKSRC}/doc/hacking.* ${PREFIX}/share/doc/ncc
-       ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/ncc
+       ${INSTALL_PROGRAM} ${WRKSRC}/objdir/ncc ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_SCRIPT} ${WRKSRC}/scripts/nccstrip2.py ${DESTDIR}${PREFIX}/bin
+       ${LN} -s ncc ${DESTDIR}${PREFIX}/bin/nccar
+       ${LN} -s ncc ${DESTDIR}${PREFIX}/bin/nccc++
+       ${LN} -s ncc ${DESTDIR}${PREFIX}/bin/nccld
+       ${INSTALL_PROGRAM} ${WRKSRC}/nccnav/nccnav ${DESTDIR}${PREFIX}/bin
+       ${LN} -s nccnav ${DESTDIR}${PREFIX}/bin/nccnavi
+       ${INSTALL_DATA} ${WRKSRC}/doc/nognu ${DESTDIR}${PREFIX}/share/ncc
+       ${INSTALL_MAN} ${WRKSRC}/ncc.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+       ${INSTALL_DATA} ${WRKSRC}/doc/KEYS.txt ${DESTDIR}${PREFIX}/share/doc/ncc
+       ${INSTALL_DATA} ${WRKSRC}/doc/TROUBLES ${DESTDIR}${PREFIX}/share/doc/ncc
+       ${INSTALL_DATA} ${WRKSRC}/doc/hacking.* ${DESTDIR}${PREFIX}/share/doc/ncc
+       ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/ncc
 
 .include "../../devel/ncurses/buildlink3.mk"
 .include "../../lang/python/application.mk"
diff -r 88d7f26c2c46 -r 57951a7c75eb devel/newfile/Makefile
--- a/devel/newfile/Makefile    Fri Jan 29 19:04:47 2010 +0000
+++ b/devel/newfile/Makefile    Fri Jan 29 19:05:18 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2007/01/07 09:13:51 rillig Exp $
+# $NetBSD: Makefile,v 1.18 2010/01/29 19:08:31 joerg Exp $
 #
 
 DISTNAME=      newfile-1.0.14
@@ -10,16 +10,20 @@
 HOMEPAGE=      http://newfile.sourceforge.net/
 COMMENT=       Tool for creating starter files in various languages
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 NO_BUILD=      yes
 GNU_CONFIGURE= yes
 REPLACE_RUBY=  src/newfile.rb.in
 USE_TOOLS+=    ksh
 
+INSTALLATION_DIRS+=    bin ${PKGMANDIR}/man1
+
 post-install:
-       ${INSTALL_SCRIPT} ${WRKSRC}/src/newfile.rb ${PREFIX}/bin/newfile
+       ${INSTALL_SCRIPT} ${WRKSRC}/src/newfile.rb ${DESTDIR}${PREFIX}/bin/newfile
        ${INSTALL_DATA} ${WRKSRC}/src/fileproc.rb ${WRKSRC}/src/sytab.rb \
-               ${PREFIX}/share/newfile/
-       ${INSTALL_MAN} ${WRKSRC}/doc/newfile.1 ${PREFIX}/${PKGMANDIR}/man1/
+           ${DESTDIR}${PREFIX}/share/newfile/
+       ${INSTALL_MAN} ${WRKSRC}/doc/newfile.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/
 
 .include "../../lang/ruby/modules.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 88d7f26c2c46 -r 57951a7c75eb devel/opencm/Makefile
--- a/devel/opencm/Makefile     Fri Jan 29 19:04:47 2010 +0000
+++ b/devel/opencm/Makefile     Fri Jan 29 19:05:18 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.47 2010/01/17 12:02:14 wiz Exp $
+# $NetBSD: Makefile,v 1.48 2010/01/29 19:12:10 joerg Exp $
 #
 
 DISTNAME=      ${OPENCM_VERSION}-2-src
@@ -12,6 +12,8 @@
 HOMEPAGE=      http://www.opencm.org/
 COMMENT=       Secure, high-integrity replacement for CVS
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 WRKSRC=                ${WRKDIR}/${OPENCM_VERSION}/base
 USE_TOOLS+=    gmake gzip makeinfo lex
 GNU_CONFIGURE= YES
@@ -31,7 +33,7 @@
 MAKE_ENV+=     GZIP_CMD=${GZIP_CMD:Q}
 
 post-install:
-       gzip -d ${PREFIX}/${PKGINFODIR}/opencm.info.gz
+       gzip -d ${DESTDIR}${PREFIX}/${PKGINFODIR}/opencm.info.gz
 
 .include "../../devel/boehm-gc/buildlink3.mk"
 .include "../../devel/ncurses/buildlink3.mk"
diff -r 88d7f26c2c46 -r 57951a7c75eb devel/opencm/distinfo
--- a/devel/opencm/distinfo     Fri Jan 29 19:04:47 2010 +0000
+++ b/devel/opencm/distinfo     Fri Jan 29 19:05:18 2010 +0000
@@ -1,10 +1,10 @@
-$NetBSD: distinfo,v 1.16 2007/03/17 15:13:48 rillig Exp $
+$NetBSD: distinfo,v 1.17 2010/01/29 19:12:10 joerg Exp $
 
 SHA1 (opencm-0.1.2alpha8-2-src.tgz) = 2befad488fd7b73f961f7f6a771acdcee921a20d
 RMD160 (opencm-0.1.2alpha8-2-src.tgz) = 2ec1b4c317bd90723bccd73a4245c464c337bd9d
 Size (opencm-0.1.2alpha8-2-src.tgz) = 1577512 bytes
 SHA1 (patch-aa) = eccb4254283fa554b33a65a4f93a4a98889cdaaa
-SHA1 (patch-ab) = 63df5eecf9daedaf0250b4f34f6d48d93a229bfc
+SHA1 (patch-ab) = 94076f1bf20435f069b684d4179ac604696b6ee0
 SHA1 (patch-ac) = 9f94b2208f73fdb73fe71356382ae788552214e7
 SHA1 (patch-ad) = 24efb352d728333a9fbd4d92cde35a478afaed0e
 SHA1 (patch-ae) = 17caf47d93ec763248792994a3cca3869a8cd8ac
diff -r 88d7f26c2c46 -r 57951a7c75eb devel/opencm/patches/patch-ab
--- a/devel/opencm/patches/patch-ab     Fri Jan 29 19:04:47 2010 +0000
+++ b/devel/opencm/patches/patch-ab     Fri Jan 29 19:05:18 2010 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-ab,v 1.2 2003/01/07 13:36:33 jmmv Exp $
+$NetBSD: patch-ab,v 1.3 2010/01/29 19:12:10 joerg Exp $
 
 --- etc/Makefile.in.orig       Wed Jul 17 04:48:55 2002
 +++ etc/Makefile.in
@@ -9,8 +9,8 @@
 -      $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/rc.d/init.d
 -      $(INSTALL) -m 644 opencm.conf $(DESTDIR)$(sysconfdir)
 -      $(INSTALL) -m 644 opencm.rc $(DESTDIR)$(sysconfdir)/rc.d/init.d/opencm
-+      $(mkinstalldirs) $(prefix)/share/examples/opencm
-+      $(INSTALL) -m 644 opencm.conf $(prefix)/share/examples/opencm/opencm.conf
++      $(mkinstalldirs) ${DESTDIR}$(prefix)/share/examples/opencm
++      $(INSTALL) -m 644 opencm.conf ${DESTDIR}$(prefix)/share/examples/opencm/opencm.conf
  
  uninstall:
        -rm -f $(DESTDIR)$(sysconfdir)/opencm.conf
diff -r 88d7f26c2c46 -r 57951a7c75eb devel/roundup/Makefile
--- a/devel/roundup/Makefile    Fri Jan 29 19:04:47 2010 +0000
+++ b/devel/roundup/Makefile    Fri Jan 29 19:05:18 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.35 2009/05/28 21:35:54 zafer Exp $
+# $NetBSD: Makefile,v 1.36 2010/01/29 19:14:00 joerg Exp $
 
 DISTNAME=      roundup-1.4.6
 PKGREVISION=   1
@@ -9,6 +9,8 @@
 HOMEPAGE=      http://roundup.sourceforge.net/
 COMMENT=       Issue tracking system with command-line, web and email clients
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 PYDISTUTILSPKG=        yes
 PY_PATCHPLIST= yes
 USE_LANGUAGES=
@@ -28,16 +30,17 @@
 
 ROUNDUPDOCDIR= ${PREFIX}/share/doc/roundup
 
+INSTALLATION_DIRS+=    ${ROUNDUPDOCDIR}
+
 post-install:
-       ${INSTALL_MAN} ${WRKSRC}/doc/roundup-admin.1 ${PREFIX}/${PKGMANDIR}/man1
-       ${INSTALL_MAN} ${WRKSRC}/doc/roundup-demo.1 ${PREFIX}/${PKGMANDIR}/man1
-       ${INSTALL_MAN} ${WRKSRC}/doc/roundup-mailgw.1 ${PREFIX}/${PKGMANDIR}/man1
-       ${INSTALL_MAN} ${WRKSRC}/doc/roundup-server.1 ${PREFIX}/${PKGMANDIR}/man1
-       ${INSTALL_DATA_DIR} ${ROUNDUPDOCDIR}
-       ${INSTALL_DATA} ${WRKSRC}/CHANGES.txt ${ROUNDUPDOCDIR}
-       ${INSTALL_DATA} ${WRKSRC}/COPYING.txt ${ROUNDUPDOCDIR}
-       ${INSTALL_DATA} ${WRKSRC}/README.txt ${ROUNDUPDOCDIR}
-       cd ${WRKSRC}/doc && pax -s '/.*\.1//g' -rw -pp -pm . ${ROUNDUPDOCDIR}
+       ${INSTALL_MAN} ${WRKSRC}/doc/roundup-admin.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+       ${INSTALL_MAN} ${WRKSRC}/doc/roundup-demo.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+       ${INSTALL_MAN} ${WRKSRC}/doc/roundup-mailgw.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+       ${INSTALL_MAN} ${WRKSRC}/doc/roundup-server.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+       ${INSTALL_DATA} ${WRKSRC}/CHANGES.txt ${DESTDIR}${ROUNDUPDOCDIR}
+       ${INSTALL_DATA} ${WRKSRC}/COPYING.txt ${DESTDIR}${ROUNDUPDOCDIR}
+       ${INSTALL_DATA} ${WRKSRC}/README.txt ${DESTDIR}${ROUNDUPDOCDIR}
+       cd ${WRKSRC}/doc && pax -s '/.*\.1//g' -rw -pp -pm . ${DESTDIR}${ROUNDUPDOCDIR}
 
 .include "../../lang/python/extension.mk"
 .include "../../lang/python/application.mk"



Home | Main Index | Thread Index | Old Index