aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/docbook-xml
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>2003-07-01 14:21:09 +0800
committerkuriyama <kuriyama@FreeBSD.org>2003-07-01 14:21:09 +0800
commit450fec8db3e9eb0d8c8809de0f930ae71f924516 (patch)
tree65732c72a7497c02275f6c7b1e1555bd342a0e29 /textproc/docbook-xml
parent01e8c93ae718c09798243b52145ad64a7b7a5a65 (diff)
downloadfreebsd-ports-gnome-450fec8db3e9eb0d8c8809de0f930ae71f924516.tar.gz
freebsd-ports-gnome-450fec8db3e9eb0d8c8809de0f930ae71f924516.tar.zst
freebsd-ports-gnome-450fec8db3e9eb0d8c8809de0f930ae71f924516.zip
Switch to using xmlcatmgr from mkcatalog.
# Maintainers, please let me know if I break something in your port. Submitted by: hrs PR: ports/53819, ports/53820, ports/53821, ports/53822, ports/53823, ports/53824, ports/53825, ports/53826, ports/53827, ports/53828, ports/53829, ports/53830, ports/53831, ports/53832, ports/53833, ports/53834, ports/53835, ports/53836, ports/53837
Diffstat (limited to 'textproc/docbook-xml')
-rw-r--r--textproc/docbook-xml/Makefile16
-rw-r--r--textproc/docbook-xml/pkg-plist6
2 files changed, 15 insertions, 7 deletions
diff --git a/textproc/docbook-xml/Makefile b/textproc/docbook-xml/Makefile
index 6dd2333efd7e..63f23f6726b3 100644
--- a/textproc/docbook-xml/Makefile
+++ b/textproc/docbook-xml/Makefile
@@ -7,6 +7,7 @@
PORTNAME= docbook-xml
PORTVERSION= 4.2
+PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= http://www.docbook.org/xml/${PORTVERSION}/ \
http://www.oasis-open.org/committees/docbook/xml/${PORTVERSION}/
@@ -14,17 +15,21 @@ MASTER_SITES= http://www.docbook.org/xml/${PORTVERSION}/ \
MAINTAINER= kuriyama@FreeBSD.org
COMMENT= XML version of the DocBook DTD
-RUN_DEPENDS= ${MKCATALOG}:${PORTSDIR}/textproc/mkcatalog
+RUN_DEPENDS= ${XMLCATMGR}:${PORTSDIR}/textproc/xmlcatmgr
USE_ZIP= YES
NO_BUILD= YES
NO_WRKSUBDIR= YES
PLIST_SUB= DTD_VERSION=${PORTVERSION} \
- MKCATALOG=${MKCATALOG} CATALOG=${CATALOG}
+ XMLCATMGR=${XMLCATMGR}\
+ DOCBOOKDIR=${DOCBOOKDIR}\
+ CATALOG_PORTS_SGML=${CATALOG_PORTS_SGML} \
+ CATALOG_PORTS_XML=${CATALOG_PORTS_XML}
DOCBOOKDIR= ${PREFIX}/share/xml/${PORTNAME:S/-xml//}/${PORTVERSION}
-MKCATALOG= ${LOCALBASE}/sbin/mkcatalog
-CATALOG= ${PREFIX}/share/xml/catalog
+XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr
+CATALOG_PORTS_SGML= ${PREFIX}/share/sgml/catalog.ports
+CATALOG_PORTS_XML= ${PREFIX}/share/xml/catalog.ports
pre-install:
@[ -d ${DOCBOOKDIR}/ent ] || ${MKDIR} ${DOCBOOKDIR}/ent
@@ -35,6 +40,7 @@ do-install:
done
post-install:
- ${MKCATALOG} -q -c ${CATALOG} install docbook/${PORTVERSION} docbook.cat
+ @${XMLCATMGR} -sc ${CATALOG_PORTS_SGML} add CATALOG ${DOCBOOKDIR}/docbook.cat
+ @${XMLCATMGR} -c ${CATALOG_PORTS_XML} add nextCatalog ${DOCBOOKDIR}/catalog.xml
.include <bsd.port.mk>
diff --git a/textproc/docbook-xml/pkg-plist b/textproc/docbook-xml/pkg-plist
index 6195f7d07bf3..d2e244255014 100644
--- a/textproc/docbook-xml/pkg-plist
+++ b/textproc/docbook-xml/pkg-plist
@@ -1,15 +1,17 @@
share/xml/docbook/%%DTD_VERSION%%/ChangeLog
share/xml/docbook/%%DTD_VERSION%%/README
share/xml/docbook/%%DTD_VERSION%%/calstblx.dtd
+@unexec %%XMLCATMGR%% -c %%CATALOG_PORTS_XML%% remove %%DOCBOOKDIR%%/catalog.xml
share/xml/docbook/%%DTD_VERSION%%/catalog.xml
+@exec %%XMLCATMGR%% -c %%CATALOG_PORTS_XML%% add nextCatalog %%DOCBOOKDIR%%/catalog.xml
share/xml/docbook/%%DTD_VERSION%%/dbcentx.mod
share/xml/docbook/%%DTD_VERSION%%/dbgenent.mod
share/xml/docbook/%%DTD_VERSION%%/dbhierx.mod
share/xml/docbook/%%DTD_VERSION%%/dbnotnx.mod
share/xml/docbook/%%DTD_VERSION%%/dbpoolx.mod
-@unexec %%MKCATALOG%% -q -c%%CATALOG%% deinstall docbook/%%DTD_VERSION%% docbook.cat
+@unexec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% remove %%DOCBOOKDIR%%/docbook.cat
share/xml/docbook/%%DTD_VERSION%%/docbook.cat
-@exec %%MKCATALOG%% -q -c%%CATALOG%% install docbook/%%DTD_VERSION%% docbook.cat
+@exec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% add CATALOG %%DOCBOOKDIR%%/docbook.cat
share/xml/docbook/%%DTD_VERSION%%/docbookx.dtd
share/xml/docbook/%%DTD_VERSION%%/ent/iso-amsa.ent
share/xml/docbook/%%DTD_VERSION%%/ent/iso-amsb.ent