pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel user-destdir support



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b4595fd76979
branches:  trunk
changeset: 395539:b4595fd76979
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Jul 08 16:09:00 2009 +0000

description:
user-destdir support

diffstat:

 devel/idutils/Makefile          |   9 +++-
 devel/libproplist/Makefile      |   9 +++-
 devel/libstash/Makefile         |   4 +-
 devel/libstash/distinfo         |   4 +-
 devel/libstash/patches/patch-aa |  65 +++++++++++++++++++++++++++++++++++++---
 devel/sparse/Makefile           |  10 +++--
 6 files changed, 82 insertions(+), 19 deletions(-)

diffs (203 lines):

diff -r a0f41426a9fc -r b4595fd76979 devel/idutils/Makefile
--- a/devel/idutils/Makefile    Wed Jul 08 16:03:50 2009 +0000
+++ b/devel/idutils/Makefile    Wed Jul 08 16:09:00 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2007/03/13 13:24:29 bad Exp $
+# $NetBSD: Makefile,v 1.6 2009/07/08 16:09:04 joerg Exp $
 
 DISTNAME=      idutils-4.2
 PKGREVISION=   1
@@ -9,6 +9,8 @@
 HOMEPAGE=      http://www.gnu.org/software/idutils/idutils.html
 COMMENT=       Classic Berkeley gid/lid tools for looking up variables in code
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 CONFLICTS=     sh-utils>=2.0nb2 coreutils-[0-9]*
 
 USE_PKGLOCALEDIR=      yes
@@ -23,11 +25,12 @@
 MAKE_FLAGS+=           elc_SCRIPTS=
 
 LISPDIR=               ${PREFIX}/share/emacs/site-lisp
-REQD_DIRS=             ${LISPDIR}
+
+INSTALLATION_DIRS=     ${LISPDIR}
 
 .include "../../devel/gettext-lib/buildlink3.mk"
 
 post-install:
-       ${INSTALL_DATA} ${WRKSRC}/lisp/idutils.el ${LISPDIR}
+       ${INSTALL_DATA} ${WRKSRC}/lisp/idutils.el ${DESTDIR}${LISPDIR}
 
 .include "../../mk/bsd.pkg.mk"
diff -r a0f41426a9fc -r b4595fd76979 devel/libproplist/Makefile
--- a/devel/libproplist/Makefile        Wed Jul 08 16:03:50 2009 +0000
+++ b/devel/libproplist/Makefile        Wed Jul 08 16:09:00 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2006/07/19 19:14:38 jlam Exp $
+# $NetBSD: Makefile,v 1.23 2009/07/08 16:12:31 joerg Exp $
 
 DISTNAME=              libPropList-0.10.1
 PKGNAME=               libproplist-0.10.1
@@ -9,12 +9,15 @@
 MAINTAINER=            pkgsrc-users%NetBSD.org@localhost
 COMMENT=               GNUstep/OPENSTEP property lists compatibility library
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 GNU_CONFIGURE=         yes
 USE_LIBTOOL=           yes
 USE_TOOLS+=            lex
 
+INSTALLATION_DIRS=     share/doc/libproplist
+
 post-install:
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/libproplist
-       ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/libproplist
+       ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/libproplist
 
 .include "../../mk/bsd.pkg.mk"
diff -r a0f41426a9fc -r b4595fd76979 devel/libstash/Makefile
--- a/devel/libstash/Makefile   Wed Jul 08 16:03:50 2009 +0000
+++ b/devel/libstash/Makefile   Wed Jul 08 16:09:00 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2005/12/05 20:50:05 rillig Exp $
+# $NetBSD: Makefile,v 1.6 2009/07/08 16:09:00 joerg Exp $
 #
 
 DISTNAME=      libstash_s19990912a
@@ -10,6 +10,8 @@
 HOMEPAGE=      http://www.sqrl.org/sqrl/
 COMMENT=       Collection of programming support routines and useful algorithms
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 GNU_CONFIGURE= YES
 CONFIGURE_ARGS+=       --without-pthreads
 CONFIGURE_ARGS+=       --disable-shared
diff -r a0f41426a9fc -r b4595fd76979 devel/libstash/distinfo
--- a/devel/libstash/distinfo   Wed Jul 08 16:03:50 2009 +0000
+++ b/devel/libstash/distinfo   Wed Jul 08 16:09:00 2009 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.3 2005/02/23 22:24:19 agc Exp $
+$NetBSD: distinfo,v 1.4 2009/07/08 16:09:00 joerg Exp $
 
 SHA1 (libstash_s19990912a.tar.gz) = ff9ffb3bd421be2652dced2dabfa503d7e3bbca1
 RMD160 (libstash_s19990912a.tar.gz) = fa7058a9da42b27a1094cd9ae3af204167ad093f
 Size (libstash_s19990912a.tar.gz) = 159195 bytes
-SHA1 (patch-aa) = db4b3219f1bbe8016ac83fe5b52ba33857bc29e7
+SHA1 (patch-aa) = f10654a8a95c375bf1b3af13683fe85660c4faae
 SHA1 (patch-ab) = 3c8f3932b176b4ee4730125581569c1bb3aa85f4
 SHA1 (patch-ac) = 2a2626a8df20e2dd62c565ba76b2b3fd8496c8e3
diff -r a0f41426a9fc -r b4595fd76979 devel/libstash/patches/patch-aa
--- a/devel/libstash/patches/patch-aa   Wed Jul 08 16:03:50 2009 +0000
+++ b/devel/libstash/patches/patch-aa   Wed Jul 08 16:09:00 2009 +0000
@@ -1,6 +1,6 @@
-$NetBSD: patch-aa,v 1.2 2000/09/24 17:32:26 hubertf Exp $
+$NetBSD: patch-aa,v 1.3 2009/07/08 16:09:00 joerg Exp $
 
---- Makefile.bsd.in.orig       Mon Sep 13 02:32:44 1999
+--- Makefile.bsd.in.orig       2009-07-08 18:05:44.000000000 +0200
 +++ Makefile.bsd.in
 @@ -101,11 +101,11 @@
  
@@ -16,12 +16,65 @@
  
  CFLAGS := -Wall -pipe @CFLAGS@
  ST_CFLAGS := 
-@@ -296,7 +296,7 @@
+@@ -290,47 +290,47 @@ install_r : install_stat_dbg_r install_s
+ 
+ install_common : all
+       $(SHELL) -c \
+-      '@INSTALL@ -d @prefix@/include/libstash; \
++      '@INSTALL@ -d ${DESTDIR}@prefix@/include/libstash; \
+       for i in $(INCS); do \
+-      @INSTALL@ -m 0644 $$i @prefix@/include/libstash/; \
++      @INSTALL@ -m 0644 $$i ${DESTDIR}@prefix@/include/libstash/; \
        done; \
-       @INSTALL@ -d @prefix@/man/man3; \
+-      @INSTALL@ -d @prefix@/man/man3; \
++      @INSTALL@ -d ${DESTDIR}@prefix@/man/man3; \
        for i in $(MANPAGES); do \
 -      @INSTALL@ -m 0644 $$i @prefix@/man/man3/; \
-+      @INSTALL@ -m 0644 $$i @prefix@/$${i%s}; \
++      @INSTALL@ -m 0644 $$i ${DESTDIR}@prefix@/$${i%s}; \
+       done; \
+-      @INSTALL@ -d @prefix@/lib; \
++      @INSTALL@ -d ${DESTDIR}@prefix@/lib; \
+       '
+ 
+ install_common_r : install_common
+       $(SHELL) -c \
+       'for i in $(INCS_R); do \
+-      @INSTALL@ -m 0644 $$i @prefix@/include/libstash/; \
++      @INSTALL@ -m 0644 $$i ${DESTDIR}@prefix@/include/libstash/; \
        done; \
-       @INSTALL@ -d @prefix@/lib; \
        '
+ 
+ install_stat_dbg : stat_dbg install_common
+-      @INSTALL@ -m 0444 $(LIB_ST_D) @prefix@/lib
++      @INSTALL@ -m 0444 $(LIB_ST_D) ${DESTDIR}@prefix@/lib
+ 
+ install_stat_opt : stat_opt install_common
+-      @INSTALL@ -m 0444 $(LIB_ST_O) @prefix@/lib
++      @INSTALL@ -m 0444 $(LIB_ST_O) ${DESTDIR}@prefix@/lib
+ 
+ install_shar_opt : shar_opt install_common
+-      @INSTALL@ -m 0444 $(LIB_SH_O) @prefix@/lib
++      @INSTALL@ -m 0444 $(LIB_SH_O) ${DESTDIR}@prefix@/lib
+ 
+ install_stat_prof : stat_prof install_common
+-      @INSTALL@ -m 0444 $(LIB_ST_P) @prefix@/lib
++      @INSTALL@ -m 0444 $(LIB_ST_P) ${DESTDIR}@prefix@/lib
+ 
+ install_stat_dbg_r : stat_dbg_r install_common install_common_r
+-      @INSTALL@ -m 0444 $(LIB_ST_R_D) @prefix@/lib
++      @INSTALL@ -m 0444 $(LIB_ST_R_D) ${DESTDIR}@prefix@/lib
+ 
+ install_stat_opt_r : stat_opt_r install_common install_common_r
+-      @INSTALL@ -m 0444 $(LIB_ST_R_O) @prefix@/lib
++      @INSTALL@ -m 0444 $(LIB_ST_R_O) ${DESTDIR}@prefix@/lib
+ 
+ install_shar_opt_r : shar_opt_r install_common install_common_r
+-      @INSTALL@ -m 0444 $(LIB_SH_R_O) @prefix@/lib
++      @INSTALL@ -m 0444 $(LIB_SH_R_O) ${DESTDIR}@prefix@/lib
+ 
+ install_stat_prof_r : stat_prof_r install_common install_common_r
+-      @INSTALL@ -m 0444 $(LIB_ST_R_P) @prefix@/lib
++      @INSTALL@ -m 0444 $(LIB_ST_R_P) ${DESTDIR}@prefix@/lib
+ 
+ uninstall :
+       rm -f @prefix@/lib/lib$(LIB)*
diff -r a0f41426a9fc -r b4595fd76979 devel/sparse/Makefile
--- a/devel/sparse/Makefile     Wed Jul 08 16:03:50 2009 +0000
+++ b/devel/sparse/Makefile     Wed Jul 08 16:09:00 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2007/05/21 20:46:43 reed Exp $
+# $NetBSD: Makefile,v 1.2 2009/07/08 16:13:51 joerg Exp $
 #
 
 DISTNAME=      sparse-0.3
@@ -9,14 +9,16 @@
 HOMEPAGE=      http://kernel.org/pub/software/devel/sparse/
 COMMENT=       Semantic parser for C
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 INSTALLATION_DIRS+=    share/doc/sparse
 PKGCONFIG_OVERRIDE+=   sparse.pc.in
 REPLACE_PERL=          cgcc
 USE_TOOLS+=            gmake perl:run
 
 post-install:
-       ${INSTALL_DATA} ${WRKSRC}/FAQ ${PREFIX}/share/doc/sparse/
-       ${INSTALL_DATA} ${WRKSRC}/LICENSE ${PREFIX}/share/doc/sparse/
-       ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/sparse/
+       ${INSTALL_DATA} ${WRKSRC}/FAQ ${DESTDIR}${PREFIX}/share/doc/sparse/
+       ${INSTALL_DATA} ${WRKSRC}/LICENSE ${DESTDIR}${PREFIX}/share/doc/sparse/
+       ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/sparse/
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index