pkgsrc-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d587705b2f06
branches:  trunk
changeset: 395391:d587705b2f06
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Jul 07 22:12:02 2009 +0000

description:
user-destdir support

diffstat:

 textproc/diffsplit/Makefile       |   8 ++++++--
 textproc/docbook-website/Makefile |  17 +++++++++--------
 textproc/gdome2/Makefile          |   6 ++++--
 3 files changed, 19 insertions(+), 12 deletions(-)

diffs (96 lines):

diff -r f90b9dc59cbc -r d587705b2f06 textproc/diffsplit/Makefile
--- a/textproc/diffsplit/Makefile       Tue Jul 07 22:10:57 2009 +0000
+++ b/textproc/diffsplit/Makefile       Tue Jul 07 22:12:02 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2007/03/13 16:03:08 ginsbach Exp $
+# $NetBSD: Makefile,v 1.2 2009/07/07 22:12:32 joerg Exp $
 # FreeBSD Id: ports/textproc/diffsplit/Makefile,v 1.7 2006/12/22 13:43:54 barner Exp
 
 DISTNAME=      diffsplit
@@ -13,15 +13,19 @@
 HOMEPAGE=      http://www.pathname.com/~quinlan/software/diffsplit/
 COMMENT=       Splits a unified diff into pieces which patch one file each
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 NO_BUILD=      YES
 WRKSRC=                ${WRKDIR}
 REPLACE_PERL=  diffsplit
 USE_TOOLS+=    perl:run
 
+INSTALLATION_DIRS=     bin
+
 do-extract:
        ${CP} ${DISTDIR}/${DIST_SUBDIR}/diffsplit ${WRKDIR}
 
 do-install:
-       ${INSTALL_SCRIPT} ${WRKDIR}/diffsplit ${PREFIX}/bin
+       ${INSTALL_SCRIPT} ${WRKDIR}/diffsplit ${DESTDIR}${PREFIX}/bin
 
 .include "../../mk/bsd.pkg.mk"
diff -r f90b9dc59cbc -r d587705b2f06 textproc/docbook-website/Makefile
--- a/textproc/docbook-website/Makefile Tue Jul 07 22:10:57 2009 +0000
+++ b/textproc/docbook-website/Makefile Tue Jul 07 22:12:02 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.25 2008/05/26 02:13:24 joerg Exp $
+# $NetBSD: Makefile,v 1.26 2009/07/07 22:12:02 joerg Exp $
 #
 
 DISTNAME=      docbook-website-2.6.0
@@ -10,6 +10,8 @@
 HOMEPAGE=      http://docbook.sourceforge.net/
 COMMENT=       DocBook XML DTD for building websites
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 DEPENDS+=      docbook-simple-[0-9]*:../../textproc/docbook-simple
 DEPENDS+=      docbook-xsl>=1.58:../../textproc/docbook-xsl
 
@@ -25,18 +27,17 @@
 XML_CATALOGS=  ${DTDDIR}/catalog.xml
 SGML_CATALOGS= ${DTDDIR}/catalog
 
+INSTALLATION_DIRS=     ${DOCDIR} ${DTDDIR} ${EGDIR}
+
 do-install:
        cd ${WRKSRC} && ${FIND} . -name "*.orig" -exec ${RM} {} \;
-       ${INSTALL_DATA_DIR} ${DOCDIR}
-       ${INSTALL_DATA_DIR} ${DTDDIR}
-       ${INSTALL_DATA_DIR} ${EGDIR}
        cd ${WRKSRC} && pax -rwpm ChangeLog README VERSION \
                RELEASE-NOTES.html RELEASE-NOTES.txt RELEASE-NOTES.xml \
-               TODO ${DOCDIR}
-       cd ${WRKSRC}/example && pax -rwpm . ${EGDIR}
+               TODO ${DESTDIR}${DOCDIR}
+       cd ${WRKSRC}/example && pax -rwpm . ${DESTDIR}${EGDIR}
        cd ${WRKSRC} && pax -rwpm VERSION extensions schema xsl \
-               ${DTDDIR}
-       ${INSTALL_DATA} ${WRKSRC}/catalog.xml ${WRKSRC}/catalog ${DTDDIR}
+               ${DESTDIR}${DTDDIR}
+       ${INSTALL_DATA} ${WRKSRC}/catalog.xml ${WRKSRC}/catalog ${DESTDIR}${DTDDIR}
 
 .include "../../textproc/xmlcatmgr/catalogs.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r f90b9dc59cbc -r d587705b2f06 textproc/gdome2/Makefile
--- a/textproc/gdome2/Makefile  Tue Jul 07 22:10:57 2009 +0000
+++ b/textproc/gdome2/Makefile  Tue Jul 07 22:12:02 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2006/02/05 23:11:02 joerg Exp $
+# $NetBSD: Makefile,v 1.8 2009/07/07 22:14:56 joerg Exp $
 
 DISTNAME=      gdome2-0.8.1
 PKGREVISION=   2
@@ -9,10 +9,12 @@
 HOMEPAGE=      http://gdome2.cs.unibo.it/
 COMMENT=       Gnome DOM (Document Object Model) engine
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 USE_LIBTOOL=           yes
 USE_TOOLS+=            pkg-config
 GNU_CONFIGURE=         yes
-CONFIGURE_ARGS+=       --with-html-dir=${PREFIX}/share/doc/html
+CONFIGURE_ARGS+=       --with-html-dir=${DESTDIR}${PREFIX}/share/doc/html
 PKGCONFIG_OVERRIDE=    ${WRKSRC}/gdome2.pc.in
 
 .include "../../devel/glib2/buildlink3.mk"



Home | Main Index | Thread Index | Old Index