pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/libxslt add a makefile snippet to build a wra...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d47fb6a3775f
branches:  trunk
changeset: 400788:d47fb6a3775f
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Tue Oct 27 14:37:13 2009 +0000

description:
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:

 textproc/libxslt/xsltproc-nonet.mk |  9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r dd8abe78786b -r d47fb6a3775f textproc/libxslt/xsltproc-nonet.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/libxslt/xsltproc-nonet.mk        Tue Oct 27 14:37:13 2009 +0000
@@ -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



Home | Main Index | Thread Index | Old Index