summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authordrochner <drochner>2009-10-27 14:37:13 +0000
committerdrochner <drochner>2009-10-27 14:37:13 +0000
commitd4fa7a4af1c1f6f155b8d74154f6d309cda3a2c7 (patch)
treef760716558914f756298c5ef2f7ed3fb5a3f0d64 /textproc
parent626b98b8418491a0f5cdc47a8972d7ff87aa3911 (diff)
downloadpkgsrc-d4fa7a4af1c1f6f155b8d74154f6d309cda3a2c7.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')
-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