summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorjoerg <joerg>2009-07-07 22:21:19 +0000
committerjoerg <joerg>2009-07-07 22:21:19 +0000
commit937534d7b5f6eab6badc77b98227799b9b8dc7b4 (patch)
tree94b168ba6153e0e703a76b067d6ea333bf313f39 /textproc
parent70578fae82021147eeb1ca53851b56ee712bc86e (diff)
downloadpkgsrc-937534d7b5f6eab6badc77b98227799b9b8dc7b4.tar.gz
user-destdir support
Diffstat (limited to 'textproc')
-rw-r--r--textproc/crimson/Makefile15
-rw-r--r--textproc/db2latex/Makefile11
2 files changed, 14 insertions, 12 deletions
diff --git a/textproc/crimson/Makefile b/textproc/crimson/Makefile
index 0de8782bde7..0e99de52a6c 100644
--- a/textproc/crimson/Makefile
+++ b/textproc/crimson/Makefile
@@ -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 @@ MAINTAINER= jwise@NetBSD.org
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 @@ USE_TOOLS+= pax
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 --git a/textproc/db2latex/Makefile b/textproc/db2latex/Makefile
index c7f054d2763..b4052c40d2c 100644
--- a/textproc/db2latex/Makefile
+++ b/textproc/db2latex/Makefile
@@ -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 @@ HOMEPAGE= http://db2latex.sourceforge.net/
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 @@ post-extract:
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"