summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorasau <asau@pkgsrc.org>2015-11-19 23:40:59 +0000
committerasau <asau@pkgsrc.org>2015-11-19 23:40:59 +0000
commit1cef812e5b615a2640cc08541ab72fc869e07f1d (patch)
treee1ded7cec80681dd04a8c5cfa5c31c01ba44eaee
parent2df07373391d6b88170b323d712d82740f399257 (diff)
downloadpkgsrc-1cef812e5b615a2640cc08541ab72fc869e07f1d.tar.gz
Make it work without Internet access.
Transform DocBook XSLT URLs to point to local copies coming from textproc/docbook-xsl. This package should use XML Catalog, but doesn't for some unclear reason.
-rw-r--r--textproc/xmlto/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/textproc/xmlto/Makefile b/textproc/xmlto/Makefile
index 59c8e4931fe..bbf12458ed0 100644
--- a/textproc/xmlto/Makefile
+++ b/textproc/xmlto/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.27 2015/11/18 09:16:19 richard Exp $
+# $NetBSD: Makefile,v 1.28 2015/11/19 23:40:59 asau Exp $
DISTNAME= xmlto-0.0.27
+PKGREVISION= 1
CATEGORIES= textproc
MASTER_SITES= https://fedorahosted.org/releases/x/m/xmlto/
EXTRACT_SUFX= .tar.bz2
@@ -24,6 +25,13 @@ CONFIGURE_ENV+= TAIL=${TOOLS_PATH.tail}
CPPFLAGS.SunOS+= -D__EXTENSIONS__
+## FIXME: the package should use XML catalog to access transformations from docbook-xsl package
+SUBST_CLASSES+= fix-paths
+SUBST_STAGE.fix-paths= post-build
+SUBST_MESSAGE.fix-paths= Fixing location of XSLTs.
+SUBST_FILES.fix-paths= format/docbook/*
+SUBST_SED.fix-paths= -e 's,http://docbook.sourceforge.net/release/xsl/current/,file://${PREFIX}/share/xsl/docbook/,g'
+
MAKE_ENV+= SGML_CATALOG_FILES=${PREFIX}/share/xml/catalog
REPLACE_BASH+= xmlif/test/run-test
TEST_TARGET= check