aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2013-07-22 02:20:24 +0800
committermarino <marino@FreeBSD.org>2013-07-22 02:20:24 +0800
commit12defcb2b3b9179d860054e0ac30dac32b94f52f (patch)
tree2578474cae13083afefd4eb05008a0e487104cf6
parent1b1f5cfeea150ba87333b57add0958e53e73f620 (diff)
downloadfreebsd-ports-gnome-12defcb2b3b9179d860054e0ac30dac32b94f52f.tar.gz
freebsd-ports-gnome-12defcb2b3b9179d860054e0ac30dac32b94f52f.tar.zst
freebsd-ports-gnome-12defcb2b3b9179d860054e0ac30dac32b94f52f.zip
textproc/website: Fix xmlcatmgr duplicate errors during package installation
PR: ports/179729 Submitted by: marino Approved by: bapt (mentor)
-rw-r--r--textproc/website/Makefile35
-rw-r--r--textproc/website/files/pkg-install.in28
-rw-r--r--textproc/website/pkg-plist3
3 files changed, 28 insertions, 38 deletions
diff --git a/textproc/website/Makefile b/textproc/website/Makefile
index 8fd44ec87a02..445be3b03522 100644
--- a/textproc/website/Makefile
+++ b/textproc/website/Makefile
@@ -1,14 +1,9 @@
-# New ports collection makefile for: website
-# Date Created: 2003-11-10 10:13:49
-# Whom: Jean-Baptiste Quenot <jb.quenot@caraldi.com>
-#
-# Based on the docbook-xsl port
-#
+# Created by: Jean-Baptiste Quenot <jb.quenot@caraldi.com>
# $FreeBSD$
-#
PORTNAME= website
PORTVERSION= 2.5.0
+PORTREVISION= 1
CATEGORIES= textproc www
MASTER_SITES= SF/docbook/OldFiles
@@ -28,6 +23,9 @@ PKGDEINSTALL= ${WRKSRC}/pkg-deinstall
NO_BUILD= yes
XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr
CATALOG_PORTS= ${XMLDIR}/catalog.ports
+CATALOG_XSL= ${WRKSRC}/catalog
+
+DXVERSIONS= current 2.2 2.3 2.4.0 2.4.1 2.5.0
post-extract:
${FIND} ${WRKSRC} -name '.#*' -delete
@@ -38,8 +36,29 @@ do-install:
(cd ${WRKSRC}/example && ${TAR} -cf - . |\
${TAR} -xf - -C${EXAMPLESDIR})
.endif
+ ${XMLCATMGR} -c "${CATALOG_XSL}" create
+.for dxversion in ${DXVERSIONS}
+ ${XMLCATMGR} -c "${CATALOG_XSL}" add rewriteSystem \
+ http://docbook.sourceforge.net/release/website/${dxversion}/xsl \
+ "file://${PREFIX}/${INSTDIR}/xsl"
+ ${XMLCATMGR} -c "${CATALOG_XSL}" add rewriteURI \
+ http://docbook.sourceforge.net/release/website/${dxversion}/xsl \
+ "file://${PREFIX}/${INSTDIR}/xsl"
+ ${XMLCATMGR} -c "${CATALOG_XSL}" add rewriteSystem \
+ http://docbook.sourceforge.net/release/website/${dxversion}/schema/dtd \
+ "file://${PREFIX}/${INSTDIR}/schema/dtd"
+ ${XMLCATMGR} -c "${CATALOG_XSL}" add rewriteURI \
+ http://docbook.sourceforge.net/release/website/${dxversion}/schema/dtd \
+ "file://${PREFIX}/${INSTDIR}/schema/dtd"
+ ${XMLCATMGR} -c "${CATALOG_XSL}" add rewriteSystem \
+ http://docbook.sourceforge.net/release/website/${dxversion} \
+ "file://${PREFIX}/${INSTDIR}/schema/dtd"
+ ${XMLCATMGR} -c "${CATALOG_XSL}" add rewriteURI \
+ http://docbook.sourceforge.net/release/website/${dxversion} \
+ "file://${PREFIX}/${INSTDIR}/schema/dtd"
+.endfor
${MKDIR} ${PINSTDIR}
- (cd ${WRKSRC} && ${TAR} -cf - VERSION ${COPYDIRS} |\
+ (cd ${WRKSRC} && ${TAR} -cf - VERSION catalog ${COPYDIRS} |\
${TAR} -xf - -C${PINSTDIR})
post-install:
diff --git a/textproc/website/files/pkg-install.in b/textproc/website/files/pkg-install.in
index 0fb612bd13d6..dc98b61b5764 100644
--- a/textproc/website/files/pkg-install.in
+++ b/textproc/website/files/pkg-install.in
@@ -18,34 +18,6 @@ if [ "$2" != "POST-INSTALL" ]; then
exit 0
fi
-VERSIONS='current 2.2 2.3 2.4.0 2.4.1 2.5.0'
-
-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/website/$version/xsl \
- "file://${XSL_DIR}/xsl"
- ${XMLCATMGR} -c "${CATALOG_XSL}" add rewriteURI \
- http://docbook.sourceforge.net/release/website/$version/xsl \
- "file://${XSL_DIR}/xsl"
- ${XMLCATMGR} -c "${CATALOG_XSL}" add rewriteSystem \
- http://docbook.sourceforge.net/release/website/$version/schema/dtd \
- "file://${XSL_DIR}/schema/dtd"
- ${XMLCATMGR} -c "${CATALOG_XSL}" add rewriteURI \
- http://docbook.sourceforge.net/release/website/$version/schema/dtd \
- "file://${XSL_DIR}/schema/dtd"
- ${XMLCATMGR} -c "${CATALOG_XSL}" add rewriteSystem \
- http://docbook.sourceforge.net/release/website/$version \
- "file://${XSL_DIR}/schema/dtd"
- ${XMLCATMGR} -c "${CATALOG_XSL}" add rewriteURI \
- http://docbook.sourceforge.net/release/website/$version \
- "file://${XSL_DIR}/schema/dtd"
-done
-
${XMLCATMGR} -c "${CATALOG_PORTS_XML}" add delegateSystem \
http://docbook.sourceforge.net/release/website/ \
"file://${CATALOG_XSL}"
diff --git a/textproc/website/pkg-plist b/textproc/website/pkg-plist
index 129ff9e82a1d..5a7e8d9d983f 100644
--- a/textproc/website/pkg-plist
+++ b/textproc/website/pkg-plist
@@ -177,7 +177,6 @@ share/xsl/website/xsl/website-common.xsl
share/xsl/website/xsl/website-targets.xsl
share/xsl/website/xsl/website.xsl
share/xsl/website/xsl/xbel.xsl
-@unexec rm -f %D/share/xsl/website/catalog 2>&1 >/dev/null || true
@dirrm share/xsl/website/xsl
@dirrm share/xsl/website/tests
@dirrm share/xsl/website/schema/relaxng
@@ -193,7 +192,7 @@ share/xsl/website/xsl/xbel.xsl
@dirrm share/xsl/website/extensions/saxon64
@dirrm share/xsl/website/extensions
@dirrm share/xsl/website
-@dirrm share/xsl
+@dirrmtry share/xsl
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/subdir
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/graphics/navicons/triangle/other
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/graphics/navicons/triangle/current