summaryrefslogtreecommitdiff
path: root/textproc/libxslt
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2009-10-27 14:37:13 +0000
committerdrochner <drochner@pkgsrc.org>2009-10-27 14:37:13 +0000
commitbfd5299e937bd034d83c0f7351b25894fb8cbefb (patch)
treef760716558914f756298c5ef2f7ed3fb5a3f0d64 /textproc/libxslt
parent6f5a10e987ddc7752f2c9356ee27ac9b80491bc0 (diff)
downloadpkgsrc-bfd5299e937bd034d83c0f7351b25894fb8cbefb.tar.gz
add a makefile snippet to build a wrapper for "xsltproc" which
makes sure the tool is called with the "--nonet" option, keeping it from using http or ftp to resolve references in xml files (unfortunately it doesn't work as intended yet)
Diffstat (limited to 'textproc/libxslt')
-rw-r--r--textproc/libxslt/xsltproc-nonet.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/textproc/libxslt/xsltproc-nonet.mk b/textproc/libxslt/xsltproc-nonet.mk
new file mode 100644
index 00000000000..ff829585dbc
--- /dev/null
+++ b/textproc/libxslt/xsltproc-nonet.mk
@@ -0,0 +1,9 @@
+# $NetBSD: xsltproc-nonet.mk,v 1.1 2009/10/27 14:37:13 drochner Exp $
+
+pre-configure: create-xsltproc-wrapper
+
+create-xsltproc-wrapper:
+ ${PRINTF} "#! ${SH}\\n\
+ ${LOCALBASE}/bin/xsltproc --nonet \$$*\\n\
+ " > ${BUILDLINK_DIR}/bin/xsltproc
+ ${CHMOD} +x ${BUILDLINK_DIR}/bin/xsltproc