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.diff -r1.100 -r1.101 pkgsrc/textproc/libxslt/Makefile
(richard)
@@ -1,17 +1,17 @@ | @@ -1,17 +1,17 @@ | |||
1 | # $NetBSD: Makefile,v 1.100 2015/07/04 09:25:48 richard Exp $ | 1 | # $NetBSD: Makefile,v 1.101 2015/07/08 10:34:46 richard Exp $ | |
2 | 2 | |||
3 | DISTNAME= libxslt-1.1.28 | 3 | DISTNAME= libxslt-1.1.28 | |
4 | PKGREVISION= 4 | 4 | PKGREVISION= 5 | |
5 | CATEGORIES= textproc | 5 | CATEGORIES= textproc | |
6 | MASTER_SITES= ftp://xmlsoft.org/libxslt/ \ | 6 | MASTER_SITES= ftp://xmlsoft.org/libxslt/ \ | |
7 | http://xmlsoft.org/sources/ | 7 | http://xmlsoft.org/sources/ | |
8 | 8 | |||
9 | MAINTAINER= pkgsrc-users@NetBSD.org | 9 | MAINTAINER= pkgsrc-users@NetBSD.org | |
10 | HOMEPAGE= http://xmlsoft.org/XSLT/ | 10 | HOMEPAGE= http://xmlsoft.org/XSLT/ | |
11 | COMMENT= XSLT parser library from the GNOME project | 11 | COMMENT= XSLT parser library from the GNOME project | |
12 | LICENSE= mit # with advertisement clause | 12 | LICENSE= mit # with advertisement clause | |
13 | 13 | |||
14 | USE_LIBTOOL= yes | 14 | USE_LIBTOOL= yes | |
15 | USE_TOOLS+= gmake perl | 15 | USE_TOOLS+= gmake perl | |
16 | GNU_CONFIGURE= yes | 16 | GNU_CONFIGURE= yes | |
17 | CONFIGURE_ARGS+= --with-libxml-prefix=${BUILDLINK_PREFIX.libxml2} | 17 | CONFIGURE_ARGS+= --with-libxml-prefix=${BUILDLINK_PREFIX.libxml2} |
@@ -1,9 +1,15 @@ | @@ -1,9 +1,15 @@ | |||
1 | # $NetBSD: xsltproc-nonet.mk,v 1.1 2009/10/27 14:37:13 drochner Exp $ | 1 | # $NetBSD: xsltproc-nonet.mk,v 1.2 2015/07/08 10:34:46 richard Exp $ | |
2 | ||||
3 | BUILD_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt | |||
2 | 4 | |||
3 | pre-configure: create-xsltproc-wrapper | 5 | pre-configure: create-xsltproc-wrapper | |
4 | 6 | |||
7 | # --nonet avoids network connections during builds | |||
8 | # XLSTPROC_PATH allows any necessary files (e.g. dtds) to be found | |||
9 | # locally in the paths provided with the default being '--path .' | |||
5 | create-xsltproc-wrapper: | 10 | create-xsltproc-wrapper: | |
6 | ${PRINTF} "#! ${SH}\\n\ | 11 | ${PRINTF} "#! ${SH}\\n\ | |
7 | ${LOCALBASE}/bin/xsltproc --nonet \$$*\\n\ | 12 | ${LOCALBASE}/bin/xsltproc --nonet \ | |
13 | --path ${XLSTPROC_PATH:U.:O:u:ts::Q} \$$*\\n\ | |||
8 | " > ${BUILDLINK_DIR}/bin/xsltproc | 14 | " > ${BUILDLINK_DIR}/bin/xsltproc | |
9 | ${CHMOD} +x ${BUILDLINK_DIR}/bin/xsltproc | 15 | ${CHMOD} +x ${BUILDLINK_DIR}/bin/xsltproc |