summaryrefslogtreecommitdiffstats
path: root/textproc/docbook-300
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>2003-07-01 06:21:09 +0000
committerkuriyama <kuriyama@FreeBSD.org>2003-07-01 06:21:09 +0000
commit450fec8db3e9eb0d8c8809de0f930ae71f924516 (patch)
tree65732c72a7497c02275f6c7b1e1555bd342a0e29 /textproc/docbook-300
parent01e8c93ae718c09798243b52145ad64a7b7a5a65 (diff)
downloadFreeBSD-ports-450fec8db3e9eb0d8c8809de0f930ae71f924516.zip
FreeBSD-ports-450fec8db3e9eb0d8c8809de0f930ae71f924516.tar.gz
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-300')
-rw-r--r--textproc/docbook-300/Makefile26
-rw-r--r--textproc/docbook-300/pkg-plist4
2 files changed, 17 insertions, 13 deletions
diff --git a/textproc/docbook-300/Makefile b/textproc/docbook-300/Makefile
index 4a82fe2..b5f0971 100644
--- a/textproc/docbook-300/Makefile
+++ b/textproc/docbook-300/Makefile
@@ -9,6 +9,7 @@
PORTNAME= docbook
PORTVERSION= 3.0
+PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= ftp://ftp.ora.com/pub/davenport/
DISTFILES= docbk30.tar.Z
@@ -17,32 +18,35 @@ MAINTAINER= nik@FreeBSD.org
COMMENT= V3.0 of the DocBook DTD, designed for technical documentation
RUN_DEPENDS= ${ISOCAT}:${PORTSDIR}/textproc/iso8879 \
- ${MKCATALOG}:${PORTSDIR}/textproc/mkcatalog
+ ${XMLCATMGR}:${PORTSDIR}/textproc/xmlcatmgr
NO_MTREE= yes
EXTRACT_ONLY= # empty
NO_BUILD= yes
NO_WRKSUBDIR= yes
-PLIST_SUB= DTD_NAME=${PORTNAME} DTD_VERSION=${PORTVERSION} \
- MKCATALOG=${MKCATALOG}
+PLIST_SUB= DTD_NAME=${PORTNAME}
+PLIST_SUB+= DTD_VERSION=${PORTVERSION}
+PLIST_SUB+= XMLCATMGR=${XMLCATMGR}
+PLIST_SUB+= CATALOG_PORTS_SGML=${CATALOG_PORTS_SGML}
INSTDIR= ${PREFIX}/share/sgml/docbook
ISOCAT= ${PREFIX}/share/sgml/iso8879/catalog
-MKCATALOG= ${PREFIX}/sbin/mkcatalog
+XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr
+CATALOG_PORTS_SGML= ${PREFIX}/share/sgml/catalog.ports
-LATEST_LINK= docbook-300
+LATEST_LINK= docbook-${PORTVERSION}
pre-install:
- @[ -d ${INSTDIR}/3.0 ] || ${MKDIR} ${INSTDIR}/3.0
+ @[ -d ${INSTDIR}/${PORTVERSION} ] || ${MKDIR} ${INSTDIR}/${PORTVERSION}
do-install:
- @zcat ${DISTDIR}/docbk30.tar.Z |(cd ${INSTDIR}/3.0; pax -r)
- @${INSTALL_DATA} ${FILESDIR}/catalog ${INSTDIR}/3.0/catalog
- @${ECHO_CMD} "CATALOG \"${ISOCAT}\"" >> ${INSTDIR}/3.0/catalog
- @${CHMOD} ${SHAREMODE} ${INSTDIR}/3.0/*
+ @zcat ${DISTDIR}/docbk30.tar.Z |(cd ${INSTDIR}/${PORTVERSION}; pax -r)
+ @${INSTALL_DATA} ${FILESDIR}/catalog ${INSTDIR}/${PORTVERSION}/catalog
+ @${ECHO_CMD} "CATALOG \"${ISOCAT}\"" >> ${INSTDIR}/${PORTVERSION}/catalog
+ @${CHMOD} ${SHAREMODE} ${INSTDIR}/${PORTVERSION}/*
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${INSTDIR}
post-install:
- @${MKCATALOG} -q install ${PORTNAME}/${PORTVERSION}
+ @${XMLCATMGR} -sc ${CATALOG_PORTS_SGML} add CATALOG ${PORTNAME}/${PORTVERSION}/catalog
.include <bsd.port.mk>
diff --git a/textproc/docbook-300/pkg-plist b/textproc/docbook-300/pkg-plist
index 6f5c427..f084295 100644
--- a/textproc/docbook-300/pkg-plist
+++ b/textproc/docbook-300/pkg-plist
@@ -8,8 +8,8 @@ share/sgml/docbook/3.0/dbpool.mod
share/sgml/docbook/3.0/docbook.cat
share/sgml/docbook/3.0/docbook.dcl
share/sgml/docbook/3.0/docbook.dtd
-@unexec %%MKCATALOG%% -q deinstall %%DTD_NAME%%/%%DTD_VERSION%%
+@unexec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% remove %%DTD_NAME%%/%%DTD_VERSION%%/catalog
share/sgml/docbook/3.0/catalog
-@exec %%MKCATALOG%% -q install %%DTD_NAME%%/%%DTD_VERSION%%
+@exec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% add %%DTD_NAME%%/%%DTD_VERSION%%/catalog
@dirrm share/sgml/docbook/3.0
@unexec rmdir %D/share/sgml/docbook 2>/dev/null || true
OpenPOWER on IntegriCloud