aboutsummaryrefslogtreecommitdiff
path: root/textproc/docbook-310
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>2003-07-01 06:21:09 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>2003-07-01 06:21:09 +0000
commit7464f336e31fd80c931c3eb1c4c62776e4e3f7f1 (patch)
tree967c3aa47957c6218b6c16c34cfdf4261490cfc6 /textproc/docbook-310
parentd7f26aaaed78fb07382fa672754350cb37ec40e0 (diff)
downloadports-7464f336e31fd80c931c3eb1c4c62776e4e3f7f1.tar.gz
ports-7464f336e31fd80c931c3eb1c4c62776e4e3f7f1.zip
Notes
Diffstat (limited to 'textproc/docbook-310')
-rw-r--r--textproc/docbook-310/Makefile24
-rw-r--r--textproc/docbook-310/pkg-plist4
2 files changed, 16 insertions, 12 deletions
diff --git a/textproc/docbook-310/Makefile b/textproc/docbook-310/Makefile
index e830888be061..1432148b8565 100644
--- a/textproc/docbook-310/Makefile
+++ b/textproc/docbook-310/Makefile
@@ -9,6 +9,7 @@
PORTNAME= docbook
PORTVERSION= 3.1
+PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= http://www.docbook.org/sgml/3.1/
DISTNAME= docbk31
@@ -17,33 +18,36 @@ MAINTAINER= nik@FreeBSD.org
COMMENT= V3.1 of the DocBook DTD, designed for technical documentation
RUN_DEPENDS= ${ISOCAT}:${PORTSDIR}/textproc/iso8879 \
- ${MKCATALOG}:${PORTSDIR}/textproc/mkcatalog
+ ${XMLCATMGR}:${PORTSDIR}/textproc/xmlcatmgr
USE_ZIP= yes
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-310
pre-install:
- @[ -d ${INSTDIR}/3.1 ] || ${MKDIR} ${INSTDIR}/3.1
+ @[ -d ${INSTDIR}/${PORTVERSION} ] || ${MKDIR} ${INSTDIR}/${PORTVERSION}
do-install:
- @unzip -a -q -o ${DISTDIR}/${DISTFILES} -d ${INSTDIR}/3.1
- @${INSTALL_DATA} ${FILESDIR}/catalog ${INSTDIR}/3.1/catalog
- @${ECHO_CMD} "CATALOG \"${ISOCAT}\"" >> ${INSTDIR}/3.1/catalog
- @${CHMOD} ${SHAREMODE} ${INSTDIR}/3.1/*
+ @unzip -a -q -o ${DISTDIR}/${DISTFILES} -d ${INSTDIR}/${PORTVERSION}
+ @${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-310/pkg-plist b/textproc/docbook-310/pkg-plist
index 670d27d7da01..001f22f219d8 100644
--- a/textproc/docbook-310/pkg-plist
+++ b/textproc/docbook-310/pkg-plist
@@ -11,9 +11,9 @@ share/sgml/docbook/3.1/dbpool.mod
share/sgml/docbook/3.1/docbook.cat
share/sgml/docbook/3.1/docbook.dcl
share/sgml/docbook/3.1/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.1/catalog
-@exec %%MKCATALOG%% -q install %%DTD_NAME%%/%%DTD_VERSION%%
+@exec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% add %%DTD_NAME%%/%%DTD_VERSION%%/catalog
share/sgml/docbook/3.1/readme.txt
@dirrm share/sgml/docbook/3.1
@unexec rmdir %D/share/sgml/docbook 2>/dev/null || true