Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F165162026
D6539.id16823.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
56 KB
Referenced Files
None
Subscribers
None
D6539.id16823.diff
View Options
Index: head/Keywords/xmlcatmgr.ucl
===================================================================
--- head/Keywords/xmlcatmgr.ucl
+++ head/Keywords/xmlcatmgr.ucl
@@ -0,0 +1,34 @@
+# $FreeBSD$
+
+actions: [file]
+arguments: true
+post-install: <<EOD
+ case "%@" in
+ /*) cat="%@" ;;
+ *) cat="%D/%@" ;;
+ esac
+ case "%@" in
+ *.xml)
+ xmlcatmgr_cmd="xmlcatmgr -c ${PKG_ROOTDIR}%D/share/xml/catalog.ports add nextCatalog"
+ ;;
+ *)
+ xmlcatmgr_cmd="xmlcatmgr -sc ${PKG_ROOTDIR}%D/share/sgml/catalog.ports add CATALOG"
+ ;;
+ esac
+ ${xmlcatmgr_cmd} ${cat}
+EOD
+post-deinstall: <<EOD
+ case "%@" in
+ /*) cat="%@" ;;
+ *) cat="%D/%@" ;;
+ esac
+ case "%@" in
+ *.xml)
+ xmlcatmgr_cmd="xmlcatmgr -c ${PKG_ROOTDIR}%D/share/xml/catalog.ports remove nextCatalog"
+ ;;
+ *)
+ xmlcatmgr_cmd="xmlcatmgr -sc ${PKG_ROOTDIR}%D/share/sgml/catalog.ports remove CATALOG"
+ ;;
+ esac
+ ${xmlcatmgr_cmd} ${cat}
+EOD
Index: head/security/vuxml/Makefile
===================================================================
--- head/security/vuxml/Makefile
+++ head/security/vuxml/Makefile
@@ -16,7 +16,7 @@
LICENSE= BSD2CLAUSE
-RUN_DEPENDS= ${XMLCATMGR}:textproc/xmlcatmgr \
+RUN_DEPENDS= xmlcatmgr:textproc/xmlcatmgr \
${LOCALBASE}/share/xml/dtd/xhtml-modularization/VERSION:textproc/xhtml-modularization \
${LOCALBASE}/share/xml/dtd/xhtml-basic/xhtml-basic10.dtd:textproc/xhtml-basic
@@ -26,28 +26,9 @@
NO_ARCH= yes
NO_BUILD= yes
WRKSRC= ${WRKDIR}
-PLIST_SUB= XMLCAT_RM="${XMLCAT_RM}" XMLCAT_ADD="${XMLCAT_ADD}" \
- SGMLCAT_RM="${SGMLCAT_RM}" SGMLCAT_ADD="${SGMLCAT_ADD}" \
- dir_DTD="${dir_DTD}"
dir_DTD= share/xml/dtd/vuxml
-XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr
-SGMLCAT= ${PREFIX}/share/sgml/catalog.ports
-XMLCAT= ${PREFIX}/share/xml/catalog.ports
-
-XMLCAT_ADD= ${XMLCATMGR} -c ${XMLCAT} add nextCatalog \
- ${PREFIX}/${dir_DTD}/catalog.xml
-XMLCAT_RM= ${XMLCATMGR} -c ${XMLCAT} remove nextCatalog \
- ${PREFIX}/${dir_DTD}/catalog.xml
-SGMLCAT_ADD= ${XMLCATMGR} -sc ${SGMLCAT} add CATALOG \
- ${PREFIX}/${dir_DTD}/catalog
-SGMLCAT_RM= ${XMLCATMGR} -sc ${SGMLCAT} remove CATALOG \
- ${PREFIX}/${dir_DTD}/catalog
-
-CATALOG_PORTS_SGML= ${PREFIX}/share/sgml/catalog.ports
-CATALOG_PORTS_XML= ${PREFIX}/share/xml/catalog.ports
-
VUXML_FILE?= ${PKGDIR}/vuln.xml
do-extract:
Index: head/security/vuxml/pkg-plist
===================================================================
--- head/security/vuxml/pkg-plist
+++ head/security/vuxml/pkg-plist
@@ -1,11 +1,7 @@
-share/xml/dtd/vuxml/catalog
-share/xml/dtd/vuxml/catalog.xml
+@xmlcatmgr share/xml/dtd/vuxml/catalog
+@xmlcatmgr share/xml/dtd/vuxml/catalog.xml
share/xml/dtd/vuxml/vuxml-10.dtd
share/xml/dtd/vuxml/vuxml-11.dtd
share/xml/dtd/vuxml/vuxml-model-10.mod
share/xml/dtd/vuxml/vuxml-model-11.mod
share/xml/dtd/vuxml/xml1.dcl
-@unexec %%XMLCAT_RM%%
-@exec %%XMLCAT_ADD%%
-@unexec %%SGMLCAT_RM%%
-@exec %%SGMLCAT_ADD%%
Index: head/textproc/docbook-sgml/Makefile
===================================================================
--- head/textproc/docbook-sgml/Makefile
+++ head/textproc/docbook-sgml/Makefile
@@ -12,7 +12,7 @@
COMMENT= DocBook SGML DTD
RUN_DEPENDS= ${LOCALBASE}/${ISOCAT}:textproc/iso8879 \
- ${LOCALBASE}/${XMLCATMGR}:textproc/xmlcatmgr
+ xmlcatmgr:textproc/xmlcatmgr
NO_BUILD= yes
@@ -20,12 +20,10 @@
4.0:docbk40 4.1:docbk41 4.2:docbook-4.2 \
4.3:docbook-4.3 4.4:docbook-4.4 4.5:docbook-4.5
-XMLCATMGR= bin/xmlcatmgr
-SGMLCAT= share/sgml/catalog.ports
ISOCAT= share/sgml/iso8879/catalog
DBKDIR= share/sgml/docbook
DBCAT= ${PREFIX}/${DBKDIR}/catalog
-PLIST_SUB= XMLCATMGR=${XMLCATMGR} SGMLCAT=${SGMLCAT} DBKDIR=${DBKDIR}
+PLIST_SUB= DBKDIR=${DBKDIR}
do-extract:
@${RM} -rf ${WRKDIR}
Index: head/textproc/docbook-sgml/pkg-plist
===================================================================
--- head/textproc/docbook-sgml/pkg-plist
+++ head/textproc/docbook-sgml/pkg-plist
@@ -134,6 +134,4 @@
%%DBKDIR%%/4.5/docbookx.dtd
%%DBKDIR%%/4.5/htmltblx.mod
%%DBKDIR%%/4.5/soextblx.dtd
-%%DBKDIR%%/catalog
-@unexec %D/%%XMLCATMGR%% -sc %D/%%SGMLCAT%% remove CATALOG %D/%F
-@exec %D/%%XMLCATMGR%% -sc %D/%%SGMLCAT%% add CATALOG %D/%F
+@xmlcatmgr %%DBKDIR%%/catalog
Index: head/textproc/docbook-xml/Makefile
===================================================================
--- head/textproc/docbook-xml/Makefile
+++ head/textproc/docbook-xml/Makefile
@@ -12,24 +12,19 @@
COMMENT= DocBook XML DTD
BUILD_DEPENDS= ${LOCALBASE}/share/xml/xmlcharent/catalog.xml:textproc/xmlcharent \
- ${XMLCATMGR_CMD}:textproc/xmlcatmgr
+ xmlcatmgr:textproc/xmlcatmgr
RUN_DEPENDS= ${LOCALBASE}/share/xml/xmlcharent/catalog.xml:textproc/xmlcharent \
- ${XMLCATMGR_CMD}:textproc/xmlcatmgr
+ xmlcatmgr:textproc/xmlcatmgr
NO_BUILD= yes
DBFILES=4.1.2:docbkx412 4.2:docbook-xml-4.2 4.3:docbook-xml-4.3 \
4.4:docbook-xml-4.4 4.5:docbook-xml-4.5 5.0:docbook-5.0
-XMLCATMGR= bin/xmlcatmgr
-XMLCATMGR_CMD= ${LOCALBASE}/${XMLCATMGR}
-SGMLCAT= share/sgml/catalog.ports
-XMLCAT= share/xml/catalog.ports
DBKDIR= share/xml/docbook
DBCAT_XML= ${PREFIX}/${DBKDIR}/catalog.xml
DBCAT_SGML= ${PREFIX}/${DBKDIR}/catalog
-PLIST_SUB= XMLCATMGR=${XMLCATMGR} SGMLCAT=${SGMLCAT} \
- DBKDIR=${DBKDIR} XMLCAT=${XMLCAT}
+PLIST_SUB= DBKDIR=${DBKDIR}
do-extract:
@${RM} -rf ${WRKDIR}
@@ -48,8 +43,8 @@
@${MKDIR} ${STAGEDIR}${PREFIX}/${DBKDIR}
${ECHO_CMD} "CATALOG \"${LOCALBASE}/share/xml/xmlcharent/catalog\"" \
> ${STAGEDIR}${DBCAT_SGML}
- ${XMLCATMGR_CMD} -c ${STAGEDIR}${DBCAT_XML} create
- ${XMLCATMGR_CMD} -c ${STAGEDIR}${DBCAT_XML} \
+ xmlcatmgr -c ${STAGEDIR}${DBCAT_XML} create
+ xmlcatmgr -c ${STAGEDIR}${DBCAT_XML} \
add nextCatalog "${LOCALBASE}/share/xml/xmlcharent/catalog.xml"
.for D in ${DBFILES:C,:.*,,}
@@ -57,7 +52,7 @@
@${MKDIR} ${STAGEDIR}${PREFIX}/${DBKDIR}/$D
cd ${WRKDIR}/${DBFILES:M${D}\:*:C,.*:,,} && \
${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${DBKDIR}/$D
- ${XMLCATMGR_CMD} -c ${STAGEDIR}${DBCAT_XML} \
+ xmlcatmgr -c ${STAGEDIR}${DBCAT_XML} \
add nextCatalog "${PREFIX}/${DBKDIR}/$D/catalog.xml"
test "$D" = 5.0 || test "$D" = 4.1.2 || \
${ECHO_CMD} "CATALOG \"${PREFIX}/${DBKDIR}/$D/docbook.cat\"" \
Index: head/textproc/docbook-xml/pkg-plist
===================================================================
--- head/textproc/docbook-xml/pkg-plist
+++ head/textproc/docbook-xml/pkg-plist
@@ -187,9 +187,5 @@
%%DBKDIR%%/5.0/xsd/docbook.xsd
%%DBKDIR%%/5.0/xsd/xlink.xsd
%%DBKDIR%%/5.0/xsd/xml.xsd
-%%DBKDIR%%/catalog.xml
-@unexec %D/%%XMLCATMGR%% -c %D/%%XMLCAT%% remove nextCatalog %D/%F
-@exec %D/%%XMLCATMGR%% -c %D/%%XMLCAT%% add nextCatalog %D/%F
-%%DBKDIR%%/catalog
-@unexec %D/%%XMLCATMGR%% -sc %D/%%SGMLCAT%% remove CATALOG %D/%F
-@exec %D/%%XMLCATMGR%% -sc %D/%%SGMLCAT%% add CATALOG %D/%F
+@xmlcatmgr %%DBKDIR%%/catalog.xml
+@xmlcatmgr %%DBKDIR%%/catalog
Index: head/textproc/docbook-xsl-ns/Makefile
===================================================================
--- head/textproc/docbook-xsl-ns/Makefile
+++ head/textproc/docbook-xsl-ns/Makefile
@@ -23,32 +23,21 @@
EXTRACT_AFTER_ARGS= --exclude=".*" --exclude="*.sh" --exclude "*.LOG"
PKGINSTALL= ${WRKDIR}/pkg-install
PKGDEINSTALL= ${WRKDIR}/pkg-install
-SUB_FILES= pkg-install
-SUB_LIST+= INSTDIR="${INSTDIR}" \
- XMLCATMGR="${XMLCATMGR}" \
- CATALOG_PORTS="${LOCALBASE}/share/xml/catalog.ports"
PORTDOCS= *
INSTDIR= share/xsl/docbook-ns
DOCSRC= ${WRKDIR}/docbook-xsl-${PORTVERSION}
-XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr
OPTIONS_DEFINE= DOCS
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MDOCS}
-DISTFILES+= docbook-xsl-doc-${PORTVERSION}${EXTRACT_SUFX}:doc
-.endif
+DOCS_DISTFILES= docbook-xsl-doc-${PORTVERSION}${EXTRACT_SUFX}:doc
do-install:
- ${MKDIR} ${STAGEDIR}${PREFIX}/${INSTDIR}
+ @${MKDIR} ${STAGEDIR}${PREFIX}/${INSTDIR}
cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${INSTDIR}
-post-install:
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${STAGEDIR}${DOCSDIR}
+post-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${DOCSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
-.endif
.include <bsd.port.mk>
Index: head/textproc/docbook-xsl-ns/files/pkg-install.in
===================================================================
--- head/textproc/docbook-xsl-ns/files/pkg-install.in
+++ head/textproc/docbook-xsl-ns/files/pkg-install.in
@@ -1,24 +0,0 @@
-#!/bin/sh
-# $FreeBSD$
-# This script will create the docbook-xsl catalog and will add entries to xml catalog.
-# WARNING: If you change this script, be sure to check pkg-deinstall.in!
-#
-# Based on http://xmlsoft.org/buildDocBookCatalog file.
-#
-# Run the following command to generate a new VERSIONS string:
-# perl -n -e '/Version ([\d.]+) rel/ && print "$1\n"' work/*/ChangeLog |
-# sort -n | tr '\n' ' '
-#
-# -- Rui Lopes <rui@ruilopes.com>
-
-case $2 in
-POST-INSTALL)
- %%XMLCATMGR%% -c %%CATALOG_PORTS%% add nextCatalog \
- "${PKG_PREFIX}/%%INSTDIR%%/catalog.xml"
-;;
-POST-DEINSTALL)
- %%XMLCATMGR%% -c %%CATALOG_PORTS%% remove \
- "${PKG_PREFIX}/%%INSTDIR%%/catalog.xml"
-;;
-esac
-exit 0
Index: head/textproc/docbook-xsl-ns/pkg-plist
===================================================================
--- head/textproc/docbook-xsl-ns/pkg-plist
+++ head/textproc/docbook-xsl-ns/pkg-plist
@@ -13,7 +13,7 @@
share/xsl/docbook-ns/tests/refentry.007.xml
share/xsl/docbook-ns/tests/refentry.007.ns.xml
share/xsl/docbook-ns/Makefile
-share/xsl/docbook-ns/catalog.xml
+@xmlcatmgr share/xsl/docbook-ns/catalog.xml
share/xsl/docbook-ns/RELEASE-NOTES.xml
share/xsl/docbook-ns/eclipse/profile-eclipse.xsl
share/xsl/docbook-ns/eclipse/eclipse3.xsl
@@ -469,7 +469,6 @@
share/xsl/docbook-ns/html/titlepage.xsl
share/xsl/docbook-ns/html/refentry.xsl
share/xsl/docbook-ns/html/autoidx.xsl
-share/xsl/docbook-ns/svn-commit.tmp
share/xsl/docbook-ns/profiling/profile-mode.xsl
share/xsl/docbook-ns/profiling/strip-attributes.xsl
share/xsl/docbook-ns/profiling/xsl2profile.xsl
Index: head/textproc/docbook-xsl/Makefile
===================================================================
--- head/textproc/docbook-xsl/Makefile
+++ head/textproc/docbook-xsl/Makefile
@@ -2,7 +2,7 @@
PORTNAME= docbook-xsl
PORTVERSION= 1.76.1
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= textproc
MASTER_SITES= SF/docbook/${PORTNAME}/${PORTVERSION}:src \
SF/docbook/${PORTNAME}-doc/${PORTVERSION}:doc
@@ -22,14 +22,6 @@
PKGINSTALL= ${WRKDIR}/pkg-install
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
-SUB_FILES= pkg-install pkg-deinstall
-SUB_LIST+= INSTDIR="${INSTDIR}" \
- XMLCATMGR="${XMLCATMGR}" \
- CATALOG_PORTS="${LOCALBASE}/share/xml/catalog.ports"
-
-XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr
-CATALOG_XSL= ${WRKSRC}/catalog
-
MODULES= common fo html images lib manpages params xhtml
OPTIONS_DEFINE= ECLIPSE EPUB EXTENSIONS HIGHLIGHTING HTMLHELP JAVAHELP \
Index: head/textproc/docbook-xsl/files/pkg-deinstall.in
===================================================================
--- head/textproc/docbook-xsl/files/pkg-deinstall.in
+++ head/textproc/docbook-xsl/files/pkg-deinstall.in
@@ -1,11 +0,0 @@
-#!/bin/sh
-# This script will remove the docbook-xsl entries added to xml catalog.
-# -- Rui Lopes <rui@ruilopes.com>
-
-if [ "$2" != "DEINSTALL" ]; then
- exit 0
-fi
-
-%%XMLCATMGR%% -c %%CATALOG_PORTS%% remove \
- http://docbook.sourceforge.net/release/xsl/
-exit 0
Index: head/textproc/docbook-xsl/files/pkg-install.in
===================================================================
--- head/textproc/docbook-xsl/files/pkg-install.in
+++ head/textproc/docbook-xsl/files/pkg-install.in
@@ -1,30 +0,0 @@
-#!/bin/sh
-# This script will create the docbook-xsl catalog and will add entries to xml catalog.
-# WARNING: If you change this script, be sure to check pkg-deinstall.in!
-#
-# Based on http://xmlsoft.org/buildDocBookCatalog file.
-#
-# Run the following command to generate a new VERSIONS string:
-# perl -n -e '/Version ([\d.]+) rel/ && print "$1\n"' work/*/ChangeLog |
-# sort -n | tr '\n' ' '
-#
-# -- Rui Lopes <rui@ruilopes.com>
-
-XSL_DIR=${PKG_PREFIX}/%%INSTDIR%%
-CATALOG_XSL=${XSL_DIR}/catalog.xml
-
-if [ "$2" != "POST-INSTALL" ]; then
- exit 0
-fi
-
-test -r "${CATALOG_XSL}" || {
- echo >&2 "Cannot register non-existent catalog ${CATALOG_XSL}"
- exit 1
-}
-%%XMLCATMGR%% -c %%CATALOG_PORTS%% add delegateSystem \
- http://docbook.sourceforge.net/release/xsl/ \
- "file://${CATALOG_XSL}"
-%%XMLCATMGR%% -c %%CATALOG_PORTS%% add delegateURI \
- http://docbook.sourceforge.net/release/xsl/ \
- "file://${CATALOG_XSL}"
-exit 0
Index: head/textproc/docbook-xsl/pkg-plist
===================================================================
--- head/textproc/docbook-xsl/pkg-plist
+++ head/textproc/docbook-xsl/pkg-plist
@@ -13,7 +13,7 @@
share/xsl/docbook/RELEASE-NOTES.xml
share/xsl/docbook/TODO
share/xsl/docbook/VERSION
-share/xsl/docbook/catalog.xml
+@xmlcatmgr share/xsl/docbook/catalog.xml
share/xsl/docbook/common/af.xml
share/xsl/docbook/common/am.xml
share/xsl/docbook/common/ar.xml
Index: head/textproc/dsssl-docbook-modular/Makefile
===================================================================
--- head/textproc/dsssl-docbook-modular/Makefile
+++ head/textproc/dsssl-docbook-modular/Makefile
@@ -18,17 +18,13 @@
MAINTAINER= kuriyama@FreeBSD.org
COMMENT= DSSSL stylesheets for the DocBook DTD by Norman Walsh
-BUILD_DEPENDS= ${XMLCATMGR}:textproc/xmlcatmgr
+BUILD_DEPENDS= xmlcatmgr:textproc/xmlcatmgr
RUN_DEPENDS:= ${BUILD_DEPENDS}
NO_MTREE= yes
RELDIR= docbook/dsssl/modular
INSTDIR= ${PREFIX}/share/sgml/${RELDIR}
-XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr
-CATALOG_PORTS_SGML= ${PREFIX}/share/sgml/catalog.ports
-PLIST_SUB= XMLCATMGR=${XMLCATMGR} DTDDIR=${RELDIR} \
- CATALOG_PORTS_SGML=${CATALOG_PORTS_SGML}
do-build:
${RM} -Rf ${WRKSRC}/docsrc
Index: head/textproc/dsssl-docbook-modular/pkg-plist
===================================================================
--- head/textproc/dsssl-docbook-modular/pkg-plist
+++ head/textproc/dsssl-docbook-modular/pkg-plist
@@ -9,7 +9,7 @@
share/sgml/docbook/dsssl/modular/bin/ChangeLog
share/sgml/docbook/dsssl/modular/bin/collateindex.pl
share/sgml/docbook/dsssl/modular/bin/collateindex.pl.1
-share/sgml/docbook/dsssl/modular/catalog
+@xmlcatmgr share/sgml/docbook/dsssl/modular/catalog
share/sgml/docbook/dsssl/modular/common/ChangeLog
share/sgml/docbook/dsssl/modular/common/catalog
share/sgml/docbook/dsssl/modular/common/cs-hack.pl
@@ -726,5 +726,3 @@
share/sgml/docbook/dsssl/modular/print/notoc.dsl
share/sgml/docbook/dsssl/modular/print/plain.dsl
share/sgml/docbook/dsssl/modular/print/version.dsl
-@unexec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% remove %%DTDDIR%%/catalog
-@exec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% add CATALOG %%DTDDIR%%/catalog
Index: head/textproc/gtk-doc/Makefile
===================================================================
--- head/textproc/gtk-doc/Makefile
+++ head/textproc/gtk-doc/Makefile
@@ -22,17 +22,9 @@
DOCBOOK_VERSION= 4.1.2
-CATALOG_DIR= ${PREFIX}/share/sgml/${PORTNAME}
-XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr
-CATALOG_PORTS_SGML= ${PREFIX}/share/sgml/catalog.ports
-
USES= gmake gettext-tools pathfix perl5 pkgconfig python tar:xz
USE_GNOME= gnomeprefix libxslt
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-xml-catalog=${LOCALBASE}/share/xml/catalog.ports
-PLIST_SUB= XMLCATMGR=${XMLCATMGR} \
- CATALOG_PORTS_SGML=${CATALOG_PORTS_SGML} \
- CATALOG_DIR=${CATALOG_DIR}
-
.include <bsd.port.mk>
Index: head/textproc/gtk-doc/pkg-plist
===================================================================
--- head/textproc/gtk-doc/pkg-plist
+++ head/textproc/gtk-doc/pkg-plist
@@ -61,6 +61,4 @@
share/help/te/gtk-doc-manual/index.docbook
share/help/zh_CN/gtk-doc-manual/fdl-appendix.xml
share/help/zh_CN/gtk-doc-manual/index.docbook
-@unexec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% remove CATALOG %%CATALOG_DIR%%/gtk-doc.cat
-share/sgml/gtk-doc/gtk-doc.cat
-@exec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% add CATALOG %%CATALOG_DIR%%/gtk-doc.cat
+@xmlcatmgr share/sgml/gtk-doc/gtk-doc.cat
Index: head/textproc/html/Makefile
===================================================================
--- head/textproc/html/Makefile
+++ head/textproc/html/Makefile
@@ -10,18 +10,13 @@
MAINTAINER= kuriyama@FreeBSD.org
COMMENT= All W3C published SGML DTDs for HTML
-RUN_DEPENDS= ${XMLCATMGR}:textproc/xmlcatmgr
+RUN_DEPENDS= xmlcatmgr:textproc/xmlcatmgr
NO_MTREE= yes
NO_BUILD= yes
NO_WRKSUBDIR= yes
-PLIST_SUB= DTD_NAME=${PORTNAME} XMLCATMGR=${XMLCATMGR}
-PLIST_SUB+= CATALOG_PORTS_SGML=${CATALOG_PORTS_SGML}
-
INSTDIR= ${PREFIX}/share/sgml/html
-XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr
-CATALOG_PORTS_SGML= ${PREFIX}/share/sgml/catalog.ports
do-install:
${MKDIR} ${STAGEDIR}${INSTDIR}
Index: head/textproc/html/pkg-plist
===================================================================
--- head/textproc/html/pkg-plist
+++ head/textproc/html/pkg-plist
@@ -21,6 +21,4 @@
share/sgml/html/4.01/frameset.dtd
share/sgml/html/4.01/loose.dtd
share/sgml/html/4.01/strict.dtd
-@unexec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% remove %%DTD_NAME%%/catalog
-share/sgml/html/catalog
-@exec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% add CATALOG %%DTD_NAME%%/catalog
+@xmlcatmgr share/sgml/html/catalog
Index: head/textproc/iso12083/Makefile
===================================================================
--- head/textproc/iso12083/Makefile
+++ head/textproc/iso12083/Makefile
@@ -12,19 +12,15 @@
MAINTAINER= kuriyama@FreeBSD.org
COMMENT= SGML DTDs from the The Electronic Publishing Special Interest Group
-RUN_DEPENDS= ${XMLCATMGR}:textproc/xmlcatmgr
+RUN_DEPENDS= xmlcatmgr:textproc/xmlcatmgr
DIST_SUBDIR= iso12083
NO_MTREE= yes
NO_BUILD= yes
NO_WRKSUBDIR= yes
-PLIST_SUB= DTD_NAME=${PORTNAME} XMLCATMGR=${XMLCATMGR}
-PLIST_SUB+= CATALOG_PORTS_SGML=${CATALOG_PORTS_SGML}
INSTDIR= ${STAGEDIR}${PREFIX}/share/sgml/iso12083
-XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr
-CATALOG_PORTS_SGML= ${PREFIX}/share/sgml/catalog.ports
pre-install:
@[ -d ${INSTDIR} ] || ${MKDIR} ${INSTDIR}
Index: head/textproc/iso12083/pkg-plist
===================================================================
--- head/textproc/iso12083/pkg-plist
+++ head/textproc/iso12083/pkg-plist
@@ -2,6 +2,4 @@
share/sgml/iso12083/book.dtd
share/sgml/iso12083/maths.dtd
share/sgml/iso12083/serial.dtd
-@unexec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% remove %%DTD_NAME%%/catalog
-share/sgml/iso12083/catalog
-@exec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% add CATALOG %%DTD_NAME%%/catalog
+@xmlcatmgr share/sgml/iso12083/catalog
Index: head/textproc/iso8879/Makefile
===================================================================
--- head/textproc/iso8879/Makefile
+++ head/textproc/iso8879/Makefile
@@ -11,17 +11,13 @@
MAINTAINER= kuriyama@FreeBSD.org
COMMENT= Character entity sets from ISO 8879:1986 (SGML)
-RUN_DEPENDS= ${XMLCATMGR}:textproc/xmlcatmgr
+RUN_DEPENDS= xmlcatmgr:textproc/xmlcatmgr
USES= zip
NO_BUILD= yes
NO_WRKSUBDIR= yes
-PLIST_SUB= DTD_NAME=${PORTNAME} XMLCATMGR=${XMLCATMGR}
-PLIST_SUB+= CATALOG_PORTS_SGML=${CATALOG_PORTS_SGML}
INSTDIR= ${PREFIX}/share/sgml/iso8879
-XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr
-CATALOG_PORTS_SGML= ${PREFIX}/share/sgml/catalog.ports
do-install:
@${MKDIR} ${STAGEDIR}${INSTDIR}
Index: head/textproc/iso8879/pkg-plist
===================================================================
--- head/textproc/iso8879/pkg-plist
+++ head/textproc/iso8879/pkg-plist
@@ -17,6 +17,4 @@
share/sgml/iso8879/ISOnum
share/sgml/iso8879/ISOpub
share/sgml/iso8879/ISOtech
-@unexec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% remove %%DTD_NAME%%/catalog
-share/sgml/iso8879/catalog
-@exec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% add CATALOG %%DTD_NAME%%/catalog
+@xmlcatmgr share/sgml/iso8879/catalog
Index: head/textproc/jade/Makefile
===================================================================
--- head/textproc/jade/Makefile
+++ head/textproc/jade/Makefile
@@ -16,7 +16,7 @@
MAINTAINER= kuriyama@FreeBSD.org
COMMENT= Object-oriented SGML/XML parser toolkit and DSSSL engine
-RUN_DEPENDS= ${XMLCATMGR}:textproc/xmlcatmgr
+RUN_DEPENDS= xmlcatmgr:textproc/xmlcatmgr
CONFLICTS= sp-1.*
@@ -24,13 +24,8 @@
USES= desthack gmake libtool
USE_LDCONFIG= yes
CONFIGURE_ARGS= --enable-default-catalog=${PREFIX}/share/sgml/catalog
-PLIST_SUB= XMLCATMGR=${XMLCATMGR}
-PLIST_SUB+= CATALOG_PORTS_SGML=${CATALOG_PORTS_SGML}
MAKE_JOBS_UNSAFE= yes
-CATALOG_PORTS_SGML= ${PREFIX}/share/sgml/catalog.ports
-XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr
-
post-extract:
@${CHMOD} u+w ${WRKSRC}/configure
Index: head/textproc/jade/pkg-plist
===================================================================
--- head/textproc/jade/pkg-plist
+++ head/textproc/jade/pkg-plist
@@ -178,9 +178,7 @@
%%DOCSDIR%%/xml.htm
share/sgml/jade/FOT.tex
share/sgml/jade/Makefile.jadetex
-@unexec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% remove jade/catalog
-share/sgml/jade/catalog
-@exec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% add CATALOG jade/catalog
+@xmlcatmgr share/sgml/jade/catalog
share/sgml/jade/demo.dsl
share/sgml/jade/demo.sgm
share/sgml/jade/demoMaster.tex
Index: head/textproc/linuxdoc/Makefile
===================================================================
--- head/textproc/linuxdoc/Makefile
+++ head/textproc/linuxdoc/Makefile
@@ -12,19 +12,14 @@
COMMENT= The Linuxdoc SGML DTD
RUN_DEPENDS= ${ISOCAT}:textproc/iso8879 \
- ${XMLCATMGR}:textproc/xmlcatmgr
+ xmlcatmgr:textproc/xmlcatmgr
EXTRACT_ONLY= # empty
NO_BUILD= yes
NO_WRKSUBDIR= yes
-PLIST_SUB= DTD_NAME=${PORTNAME} XMLCATMGR=${XMLCATMGR}
-PLIST_SUB+= CATALOG_PORTS_SGML=${CATALOG_PORTS_SGML}
-
INSTDIR= ${PREFIX}/share/sgml/linuxdoc
ISOCAT= ${PREFIX}/share/sgml/iso8879/catalog
-XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr
-CATALOG_PORTS_SGML= ${PREFIX}/share/sgml/catalog.ports
do-install:
${MKDIR} ${STAGEDIR}${INSTDIR}
Index: head/textproc/linuxdoc/pkg-plist
===================================================================
--- head/textproc/linuxdoc/pkg-plist
+++ head/textproc/linuxdoc/pkg-plist
@@ -1,7 +1,5 @@
share/sgml/linuxdoc/README
-@unexec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% remove %%DTD_NAME%%/catalog
-share/sgml/linuxdoc/catalog
-@exec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% add CATALOG %%DTD_NAME%%/catalog
+@xmlcatmgr share/sgml/linuxdoc/catalog
share/sgml/linuxdoc/freebsd-1.0.dtd
share/sgml/linuxdoc/freebsd-1.1.dtd
share/sgml/linuxdoc/linuxdoc.dec
Index: head/textproc/openjade/Makefile
===================================================================
--- head/textproc/openjade/Makefile
+++ head/textproc/openjade/Makefile
@@ -34,12 +34,6 @@
@${REINPLACE_CMD} -e 's|<iostream.h>|<iostream>|' ${WRKSRC}/style/MultiLineInlineNote.cxx
post-install:
- @${CAT} ${PLIST} | \
- ${SED} ${PLIST_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} | \
- ${AWK} '/^@comment INSTALL_DATA:/ \
- {printf "if ! ${GREP} -q \"%s\" ${PLIST}; then ${ECHO_CMD} \"%s\" >> %s; fi; %s %s/%s %s/%s\n", \
- $$4, $$4, "${TMPPLIST}", "${INSTALL_DATA}", \
- "${WRKSRC}", $$3, "${STAGEDIR}${PREFIX}", $$4}' | \
- ${SH}
+ @${FIND} ${WRKSRC}/dsssl -type f -depth 1 -exec ${INSTALL_DATA} {} ${STAGEDIR}/${DATADIR} \;
.include <bsd.port.mk>
Index: head/textproc/openjade/pkg-plist
===================================================================
--- head/textproc/openjade/pkg-plist
+++ head/textproc/openjade/pkg-plist
@@ -11,41 +11,39 @@
lib/libostyle.so
lib/libostyle.so.0
lib/libostyle.so.0.0.1
-@unexec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% remove CATALOG openjade/catalog
-@comment INSTALL_DATA: dsssl/README.jadetex %%DATADIR%%/README.jadetex
-@comment INSTALL_DATA: dsssl/builtins.dsl %%DATADIR%%/builtins.dsl
-@comment INSTALL_DATA: dsssl/catalog %%DATADIR%%/catalog
-@comment INSTALL_DATA: dsssl/demo.dsl %%DATADIR%%/demo.dsl
-@comment INSTALL_DATA: dsssl/demo.sgm %%DATADIR%%/demo.sgm
-@comment INSTALL_DATA: dsssl/dsssl.dtd %%DATADIR%%/dsssl.dtd
-@comment INSTALL_DATA: dsssl/extensions.dsl %%DATADIR%%/extensions.dsl
-@comment INSTALL_DATA: dsssl/fot.dtd %%DATADIR%%/fot.dtd
-@comment INSTALL_DATA: dsssl/lineNumber.dsl %%DATADIR%%/lineNumber.dsl
-@comment INSTALL_DATA: dsssl/lineNumber.sgml %%DATADIR%%/lineNumber.sgml
-@comment INSTALL_DATA: dsssl/ps.dsl %%DATADIR%%/ps.dsl
-@comment INSTALL_DATA: dsssl/ps.fot %%DATADIR%%/ps.fot
-@comment INSTALL_DATA: dsssl/ps.sgml %%DATADIR%%/ps.sgml
-@comment INSTALL_DATA: dsssl/psalig.dsl %%DATADIR%%/psalig.dsl
-@comment INSTALL_DATA: dsssl/pscs.dsl %%DATADIR%%/pscs.dsl
-@comment INSTALL_DATA: dsssl/pscspb.dsl %%DATADIR%%/pscspb.dsl
-@comment INSTALL_DATA: dsssl/pscspb.sgml %%DATADIR%%/pscspb.sgml
-@comment INSTALL_DATA: dsssl/psemb.dsl %%DATADIR%%/psemb.dsl
-@comment INSTALL_DATA: dsssl/psempha.dsl %%DATADIR%%/psempha.dsl
-@comment INSTALL_DATA: dsssl/psglyp.dsl %%DATADIR%%/psglyp.dsl
-@comment INSTALL_DATA: dsssl/psglyp2.dsl %%DATADIR%%/psglyp2.dsl
-@comment INSTALL_DATA: dsssl/psinc.dsl %%DATADIR%%/psinc.dsl
-@comment INSTALL_DATA: dsssl/psinc.sgml %%DATADIR%%/psinc.sgml
-@comment INSTALL_DATA: dsssl/psinc2.dsl %%DATADIR%%/psinc2.dsl
-@comment INSTALL_DATA: dsssl/psmulti.dsl %%DATADIR%%/psmulti.dsl
-@comment INSTALL_DATA: dsssl/psmulti2.dsl %%DATADIR%%/psmulti2.dsl
-@comment INSTALL_DATA: dsssl/psmulti3.dsl %%DATADIR%%/psmulti3.dsl
-@comment INSTALL_DATA: dsssl/psradical.dsl %%DATADIR%%/psradical.dsl
-@comment INSTALL_DATA: dsssl/pssbs.dsl %%DATADIR%%/pssbs.dsl
-@comment INSTALL_DATA: dsssl/pssbsi.dsl %%DATADIR%%/pssbsi.dsl
-@comment INSTALL_DATA: dsssl/sps.dsl %%DATADIR%%/sps.dsl
-@comment INSTALL_DATA: dsssl/sps.sgml %%DATADIR%%/sps.sgml
-@comment INSTALL_DATA: dsssl/spsanch.dsl %%DATADIR%%/spsanch.dsl
-@comment INSTALL_DATA: dsssl/spsanch.sgml %%DATADIR%%/spsanch.sgml
-@comment INSTALL_DATA: dsssl/style-sheet.dtd %%DATADIR%%/style-sheet.dtd
-@exec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% add CATALOG openjade/catalog
+%%DATADIR%%/README.jadetex
+%%DATADIR%%/builtins.dsl
+@xmlcatmgr %%DATADIR%%/catalog
+%%DATADIR%%/demo.dsl
+%%DATADIR%%/demo.sgm
+%%DATADIR%%/dsssl.dtd
+%%DATADIR%%/extensions.dsl
+%%DATADIR%%/fot.dtd
+%%DATADIR%%/lineNumber.dsl
+%%DATADIR%%/lineNumber.sgml
+%%DATADIR%%/ps.dsl
+%%DATADIR%%/ps.fot
+%%DATADIR%%/ps.sgml
+%%DATADIR%%/psalig.dsl
+%%DATADIR%%/pscs.dsl
+%%DATADIR%%/pscspb.dsl
+%%DATADIR%%/pscspb.sgml
+%%DATADIR%%/psemb.dsl
+%%DATADIR%%/psempha.dsl
+%%DATADIR%%/psglyp.dsl
+%%DATADIR%%/psglyp2.dsl
+%%DATADIR%%/psinc.dsl
+%%DATADIR%%/psinc.sgml
+%%DATADIR%%/psinc2.dsl
+%%DATADIR%%/psmulti.dsl
+%%DATADIR%%/psmulti2.dsl
+%%DATADIR%%/psmulti3.dsl
+%%DATADIR%%/psradical.dsl
+%%DATADIR%%/pssbs.dsl
+%%DATADIR%%/pssbsi.dsl
+%%DATADIR%%/sps.dsl
+%%DATADIR%%/sps.sgml
+%%DATADIR%%/spsanch.dsl
+%%DATADIR%%/spsanch.sgml
+%%DATADIR%%/style-sheet.dtd
man/man1/openjade.1.gz
Index: head/textproc/sdocbook-xml/Makefile
===================================================================
--- head/textproc/sdocbook-xml/Makefile
+++ head/textproc/sdocbook-xml/Makefile
@@ -3,7 +3,7 @@
PORTNAME= sdocbook-xml
PORTVERSION= 1.1
-PORTREVISION= 1
+PORTREVISION= 2
PORTEPOCH= 2
CATEGORIES= textproc
MASTER_SITES= http://www.oasis-open.org/docbook/xml/simple/${PORTVERSION}/
@@ -12,24 +12,20 @@
MAINTAINER= gabor@FreeBSD.org
COMMENT= "Simplified" DocBook XML DTD
-RUN_DEPENDS+= ${LOCALBASE}/${XMLCATMGR}:textproc/xmlcatmgr
+RUN_DEPENDS+= xmlcatmgr:textproc/xmlcatmgr
USES= zip
NO_MTREE= yes
NO_BUILD= yes
NO_WRKSUBDIR= yes
-XMLCATMGR= bin/xmlcatmgr
-XMLCAT= share/xml/catalog.ports
-SGMLCAT= share/sgml/catalog.ports
CATALOG_FILES= catalog catalog.xml
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}/${PORTVERSION}
DTD_NAME= sdocbook
DTD_VERSION= ${PORTVERSION}
DTD_SUBDIR= /dtd
DTDDIR= share/xml/${DTD_NAME}/${DTD_VERSION}${DTD_SUBDIR}
-PLIST_SUB+= XMLCATMGR=${XMLCATMGR} SGMLCAT=${SGMLCAT} XMLCAT=${XMLCAT} \
- DTDDIR=${DTDDIR}
+PLIST_SUB+= DTDDIR=${DTDDIR}
SUB_FILES= ${CATALOG_FILES}
SUB_LIST+= DTDDIR=${PREFIX}/${DTDDIR}
@@ -39,6 +35,5 @@
.for f in ${CATALOG_FILES}
${INSTALL_DATA} ${WRKDIR}/${f} ${STAGEDIR}${PREFIX}/${DTDDIR}
.endfor
- @${ECHO_CMD} "@unexec rmdir %D/share/xml/${DTD_NAME} 2>/dev/null || :" >> ${TMPPLIST}
.include <bsd.port.mk>
Index: head/textproc/sdocbook-xml/pkg-plist
===================================================================
--- head/textproc/sdocbook-xml/pkg-plist
+++ head/textproc/sdocbook-xml/pkg-plist
@@ -1,9 +1,5 @@
-%%DTDDIR%%/catalog
-@unexec %D/%%XMLCATMGR%% -sc %D/%%SGMLCAT%% remove %D/%F
-@exec %D/%%XMLCATMGR%% -sc %D/%%SGMLCAT%% add CATALOG %D/%F
-%%DTDDIR%%/catalog.xml
-@unexec %D/%%XMLCATMGR%% -c %D/%%XMLCAT%% remove %D/%F
-@exec %D/%%XMLCATMGR%% -c %D/%%XMLCAT%% add nextCatalog %D/%F
+@xmlcatmgr %%DTDDIR%%/catalog
+@xmlcatmgr %%DTDDIR%%/catalog.xml
%%DTDDIR%%/sdbcent.mod
%%DTDDIR%%/sdbhier.mod
%%DTDDIR%%/sdbpool.mod
Index: head/textproc/slides/Makefile
===================================================================
--- head/textproc/slides/Makefile
+++ head/textproc/slides/Makefile
@@ -3,6 +3,7 @@
PORTNAME= slides
PORTVERSION= 3.4.0
+PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= SF/docbook/${PORTNAME}/${PORTVERSION}
DISTNAME= docbook-${PORTNAME}-${PORTVERSION}
@@ -14,26 +15,20 @@
LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= docbook-xml>0:textproc/docbook-xml \
- docbook-xsl>0:textproc/docbook-xsl
+ docbook-xsl>0:textproc/docbook-xsl \
+ xmlcatmgr:textproc/xmlcatmgr
NO_ARCH= yes
NO_BUILD= yes
USES= tar:bzip2
-SUB_FILES= pkg-deinstall pkg-install
-SUB_LIST= XMLCATMGR="${XMLCATMGR}" CATALOG_PORTS_XML="${CATALOG_PORTS}" \
- INSTDIR="${INSTDIR}"
-
OPTIONS_DEFINE= DOCS
-XMLDIR= ${LOCALBASE}/share/xml
INSTDIR= share/xsl/${PORTNAME}
PINSTDIR= ${PREFIX}/${INSTDIR}
COPYDIRS= browser graphics schema xsl
-XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr
-CATALOG_PORTS= ${XMLDIR}/catalog.ports
do-install:
@${MKDIR} ${STAGEDIR}${PINSTDIR}
Index: head/textproc/slides/files/pkg-deinstall.in
===================================================================
--- head/textproc/slides/files/pkg-deinstall.in
+++ head/textproc/slides/files/pkg-deinstall.in
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-# This script will remove the slides entries added to xml catalog.
-# -- Rui Lopes <rui@ruilopes.com>
-
-XMLCATMGR=%%XMLCATMGR%%
-CATALOG_PORTS_XML=%%CATALOG_PORTS_XML%%
-
-if [ "$2" != "POST-DEINSTALL" ]; then
- exit 0
-fi
-
-${XMLCATMGR} -c "${CATALOG_PORTS_XML}" remove http://docbook.sourceforge.net/release/slides/
Index: head/textproc/slides/files/pkg-install.in
===================================================================
--- head/textproc/slides/files/pkg-install.in
+++ head/textproc/slides/files/pkg-install.in
@@ -1,30 +0,0 @@
-#!/bin/sh
-
-# This script will create the slides catalog and will add entries to xml catalog.
-# WARNING: If you change this script, be sure to check pkg-deinstall.in!
-#
-# Based on http://xmlsoft.org/buildDocBookCatalog file.
-#
-# in vi/vim grab VERSIONS string with command:
-# :r!echo -n "VERSIONS='current ";fetch -qo - http://cvs.sf.net/cgi-bin/viewcvs.cgi/docbook/${PORTNAME}/VERSION|sed -nE 's/.*Version (.*) released./\1/gp'|sort|sed -e '1,3d'|paste -sd ' ' -|tr \\n \'
-#
-# -- Rui Lopes <rui@ruilopes.com>
-
-XMLCATMGR=%%XMLCATMGR%%
-CATALOG_PORTS_XML=%%CATALOG_PORTS_XML%%
-XSL_DIR=${PKG_PREFIX}/%%INSTDIR%%
-CATALOG_XSL=${XSL_DIR}/catalog
-
-if [ "$2" != "POST-INSTALL" ]; then
- exit 0
-fi
-
-${XMLCATMGR} -c "${CATALOG_PORTS_XML}" add delegateSystem \
- http://docbook.sourceforge.net/release/slides/ \
- "file://${CATALOG_XSL}"
-${XMLCATMGR} -c "${CATALOG_PORTS_XML}" add delegateURI \
- http://docbook.sourceforge.net/release/slides/ \
- "file://${CATALOG_XSL}"
-
-# echo $(w3m -dump http://cvs.sf.net/cgi-bin/viewcvs.cgi/docbook/slides/VERSION
-# | grep released | cut -d' ' -f2)
Index: head/textproc/slides/pkg-plist
===================================================================
--- head/textproc/slides/pkg-plist
+++ head/textproc/slides/pkg-plist
@@ -22,7 +22,7 @@
share/xsl/slides/browser/xbStyle-nn4.js
share/xsl/slides/browser/xbStyle-not-supported.js
share/xsl/slides/browser/xbStyle.js
-share/xsl/slides/catalog
+@xmlcatmgr share/xsl/slides/catalog
share/xsl/slides/graphics/ChangeLog
share/xsl/slides/graphics/active/ChangeLog
share/xsl/slides/graphics/active/arr-next.png
Index: head/textproc/website/Makefile
===================================================================
--- head/textproc/website/Makefile
+++ head/textproc/website/Makefile
@@ -20,26 +20,16 @@
USES= tar:bzip2
-SUB_FILES= pkg-deinstall pkg-install
-SUB_LIST= XMLCATMGR="${XMLCATMGR}" \
- CATALOG_PORTS_XML="${CATALOG_PORTS}" \
- INSTDIR="${INSTDIR}"
-
OPTIONS_DEFINE= EXAMPLES
-XMLDIR= ${LOCALBASE}/share/xml
INSTDIR= share/xsl/website
PINSTDIR= ${PREFIX}/${INSTDIR}
COPYDIRS= extensions schema xsl
-XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr
-CATALOG_PORTS= ${XMLDIR}/catalog.ports
-
do-install:
@${MKDIR} ${STAGEDIR}${PINSTDIR}
-.for i in VERSION catalog
- (cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${PINSTDIR})
-.endfor
+ ${INSTALL_DATA} ${WRKSRC}/VERSION ${STAGEDIR}/${PINSTDIR}
+ ${INSTALL_DATA} ${WRKSRC}/catalog ${STAGEDIR}/${PINSTDIR}/catalog.xml
.for i in ${COPYDIRS}
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${i} ${STAGEDIR}${PINSTDIR})
.endfor
Index: head/textproc/website/files/pkg-deinstall.in
===================================================================
--- head/textproc/website/files/pkg-deinstall.in
+++ head/textproc/website/files/pkg-deinstall.in
@@ -1,12 +0,0 @@
-#!/bin/sh
-# This script will remove the website entries added to xml catalog.
-# -- Rui Lopes <rui@ruilopes.com>
-
-XMLCATMGR=%%XMLCATMGR%%
-CATALOG_PORTS_XML=%%CATALOG_PORTS_XML%%
-
-if [ "$2" != "POST-DEINSTALL" ]; then
- exit 0
-fi
-
-${XMLCATMGR} -c "${CATALOG_PORTS_XML}" remove http://docbook.sourceforge.net/release/website/
Index: head/textproc/website/files/pkg-install.in
===================================================================
--- head/textproc/website/files/pkg-install.in
+++ head/textproc/website/files/pkg-install.in
@@ -1,27 +0,0 @@
-#!/bin/sh
-# This script will create the website catalog and will add entries to xml catalog.
-# WARNING: If you change this script, be sure to check pkg-deinstall.in!
-#
-# Based on http://xmlsoft.org/buildDocBookCatalog file.
-#
-# in vi/vim grab VERSIONS string with command:
-# :r!echo -n "VERSIONS='current ";fetch -qo - http://cvs.sf.net/cgi-bin/viewcvs.cgi/docbook/website/VERSION|sed -nE 's/.*Version (.*) released./\1/gp'|sort|sed -e '1,3d'|paste -sd ' ' -|tr \\n \'
-#
-# -- Rui Lopes <rui@ruilopes.com>
-
-XMLCATMGR=%%XMLCATMGR%%
-CATALOG_PORTS_XML=%%CATALOG_PORTS_XML%%
-XSL_DIR=${PKG_PREFIX}/%%INSTDIR%%
-CATALOG_XSL=${XSL_DIR}/catalog
-
-if [ "$2" != "POST-INSTALL" ]; then
- exit 0
-fi
-
-${XMLCATMGR} -c "${CATALOG_PORTS_XML}" add delegateSystem \
- http://docbook.sourceforge.net/release/website/ \
- "file://${CATALOG_XSL}"
-${XMLCATMGR} -c "${CATALOG_PORTS_XML}" add delegateURI \
- http://docbook.sourceforge.net/release/website/ \
- "file://${CATALOG_XSL}"
-
Index: head/textproc/website/pkg-plist
===================================================================
--- head/textproc/website/pkg-plist
+++ head/textproc/website/pkg-plist
@@ -143,7 +143,7 @@
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/website.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/wslayout.xml
share/xsl/website/VERSION
-share/xsl/website/catalog
+@xmlcatmgr share/xsl/website/catalog.xml
share/xsl/website/extensions/ChangeLog
share/xsl/website/extensions/saxon64.jar
share/xsl/website/extensions/saxon64/ChangeLog
Index: head/textproc/xhtml-11/Makefile
===================================================================
--- head/textproc/xhtml-11/Makefile
+++ head/textproc/xhtml-11/Makefile
@@ -13,7 +13,7 @@
MAINTAINER= mandree@FreeBSD.org
COMMENT= W3C's XHTML 1.1 DTD
-RUN_DEPENDS= ${XMLCATMGR}:textproc/xmlcatmgr
+RUN_DEPENDS= xmlcatmgr:textproc/xmlcatmgr
USES= tar:tgz
@@ -21,23 +21,6 @@
WRKSRC= ${WRKDIR}/xhtml11-${RECDATE}
NO_BUILD= yes
-PLIST_SUB+= XMLCAT_ADD="${XMLCAT_ADD}" \
- XMLCAT_RM="${XMLCAT_RM}" \
- SGMLCAT_ADD="${SGMLCAT_ADD}" \
- SGMLCAT_RM="${SGMLCAT_RM}"
-
-XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr
-SGMLCAT= ${PREFIX}/share/sgml/catalog.ports
-XMLCAT= ${PREFIX}/share/xml/catalog.ports
-
-XMLCAT_ADD= ${XMLCATMGR} -c ${XMLCAT} add nextCatalog \
- ${PREFIX}/${DTDDIR}/catalog.xml
-XMLCAT_RM= ${XMLCATMGR} -c ${XMLCAT} remove \
- ${PREFIX}/${DTDDIR}/catalog.xml
-SGMLCAT_ADD= ${XMLCATMGR} -sc ${SGMLCAT} add CATALOG \
- ${PREFIX}/${DTDDIR}/xhtml11.cat
-SGMLCAT_RM= ${XMLCATMGR} -sc ${SGMLCAT} remove \
- ${PREFIX}/${DTDDIR}/xhtml11.cat
DTDDIR= share/xml/${PORTNAME}/1.1/dtd
XSDDIR= share/xml/${PORTNAME}/1.1/xsd
Index: head/textproc/xhtml-11/pkg-plist
===================================================================
--- head/textproc/xhtml-11/pkg-plist
+++ head/textproc/xhtml-11/pkg-plist
@@ -1,10 +1,8 @@
-@preunexec %%SGMLCAT_RM%%
-@preunexec %%XMLCAT_RM%%
share/xml/xhtml/1.1/dtd/VERSION
-share/xml/xhtml/1.1/dtd/catalog.xml
+@xmlcatmgr share/xml/xhtml/1.1/dtd/catalog.xml
share/xml/xhtml/1.1/dtd/xhtml11-flat.dtd
share/xml/xhtml/1.1/dtd/xhtml11-model-1.mod
-share/xml/xhtml/1.1/dtd/xhtml11.cat
+@xmlcatmgr share/xml/xhtml/1.1/dtd/xhtml11.cat
share/xml/xhtml/1.1/dtd/xhtml11.dtd
share/xml/xhtml/1.1/dtd/xml1.dcl
share/xml/xhtml/1.1/dtd/xml1n.dcl
@@ -12,5 +10,3 @@
share/xml/xhtml/1.1/xsd/xhtml11-model-1.xsd
share/xml/xhtml/1.1/xsd/xhtml11-modules-1.xsd
share/xml/xhtml/1.1/xsd/xhtml11.xsd
-@postexec %%XMLCAT_ADD%%
-@postexec %%SGMLCAT_ADD%%
Index: head/textproc/xhtml-basic/Makefile
===================================================================
--- head/textproc/xhtml-basic/Makefile
+++ head/textproc/xhtml-basic/Makefile
@@ -12,7 +12,9 @@
MAINTAINER= ports@FreeBSD.org
COMMENT= W3C's XHTML Basic DTD
-RUN_DEPENDS= ${XMLCATMGR}:textproc/xmlcatmgr \
+OPTIONS_DEFINE= DOCS
+
+RUN_DEPENDS= xmlcatmgr:textproc/xmlcatmgr \
${LOCALBASE}/share/xml/dtd/xhtml-modularization/catalog.xml:textproc/xhtml-modularization
RECDATE= 20001219
@@ -21,56 +23,33 @@
NO_BUILD= YES
WRKSRC= ${WRKDIR}/REC-${PORTNAME}-${RECDATE}
-PLIST= ${WRKDIR}/PLIST
-dir_DTD= share/xml/dtd/xhtml-basic
-dir_DOC= share/doc/xhtml-basic
-
-XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr
-SGMLCAT= ${PREFIX}/share/sgml/catalog.ports
-XMLCAT= ${PREFIX}/share/xml/catalog.ports
-
-XMLCAT_ADD= ${XMLCATMGR} -c ${XMLCAT} add nextCatalog \
- ${PREFIX}/${dir_DTD}/catalog.xml
-XMLCAT_RM= ${XMLCATMGR} -c ${XMLCAT} remove \
- ${PREFIX}/${dir_DTD}/catalog.xml
-SGMLCAT_ADD= ${XMLCATMGR} -sc ${SGMLCAT} add CATALOG \
- ${PREFIX}/${dir_DTD}/xhtml-basic10.cat
-SGMLCAT_RM= ${XMLCATMGR} -sc ${SGMLCAT} remove \
- ${PREFIX}/${dir_DTD}/xhtml-basic10.cat
-
-CATALOG_PORTS_SGML= ${PREFIX}/share/sgml/catalog.ports
-CATALOG_PORTS_XML= ${PREFIX}/share/xml/catalog.ports
-
-.include "${.CURDIR}/contents.inc"
-
-# I'd much rather do this stuff in line with the actual installation
-# in do-install, but the PLIST must be generated in pre-install.
-pre-install:
- ${CAT} /dev/null > ${PLIST}
-.for f in ${contents_DTD}
- ${ECHO} ${dir_DTD}/${f} >> ${PLIST}
-.endfor
-.for f in ${contents_DOC}
- ${ECHO} ${dir_DOC}/${f} >> ${PLIST}
-.endfor
- ${ECHO} ${dir_DTD}/catalog.xml >> ${PLIST}
- ${ECHO} "@unexec ${XMLCAT_RM}" >> ${PLIST}
- ${ECHO} "@exec ${XMLCAT_ADD}" >> ${PLIST}
- ${ECHO} "@unexec ${SGMLCAT_RM}" >> ${PLIST}
- ${ECHO} "@exec ${SGMLCAT_ADD}" >> ${PLIST}
- ${ECHO} '@unexec rmdir %D/share/xml/dtd 2>/dev/null || true' >> \
- ${PLIST}
+PORTDATA= xhtml-basic10-model-1.mod \
+ xhtml-basic10.cat \
+ xhtml-basic10.dtd \
+ xml1.dcl
+
+PLIST_FILES+= %%DATADIR%%/catalog.xml
+
+PORTDOCS= Overview.html \
+ W3C-REC.css \
+ logo-REC.png \
+ w3c_home.png \
+ xhtml-basic.css
+
+SUB_FILES= catalog.xml
+DATADIR= ${PREFIX}/share/xml/dtd/xhtml-basic
do-install:
- @${MKDIR} ${STAGEDIR}${PREFIX}/${dir_DTD}
- @${MKDIR} ${STAGEDIR}${PREFIX}/${dir_DOC}
- (cd ${WRKSRC} && ${INSTALL_DATA} ${contents_DTD} \
- ${STAGEDIR}${PREFIX}/${dir_DTD})
- (cd ${WRKSRC} && ${INSTALL_DATA} ${contents_DOC} \
- ${STAGEDIR}${PREFIX}/${dir_DOC})
- ${SED} -e "s;@@PREFIX@@;${PREFIX};g" ${FILESDIR}/catalog.xml > \
- ${WRKDIR}/catalog.xml
+ @${MKDIR} ${STAGEDIR}${DATADIR}
+ (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDATA} \
+ ${STAGEDIR}${DATADIR})
${INSTALL_DATA} ${WRKDIR}/catalog.xml \
- ${STAGEDIR}${PREFIX}/${dir_DTD}/catalog.xml
+ ${STAGEDIR}${DATADIR}/catalog.xml
+
+post-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} \
+ ${STAGEDIR}${DOCSDIR})
+
.include <bsd.port.mk>
Index: head/textproc/xhtml-basic/contents.inc
===================================================================
--- head/textproc/xhtml-basic/contents.inc
+++ head/textproc/xhtml-basic/contents.inc
@@ -1,10 +0,0 @@
-contents_DTD+= xhtml-basic10-model-1.mod
-contents_DTD+= xhtml-basic10.cat
-contents_DTD+= xhtml-basic10.dtd
-contents_DTD+= xml1.dcl
-
-contents_DOC+= Overview.html
-contents_DOC+= W3C-REC.css
-contents_DOC+= logo-REC.png
-contents_DOC+= w3c_home.png
-contents_DOC+= xhtml-basic.css
Index: head/textproc/xhtml-basic/files/catalog.xml
===================================================================
--- head/textproc/xhtml-basic/files/catalog.xml
+++ head/textproc/xhtml-basic/files/catalog.xml
@@ -1,20 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
- "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd" >
-
-<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"
- prefer="public"
- xml:base="file://@@PREFIX@@/share/xml/dtd/xhtml-basic/">
-
- <rewriteSystem
- systemIdStartString="http://www.w3.org/TR/xhtml-basic/"
- rewritePrefix="./" />
-
- <public
- publicId="-//W3C//DTD XHTML Basic 1.0//EN"
- uri="xhtml-basic10.dtd" />
- <public
- publicId="-//W3C//DTD XHTML Basic Document Model 1.0//EN"
- uri="xhtml-basic10-model-1.mod" />
-
-</catalog>
Index: head/textproc/xhtml-basic/files/catalog.xml.in
===================================================================
--- head/textproc/xhtml-basic/files/catalog.xml.in
+++ head/textproc/xhtml-basic/files/catalog.xml.in
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
+ "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd" >
+
+<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"
+ prefer="public"
+ xml:base="file://%%PREFIX%%/share/xml/dtd/xhtml-basic/">
+
+ <rewriteSystem
+ systemIdStartString="http://www.w3.org/TR/xhtml-basic/"
+ rewritePrefix="./" />
+
+ <public
+ publicId="-//W3C//DTD XHTML Basic 1.0//EN"
+ uri="xhtml-basic10.dtd" />
+ <public
+ publicId="-//W3C//DTD XHTML Basic Document Model 1.0//EN"
+ uri="xhtml-basic10-model-1.mod" />
+
+</catalog>
Index: head/textproc/xhtml-modularization/Makefile
===================================================================
--- head/textproc/xhtml-modularization/Makefile
+++ head/textproc/xhtml-modularization/Makefile
@@ -11,79 +11,46 @@
MAINTAINER= ports@FreeBSD.org
COMMENT= W3C's Modularization of XHTML DTDs and docs
-RUN_DEPENDS= ${XMLCATMGR}:textproc/xmlcatmgr
+RUN_DEPENDS= xmlcatmgr:textproc/xmlcatmgr
USES= tar:tgz
RECDATE= 20010410
+OPTIONS_DEFINE= DOCS EXAMPLES
+
SUB_FILES= catalog.xml
NO_MTREE= yes
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${RECDATE}
-PLIST= ${WRKDIR}/PLIST
dir_DTD= share/xml/dtd/xhtml-modularization
-dir_DOC= share/doc/xhtml-modularization
-dir_EXAMPLES= share/examples/xhtml-modularization
-dir_TEMPLATES= share/examples/xhtml-modularization/templates
-
-XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr
-SGMLCAT= ${PREFIX}/share/sgml/catalog.ports
-XMLCAT= ${PREFIX}/share/xml/catalog.ports
-
-XMLCAT_ADD= ${XMLCATMGR} -c ${XMLCAT} add nextCatalog \
- ${PREFIX}/${dir_DTD}/catalog.xml
-XMLCAT_RM= ${XMLCATMGR} -c ${XMLCAT} remove \
- ${PREFIX}/${dir_DTD}/catalog.xml
-SGMLCAT_ADD= ${XMLCATMGR} -sc ${SGMLCAT} add CATALOG \
- ${PREFIX}/${dir_DTD}/xhtml.cat
-SGMLCAT_RM= ${XMLCATMGR} -sc ${SGMLCAT} remove \
- ${PREFIX}/${dir_DTD}/xhtml.cat
.include "${.CURDIR}/contents.inc"
-# I'd much rather do this stuff in line with the actual installation
-# in do-install, but the PLIST must be generated in pre-install.
-pre-install:
- ${CAT} /dev/null > ${PLIST}
-.for f in ${contents_DTD}
- ${ECHO} ${dir_DTD}/${f} >> ${PLIST}
-.endfor
-.for f in ${contents_DOC}
- ${ECHO} ${dir_DOC}/${f} >> ${PLIST}
-.endfor
-.for f in ${contents_EXAMPLES}
- ${ECHO} ${dir_EXAMPLES}/${f} >> ${PLIST}
-.endfor
-.for f in ${contents_TEMPLATES}
- ${ECHO} ${dir_TEMPLATES}/${f} >> ${PLIST}
-.endfor
- ${ECHO} ${dir_DTD}/catalog.xml >> ${PLIST}
- ${ECHO} "@unexec ${XMLCAT_RM}" >> ${PLIST}
- ${ECHO} "@exec ${XMLCAT_ADD}" >> ${PLIST}
- ${ECHO} "@unexec ${SGMLCAT_RM}" >> ${PLIST}
- ${ECHO} "@exec ${SGMLCAT_ADD}" >> ${PLIST}
-
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/${dir_DTD}
.for f in ${contents_DTD}
${INSTALL_DATA} ${WRKSRC}/DTD/${f} ${STAGEDIR}${PREFIX}/${dir_DTD}/${f}
.endfor
- @${MKDIR} ${STAGEDIR}${PREFIX}/${dir_DOC}/images
+ ${INSTALL_DATA} ${WRKDIR}/catalog.xml ${STAGEDIR}${PREFIX}/${dir_DTD}/catalog.xml
+
+post-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}/images
.for f in ${contents_DOC}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/${dir_DOC}/${f}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/${f}
.endfor
- @${MKDIR} ${STAGEDIR}${PREFIX}/${dir_EXAMPLES}
+
+post-install-EXAMPLES-on:
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for f in ${contents_EXAMPLES}
${INSTALL_DATA} ${WRKSRC}/DTD/examples/${f} \
- ${STAGEDIR}${PREFIX}/${dir_EXAMPLES}/${f}
+ ${STAGEDIR}${EXAMPLESDIR}/${f}
.endfor
- @${MKDIR} ${STAGEDIR}${PREFIX}/${dir_TEMPLATES}
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/templates
.for f in ${contents_TEMPLATES}
${INSTALL_DATA} ${WRKSRC}/DTD/templates/${f} \
- ${STAGEDIR}${PREFIX}/${dir_TEMPLATES}/${f}
+ ${STAGEDIR}${EXAMPLESDIR}/templates/${f}
.endfor
- ${INSTALL_DATA} ${WRKDIR}/catalog.xml ${STAGEDIR}${PREFIX}/${dir_DTD}/catalog.xml
.include <bsd.port.mk>
Index: head/textproc/xhtml-modularization/pkg-plist
===================================================================
--- head/textproc/xhtml-modularization/pkg-plist
+++ head/textproc/xhtml-modularization/pkg-plist
@@ -0,0 +1,111 @@
+share/xml/dtd/xhtml-modularization/VERSION
+@xmlcatmgr share/xml/dtd/xhtml-modularization/catalog.xml
+share/xml/dtd/xhtml-modularization/xhtml-applet-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-arch-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-attribs-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-base-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-basic-form-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-basic-table-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-bdo-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-blkphras-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-blkpres-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-blkstruct-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-charent-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-csismap-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-datatypes-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-edit-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-events-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-form-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-frames-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-framework-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-hypertext-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-iframe-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-image-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-inlphras-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-inlpres-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-inlstruct-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-inlstyle-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-lat1.ent
+share/xml/dtd/xhtml-modularization/xhtml-legacy-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-legacy-redecl-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-link-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-list-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-meta-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-nameident-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-notations-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-object-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-param-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-pres-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-qname-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-script-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-special.ent
+share/xml/dtd/xhtml-modularization/xhtml-ssismap-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-struct-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-style-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-symbol.ent
+share/xml/dtd/xhtml-modularization/xhtml-table-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-target-1.mod
+share/xml/dtd/xhtml-modularization/xhtml-text-1.mod
+@xmlcatmgr share/xml/dtd/xhtml-modularization/xhtml.cat
+share/xml/dtd/xhtml-modularization/xml1.dcl
+share/xml/dtd/xhtml-modularization/xml1n.dcl
+%%PORTDOCS%%%%DOCSDIR%%/Overview.html
+%%PORTDOCS%%%%DOCSDIR%%/W3C-REC.css
+%%PORTDOCS%%%%DOCSDIR%%/abstract_modules.html
+%%PORTDOCS%%%%DOCSDIR%%/abstraction.html
+%%PORTDOCS%%%%DOCSDIR%%/acknowledgements.html
+%%PORTDOCS%%%%DOCSDIR%%/conformance.html
+%%PORTDOCS%%%%DOCSDIR%%/dtd_developing.html
+%%PORTDOCS%%%%DOCSDIR%%/dtd_module_defs.html
+%%PORTDOCS%%%%DOCSDIR%%/dtd_module_rules.html
+%%PORTDOCS%%%%DOCSDIR%%/goals.html
+%%PORTDOCS%%%%DOCSDIR%%/images/aqua.gif
+%%PORTDOCS%%%%DOCSDIR%%/images/black.gif
+%%PORTDOCS%%%%DOCSDIR%%/images/blue.gif
+%%PORTDOCS%%%%DOCSDIR%%/images/fuchsia.gif
+%%PORTDOCS%%%%DOCSDIR%%/images/gray.gif
+%%PORTDOCS%%%%DOCSDIR%%/images/green.gif
+%%PORTDOCS%%%%DOCSDIR%%/images/lime.gif
+%%PORTDOCS%%%%DOCSDIR%%/images/maroon.gif
+%%PORTDOCS%%%%DOCSDIR%%/images/navy.gif
+%%PORTDOCS%%%%DOCSDIR%%/images/olive.gif
+%%PORTDOCS%%%%DOCSDIR%%/images/purple.gif
+%%PORTDOCS%%%%DOCSDIR%%/images/red.gif
+%%PORTDOCS%%%%DOCSDIR%%/images/silver.gif
+%%PORTDOCS%%%%DOCSDIR%%/images/teal.gif
+%%PORTDOCS%%%%DOCSDIR%%/images/white.gif
+%%PORTDOCS%%%%DOCSDIR%%/images/yellow.gif
+%%PORTDOCS%%%%DOCSDIR%%/introduction.html
+%%PORTDOCS%%%%DOCSDIR%%/logo-REC.gif
+%%PORTDOCS%%%%DOCSDIR%%/references.html
+%%PORTDOCS%%%%DOCSDIR%%/schema_developing.html
+%%PORTDOCS%%%%DOCSDIR%%/schema_module_defs.html
+%%PORTDOCS%%%%DOCSDIR%%/schema_module_rules.html
+%%PORTDOCS%%%%DOCSDIR%%/terms.html
+%%PORTDOCS%%%%DOCSDIR%%/w3c_home.gif
+%%PORTDOCS%%%%DOCSDIR%%/wcag1AAA.gif
+%%PORTDOCS%%%%DOCSDIR%%/xhtml-modularization.html
+%%PORTDOCS%%%%DOCSDIR%%/xhtml-modularization.pdf
+%%PORTDOCS%%%%DOCSDIR%%/xhtml-modularization.ps
+%%PORTDOCS%%%%DOCSDIR%%/xhtml.css
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/MODULE-qname.mod
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/inventory-1.dtd
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/inventory-1.mod
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/inventory-newprefix.xml
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/inventory-prefixed.xml
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/inventory-qname-1.mod
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/inventory.xml
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/myml-1_0.dtd
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/myml-elements-1.mod
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/myml-model-1.mod
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/myml-noprefix.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/myml-prefixed.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/myml-qname-1.mod
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/simple-defaults.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/simple-newprefix.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/simple-prefixed.html
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/simpleml-1_0.dtd
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/simpleml-model-1.mod
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/templates/template-1.mod
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/templates/template-qname-1.mod
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/templates/template.dtd
Index: head/textproc/xhtml/Makefile
===================================================================
--- head/textproc/xhtml/Makefile
+++ head/textproc/xhtml/Makefile
@@ -3,7 +3,7 @@
PORTNAME= xhtml
PORTVERSION= 1.0.20020801
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= textproc
#MASTER_SITES= http://www.w3.org/TR/xhtml1/
MASTER_SITES= LOCAL/kuriyama
@@ -12,28 +12,20 @@
MAINTAINER= kuriyama@FreeBSD.org
COMMENT= W3C's XHTML DTD
-RUN_DEPENDS= ${XMLCATMGR}:textproc/xmlcatmgr
+RUN_DEPENDS= xmlcatmgr:textproc/xmlcatmgr
USES= zip
NO_MTREE= YES
NO_BUILD= YES
WRKSRC= ${WRKDIR}/xhtml1-20020801
-PLIST_SUB= XMLCATMGR=${XMLCATMGR}
-PLIST_SUB+= DTDDIR=${DTDDIR}
-PLIST_SUB+= CATALOG_PORTS_SGML=${CATALOG_PORTS_SGML}
-PLIST_SUB+= CATALOG_PORTS_XML=${CATALOG_PORTS_XML}
+SUB_FILES= catalog.xml
+SUB_LIST+= DTDDIR="${DTDDIR}"
INSTDIR= ${PREFIX}/share/xml
DTDDIR= ${INSTDIR}/dtd/xhtml
DTDFILES= xhtml-lat1.ent xhtml-special.ent xhtml-symbol.ent \
xhtml.soc xhtml1-frameset.dtd xhtml1-strict.dtd \
- xhtml1-transitional.dtd xhtml1.dcl ${WRKSRC}/catalog.xml
-XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr
-CATALOG_PORTS_SGML= ${PREFIX}/share/sgml/catalog.ports
-CATALOG_PORTS_XML= ${PREFIX}/share/xml/catalog.ports
-
-post-patch:
- ${SED} -e 's#@@DTDDIR@@#${DTDDIR}#' < ${FILESDIR}/catalog.xml > ${WRKSRC}/catalog.xml
+ xhtml1-transitional.dtd xhtml1.dcl ${WRKDIR}/catalog.xml
pre-su-install:
@[ -d ${STAGEDIR}${DTDDIR} ] || ${MKDIR} ${STAGEDIR}${DTDDIR}
Index: head/textproc/xhtml/files/catalog.xml
===================================================================
--- head/textproc/xhtml/files/catalog.xml
+++ head/textproc/xhtml/files/catalog.xml
@@ -1,14 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
- "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
-
-<!-- Created by xmlcatmgr-0.2 -->
-
-<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
- <public publicId="-//W3C//DTD XHTML 1.0 Strict//EN" uri="file://@@DTDDIR@@/xhtml1-strict.dtd" />
- <public publicId="-//W3C//DTD XHTML 1.0 Transitional//EN" uri="file://@@DTDDIR@@/xhtml1-transitional.dtd" />
- <public publicId="-//W3C//DTD XHTML 1.0 Frameset//EN" uri="file://@@DTDDIR@@/xhtml1-frameset.dtd" />
- <public publicId="-//W3C//ENTITIES Latin 1 for XHTML//EN" uri="file://@@DTDDIR@@/xhtml-lat1.ent" />
- <public publicId="-//W3C//ENTITIES Symbols for XHTML//EN" uri="file://@@DTDDIR@@/xhtml-symbol.ent" />
- <public publicId="-//W3C//ENTITIES Special for XHTML//EN" uri="file://@@DTDDIR@@/xhtml-special.ent" />
-</catalog>
Index: head/textproc/xhtml/files/catalog.xml.in
===================================================================
--- head/textproc/xhtml/files/catalog.xml.in
+++ head/textproc/xhtml/files/catalog.xml.in
@@ -0,0 +1,14 @@
+<?xml version="1.0"?>
+<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
+ "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
+
+<!-- Created by xmlcatmgr-0.2 -->
+
+<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
+ <public publicId="-//W3C//DTD XHTML 1.0 Strict//EN" uri="file://%%DTDDIR%%/xhtml1-strict.dtd" />
+ <public publicId="-//W3C//DTD XHTML 1.0 Transitional//EN" uri="file://%%DTDDIR%%/xhtml1-transitional.dtd" />
+ <public publicId="-//W3C//DTD XHTML 1.0 Frameset//EN" uri="file://%%DTDDIR%%/xhtml1-frameset.dtd" />
+ <public publicId="-//W3C//ENTITIES Latin 1 for XHTML//EN" uri="file://%%DTDDIR%%/xhtml-lat1.ent" />
+ <public publicId="-//W3C//ENTITIES Symbols for XHTML//EN" uri="file://%%DTDDIR%%/xhtml-symbol.ent" />
+ <public publicId="-//W3C//ENTITIES Special for XHTML//EN" uri="file://%%DTDDIR%%/xhtml-special.ent" />
+</catalog>
Index: head/textproc/xhtml/pkg-plist
===================================================================
--- head/textproc/xhtml/pkg-plist
+++ head/textproc/xhtml/pkg-plist
@@ -1,13 +1,9 @@
share/xml/dtd/xhtml/xhtml-lat1.ent
share/xml/dtd/xhtml/xhtml-special.ent
share/xml/dtd/xhtml/xhtml-symbol.ent
-@unexec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% remove %%DTDDIR%%/xhtml-dcl.soc
share/xml/dtd/xhtml/xhtml.soc
-share/xml/dtd/xhtml/xhtml-dcl.soc
-@exec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% add CATALOG %%DTDDIR%%/xhtml-dcl.soc
-@unexec %%XMLCATMGR%% -c %%CATALOG_PORTS_XML%% remove %%DTDDIR%%/catalog.xml
-share/xml/dtd/xhtml/catalog.xml
-@exec %%XMLCATMGR%% -c %%CATALOG_PORTS_XML%% add nextCatalog %%DTDDIR%%/catalog.xml
+@xmlcatmgr share/xml/dtd/xhtml/xhtml-dcl.soc
+@xmlcatmgr share/xml/dtd/xhtml/catalog.xml
share/xml/dtd/xhtml/xhtml1-frameset.dtd
share/xml/dtd/xhtml/xhtml1-strict.dtd
share/xml/dtd/xhtml/xhtml1-transitional.dtd
Index: head/textproc/xmlcharent/Makefile
===================================================================
--- head/textproc/xmlcharent/Makefile
+++ head/textproc/xmlcharent/Makefile
@@ -10,18 +10,13 @@
MAINTAINER= hrs@FreeBSD.org
COMMENT= XML character entities
-RUN_DEPENDS= ${XMLCATMGR}:textproc/xmlcatmgr
+RUN_DEPENDS= xmlcatmgr:textproc/xmlcatmgr
USES= zip
NO_WRKSUBDIR= yes
NO_BUILD= yes
-PLIST_SUB= XMLCATMGR=${XMLCATMGR} \
- XMLDIR=${XMLDIR} \
- CATALOG_PORTS_SGML=${LOCALBASE}/share/sgml/catalog.ports \
- CATALOG_PORTS_XML=${LOCALBASE}/share/xml/catalog.ports
XMLDIR= ${PREFIX}/share/xml/${PORTNAME}
-XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr
do-install:
${MKDIR} ${STAGEDIR}${XMLDIR}
Index: head/textproc/xmlcharent/pkg-plist
===================================================================
--- head/textproc/xmlcharent/pkg-plist
+++ head/textproc/xmlcharent/pkg-plist
@@ -1,9 +1,5 @@
-@unexec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% remove CATALOG %%XMLDIR%%/catalog
-share/xml/xmlcharent/catalog
-@exec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% add CATALOG %%XMLDIR%%/catalog
-@unexec %%XMLCATMGR%% -c %%CATALOG_PORTS_XML%% remove nextCatalog %%XMLDIR%%/catalog.xml
-share/xml/xmlcharent/catalog.xml
-@exec %%XMLCATMGR%% -c %%CATALOG_PORTS_XML%% add nextCatalog %%XMLDIR%%/catalog.xml
+@xmlcatmgr share/xml/xmlcharent/catalog
+@xmlcatmgr share/xml/xmlcharent/catalog.xml
share/xml/xmlcharent/iso-amsa.ent
share/xml/xmlcharent/iso-amsb.ent
share/xml/xmlcharent/iso-amsc.ent
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Aug 7, 12:08 PM (8 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36170627
Default Alt Text
D6539.id16823.diff (56 KB)
Attached To
Mode
D6539: Simplify and make xml/sgml catalogs consistenst
Attached
Detach File
Event Timeline
Log In to Comment