aboutsummaryrefslogtreecommitdiff
path: root/textproc/docbook-xsl
diff options
context:
space:
mode:
authorGabor Kovesdan <gabor@FreeBSD.org>2013-07-09 21:04:41 +0000
committerGabor Kovesdan <gabor@FreeBSD.org>2013-07-09 21:04:41 +0000
commit4f48d08c11e5b1c4fa10a5f48269d7ba05a28851 (patch)
tree6b5209f0672d34b927f33a17349b23f2677089b8 /textproc/docbook-xsl
parent0759ad277c88bd8e7458a57c9bf9249e2d24c80b (diff)
downloadports-4f48d08c11e5b1c4fa10a5f48269d7ba05a28851.tar.gz
ports-4f48d08c11e5b1c4fa10a5f48269d7ba05a28851.zip
Notes
Diffstat (limited to 'textproc/docbook-xsl')
-rw-r--r--textproc/docbook-xsl/Makefile19
-rw-r--r--textproc/docbook-xsl/files/pkg-install.in16
2 files changed, 19 insertions, 16 deletions
diff --git a/textproc/docbook-xsl/Makefile b/textproc/docbook-xsl/Makefile
index a88324184293..d8c1bbceb6c7 100644
--- a/textproc/docbook-xsl/Makefile
+++ b/textproc/docbook-xsl/Makefile
@@ -2,6 +2,7 @@
PORTNAME= docbook-xsl
PORTVERSION= 1.76.1
+PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= SF/docbook/${PORTNAME}/${PORTVERSION}:src \
SF/docbook/${PORTNAME}-doc/${PORTVERSION}:doc
@@ -27,6 +28,7 @@ SUB_LIST+= INSTDIR="${INSTDIR}" \
CATALOG_PORTS="${LOCALBASE}/share/xml/catalog.ports"
XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr
+CATALOG_XSL= ${WRKSRC}/catalog
MODULES= common fo html images lib manpages params xhtml
@@ -52,6 +54,14 @@ TOOLS_DESC= Tools
WEBSITE_DESC= Website modules
XHTML11_DESC= XHTML 1.1 modules
+DXVERSIONS= 1.36 1.37 1.38 1.39 1.40 1.41 1.42 1.43 1.44 1.45 1.46 1.47 \
+ 1.48 1.49 1.50.0 1.51.0 1.51.1 1.52.0 1.52.1 1.52.2 1.53.0 \
+ 1.54.0 1.54.1 1.55.0 1.56.0 1.56.1 1.57.0 1.58.0 1.58.1 \
+ 1.59.0 1.59.1 1.59.2 1.60.0 1.60.1 1.61.0 1.61.1 1.61.2 \
+ 1.61.3 1.62.0 1.62.1 1.62.2 1.62.3 1.62.4 1.63.0 1.64.0 \
+ 1.64.1 1.65.0 1.65.1 1.66.0 1.66.1 1.67.0 1.67.2 1.68.0 \
+ 1.68.1 1.69.0 1.69.1 1.70.0 1.70.1 1.71.0 1.71.1 current
+
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
@@ -169,6 +179,15 @@ do-install:
${INSTALL_DATA} $${i} ${PREFIX}/${INSTDIR}/${m}; \
done
.endfor
+ ${XMLCATMGR} -c ${CATALOG_XSL} create
+.for dxversion in ${DXVERSIONS}
+ ${XMLCATMGR} -c "${CATALOG_XSL}" add rewriteSystem \
+ http://docbook.sourceforge.net/release/xsl/${dxversion} \
+ "file://${PREFIX}/${INSTDIR}"
+ ${XMLCATMGR} -c "${CATALOG_XSL}" add rewriteURI \
+ http://docbook.sourceforge.net/release/xsl/${dxversion} \
+ "file://${PREFIX}/${INSTDIR}"
+.endfor
files=$$(${FIND} ${WRKSRC} -type f -depth 1); \
for i in $${files}; do \
${INSTALL_DATA} $${i} ${PREFIX}/${INSTDIR}; \
diff --git a/textproc/docbook-xsl/files/pkg-install.in b/textproc/docbook-xsl/files/pkg-install.in
index cd65799bec9a..dd72e90ce557 100644
--- a/textproc/docbook-xsl/files/pkg-install.in
+++ b/textproc/docbook-xsl/files/pkg-install.in
@@ -17,22 +17,6 @@ if [ "$2" != "POST-INSTALL" ]; then
exit 0
fi
-VERSIONS='1.36 1.37 1.38 1.39 1.40 1.41 1.42 1.43 1.44 1.45 1.46 1.47 1.48 1.49 1.50.0 1.51.0 1.51.1 1.52.0 1.52.1 1.52.2 1.53.0 1.54.0 1.54.1 1.55.0 1.56.0 1.56.1 1.57.0 1.58.0 1.58.1 1.59.0 1.59.1 1.59.2 1.60.0 1.60.1 1.61.0 1.61.1 1.61.2 1.61.3 1.62.0 1.62.1 1.62.2 1.62.3 1.62.4 1.63.0 1.64.0 1.64.1 1.65.0 1.65.1 1.66.0 1.66.1 1.67.0 1.67.2 1.68.0 1.68.1 1.69.0 1.69.1 1.70.0 1.70.1 1.71.0 1.71.1 current'
-
-if [ ! -f ${CATALOG_XSL} ]; then
- %%XMLCATMGR%% -c "${CATALOG_XSL}" create
-fi
-
-for version in ${VERSIONS}
-do
- %%XMLCATMGR%% -c "${CATALOG_XSL}" add rewriteSystem \
- http://docbook.sourceforge.net/release/xsl/$version \
- "file://${XSL_DIR}"
- %%XMLCATMGR%% -c "${CATALOG_XSL}" add rewriteURI \
- http://docbook.sourceforge.net/release/xsl/$version \
- "file://${XSL_DIR}"
-done
-
%%XMLCATMGR%% -c %%CATALOG_PORTS%% add delegateSystem \
http://docbook.sourceforge.net/release/xsl/ \
"file://${CATALOG_XSL}"