diff options
author | joerg <joerg@pkgsrc.org> | 2006-11-03 19:14:25 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-11-03 19:14:25 +0000 |
commit | 5430595a63a9a5ea90cc5dc74531b2f2035ed44c (patch) | |
tree | c071b6ec79a1f0bdf8b40d141422cd3d942af75a /textproc | |
parent | b8b41112bb8cb00d42283f1972ce87819f4eaf31 (diff) | |
download | pkgsrc-5430595a63a9a5ea90cc5dc74531b2f2035ed44c.tar.gz |
DESTDIR support.
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/docbook-xml/Makefile | 13 | ||||
-rw-r--r-- | textproc/docbook-xsl/Makefile | 22 |
2 files changed, 18 insertions, 17 deletions
diff --git a/textproc/docbook-xml/Makefile b/textproc/docbook-xml/Makefile index af19fb666b8..01f35b898ab 100644 --- a/textproc/docbook-xml/Makefile +++ b/textproc/docbook-xml/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.31 2006/10/06 15:13:55 joerg Exp $ +# $NetBSD: Makefile,v 1.32 2006/11/03 19:17:39 joerg Exp $ # DISTNAME= docbook-xml-4.4 @@ -14,6 +14,7 @@ HOMEPAGE= http://www.oasis-open.org/docbook/ COMMENT= XML DTD designed for computer documentation PKG_INSTALLATION_TYPES= overwrite pkgviews +PKG_DESTDIR_SUPPORT= user-destdir WRKSRC= ${WRKDIR} USE_LANGUAGES= # empty @@ -47,16 +48,16 @@ PRINT_PLIST_AWK+= /^@dirrm share\/xml\/docbook$$/ \ pre-install: .for ver in ${VER} - @[ -d ${DTDDIR}/${ver} ] || ${INSTALL_DATA_DIR} ${DTDDIR}/${ver} + ${INSTALL_DATA_DIR} ${DESTDIR}${DTDDIR}/${ver} .endfor do-install: .for ver in ${VER} - @(cd ${DTDDIR}/${ver}; ${UNZIP_CMD} ${DISTDIR}/docbook-xml-${ver}.zip) - @(cd ${DTDDIR}/${ver}; ${MV} catalog.xml catalog) + cd ${DESTDIR}${DTDDIR}/${ver} && ${UNZIP_CMD} ${DISTDIR}/docbook-xml-${ver}.zip + cd ${DESTDIR}${DTDDIR}/${ver} && ${MV} catalog.xml catalog .endfor - @${SED} -e 's|V4.2|V4.1.2|g' <${DTDDIR}/4.2/catalog \ - >${DTDDIR}/4.2/catalog-4.1.2 + ${SED} -e 's|V4.2|V4.1.2|g' <${DESTDIR}${DTDDIR}/4.2/catalog \ + >${DESTDIR}${DTDDIR}/4.2/catalog-4.1.2 .include "../../textproc/xmlcatmgr/catalogs.mk" .include "../../mk/bsd.pkg.mk" diff --git a/textproc/docbook-xsl/Makefile b/textproc/docbook-xsl/Makefile index 3dc2d7005d0..b3985aeefc7 100644 --- a/textproc/docbook-xsl/Makefile +++ b/textproc/docbook-xsl/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.43 2006/10/22 12:36:53 wiz Exp $ +# $NetBSD: Makefile,v 1.44 2006/11/03 19:17:39 joerg Exp $ # DISTNAME= docbook-xsl-1.71.1 @@ -10,6 +10,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://docbook.sourceforge.net/ COMMENT= Docbook XSL modular stylesheet +PKG_DESTDIR_SUPPORT= user-destdir + DEPENDS+= docbook-xml>=4.2:../../textproc/docbook-xml USE_LANGUAGES= # empty @@ -25,19 +27,17 @@ XSLMODS= common extensions fo highlighting html htmlhelp images javahelp \ XML_CATALOGS= ${XSLDIR}/catalog.xml +INSTALLATION_DIRS= ${EGDIR} ${XSLDIR} + do-install: - ${INSTALL_DATA_DIR} ${EGDIR} - cd ${WRKSRC}/template && ${PAX} -rw -pp -pm . ${EGDIR} - ${INSTALL_DATA_DIR} ${XSLDIR} - ${INSTALL_DATA} ${WRKSRC}/VERSION ${XSLDIR} - ${INSTALL_DATA} ${WRKSRC}/catalog.xml ${XSLDIR}/catalog.xml + cd ${WRKSRC}/template && ${PAX} -rw -pp -pm . ${DESTDIR}${EGDIR} + ${INSTALL_DATA} ${WRKSRC}/VERSION ${DESTDIR}${XSLDIR} + ${INSTALL_DATA} ${WRKSRC}/catalog.xml ${DESTDIR}${XSLDIR}/catalog.xml for d in ${XSLMODS}; do \ - ${ECHO} "${INSTALL_DATA_DIR} ${XSLDIR}/$$d"; \ - ${ECHO} "cd ${WRKSRC} && ${PAX} -rw -pp -pm $$d ${XSLDIR}/"; \ - cd ${WRKSRC} && ${PAX} -rw -pp -pm $$d ${XSLDIR}/; \ + ${ECHO} "${INSTALL_DATA_DIR} ${DESTDIR}${XSLDIR}/$$d"; \ + ${ECHO} "cd ${WRKSRC} && ${PAX} -rw -pp -pm $$d ${DESTDIR}${XSLDIR}/"; \ + cd ${WRKSRC} && ${PAX} -rw -pp -pm $$d ${DESTDIR}${XSLDIR}/; \ done - ${RM} -f ${XSLDIR}/common/ko.xml.orig - ${RM} -f ${XSLDIR}/common/pi.xsl.orig .include "../../textproc/xmlcatmgr/catalogs.mk" .include "../../mk/bsd.pkg.mk" |