summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrichard <richard>2015-07-08 10:34:46 +0000
committerrichard <richard>2015-07-08 10:34:46 +0000
commit2c2f88686493fe6f5d99de3d61a719242dea6996 (patch)
treed2cd929d85deee95177c77b9ad54ad823308960c
parentbcaec3a23e95c3b8caa4c569713e6b4995ba2192 (diff)
downloadpkgsrc-2c2f88686493fe6f5d99de3d61a719242dea6996.tar.gz
Add docbook-xml and docbook-xsl to avoid nonet load failures as well as
add to xsltproc-nonet.mk a variable XSLTPROC_PATH allowing packages to specify where to find locally files such as dtds, avoiding warnings like 'warning: failed to load external entity'. At the same time add a BUILD_DEPENDS to libxslt for xsltproc-nonet.mk and bump PKGREVISION.
-rw-r--r--textproc/libxslt/Makefile4
-rw-r--r--textproc/libxslt/xsltproc-nonet.mk10
2 files changed, 10 insertions, 4 deletions
diff --git a/textproc/libxslt/Makefile b/textproc/libxslt/Makefile
index cf37ba7e86f..077be5e0799 100644
--- a/textproc/libxslt/Makefile
+++ b/textproc/libxslt/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.100 2015/07/04 09:25:48 richard Exp $
+# $NetBSD: Makefile,v 1.101 2015/07/08 10:34:46 richard Exp $
DISTNAME= libxslt-1.1.28
-PKGREVISION= 4
+PKGREVISION= 5
CATEGORIES= textproc
MASTER_SITES= ftp://xmlsoft.org/libxslt/ \
http://xmlsoft.org/sources/
diff --git a/textproc/libxslt/xsltproc-nonet.mk b/textproc/libxslt/xsltproc-nonet.mk
index ff829585dbc..68c86f59a03 100644
--- a/textproc/libxslt/xsltproc-nonet.mk
+++ b/textproc/libxslt/xsltproc-nonet.mk
@@ -1,9 +1,15 @@
-# $NetBSD: xsltproc-nonet.mk,v 1.1 2009/10/27 14:37:13 drochner Exp $
+# $NetBSD: xsltproc-nonet.mk,v 1.2 2015/07/08 10:34:46 richard Exp $
+
+BUILD_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt
pre-configure: create-xsltproc-wrapper
+# --nonet avoids network connections during builds
+# XLSTPROC_PATH allows any necessary files (e.g. dtds) to be found
+# locally in the paths provided with the default being '--path .'
create-xsltproc-wrapper:
${PRINTF} "#! ${SH}\\n\
- ${LOCALBASE}/bin/xsltproc --nonet \$$*\\n\
+ ${LOCALBASE}/bin/xsltproc --nonet \
+ --path ${XLSTPROC_PATH:U.:O:u:ts::Q} \$$*\\n\
" > ${BUILDLINK_DIR}/bin/xsltproc
${CHMOD} +x ${BUILDLINK_DIR}/bin/xsltproc