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/25500bb16096
branches:  trunk
changeset: 395396:25500bb16096
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Jul 07 22:21:19 2009 +0000

description:
user-destdir support

diffstat:

 textproc/crimson/Makefile  |  15 ++++++++-------
 textproc/db2latex/Makefile |  11 ++++++-----
 2 files changed, 14 insertions(+), 12 deletions(-)

diffs (71 lines):

diff -r 74493fce0e7e -r 25500bb16096 textproc/crimson/Makefile
--- a/textproc/crimson/Makefile Tue Jul 07 22:21:16 2009 +0000
+++ b/textproc/crimson/Makefile Tue Jul 07 22:21:19 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2008/05/26 02:13:24 joerg Exp $
+# $NetBSD: Makefile,v 1.23 2009/07/07 22:22:05 joerg Exp $
 #
 # We use the binary distribution of crimson because otherwise we
 # have a bootstrap-loop between apache-ant and crimson, each of which
@@ -14,6 +14,8 @@
 HOMEPAGE=      http://xml.apache.org/crimson/
 COMMENT=       Apache.org implementation of JAXP, SAX, and DOM
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 WRKSRC=                ${WRKDIR}/${PKGNAME_NOREV}
 USE_JAVA=      run
 USE_JAVA2=     yes
@@ -21,13 +23,12 @@
 NO_CONFIGURE=  yes
 NO_BUILD=      yes
 
+INSTALLATION_DIRS=     lib/java share/doc/java/crimson share/examples/java/crimson
+
 do-install:
-       ${INSTALL_DATA_DIR} ${PREFIX}/lib/java
-       ${INSTALL_DATA} ${WRKSRC}/crimson.jar ${PREFIX}/lib/java
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/java/crimson
-       cd ${WRKSRC}/docs && pax -rw -pp * ${PREFIX}/share/doc/java/crimson
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/java/crimson
-       cd ${WRKSRC}/examples && pax -rw -pp * ${PREFIX}/share/examples/java/crimson
+       ${INSTALL_DATA} ${WRKSRC}/crimson.jar ${DESTDIR}${PREFIX}/lib/java
+       cd ${WRKSRC}/docs && pax -rw -pp * ${DESTDIR}${PREFIX}/share/doc/java/crimson
+       cd ${WRKSRC}/examples && pax -rw -pp * ${DESTDIR}${PREFIX}/share/examples/java/crimson
 
 .include "../../mk/java-vm.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 74493fce0e7e -r 25500bb16096 textproc/db2latex/Makefile
--- a/textproc/db2latex/Makefile        Tue Jul 07 22:21:16 2009 +0000
+++ b/textproc/db2latex/Makefile        Tue Jul 07 22:21:19 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2008/05/26 02:13:24 joerg Exp $
+# $NetBSD: Makefile,v 1.15 2009/07/07 22:21:19 joerg Exp $
 
 DISTNAME=      db2latex-xsl-0.8pre1
 PKGNAME=       ${DISTNAME:S/xsl-//}
@@ -11,6 +11,7 @@
 COMMENT=       Set of XSLT stylesheets converting DocBook to LaTeX2e
 
 PKG_INSTALLATION_TYPES=        overwrite pkgviews
+PKG_DESTDIR_SUPPORT=   user-destdir
 
 NO_CONFIGURE=  yes
 NO_BUILD=      yes
@@ -31,12 +32,12 @@
 pre-install:
        ${FIND} ${WRKSRC} -name \*.orig -exec ${RM} {} \;
 
+INSTALLATION_DIRS=     ${DOCDIR} ${XSLDIR}
+
 do-install:
-       ${INSTALL_DATA_DIR} ${DOCDIR}
-       ${INSTALL_DATA_DIR} ${XSLDIR}
-       cd ${WRKSRC}/doc && pax -rwpm . ${DOCDIR}
+       cd ${WRKSRC}/doc && pax -rwpm . ${DESTDIR}${DOCDIR}
        cd ${WRKSRC} && pax -rwpm AUTHOR COPYING COPYRIGHT README \
                TODO VERSION ${DOCDIR}
-       cd ${WRKSRC}/xsl && pax -rwpm . ${XSLDIR}
+       cd ${WRKSRC}/xsl && pax -rwpm . ${DESTDIR}${XSLDIR}
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index