aboutsummaryrefslogtreecommitdiff
path: root/textproc/docbook-300
diff options
context:
space:
mode:
authorShigeyuki Fukushima <shige@FreeBSD.org>2000-10-27 15:31:04 +0000
committerShigeyuki Fukushima <shige@FreeBSD.org>2000-10-27 15:31:04 +0000
commitdfbcb5215ea76492da99061e33aef5a768e894d2 (patch)
tree0cd941dffaacea01edb9682c2932f941d8302b17 /textproc/docbook-300
parent89ac439127b89ba221491c53d997f7947192c664 (diff)
downloadports-dfbcb5215ea76492da99061e33aef5a768e894d2.tar.gz
ports-dfbcb5215ea76492da99061e33aef5a768e894d2.zip
Notes
Diffstat (limited to 'textproc/docbook-300')
-rw-r--r--textproc/docbook-300/Makefile9
-rw-r--r--textproc/docbook-300/pkg-plist2
2 files changed, 10 insertions, 1 deletions
diff --git a/textproc/docbook-300/Makefile b/textproc/docbook-300/Makefile
index 401f3047c076..cda3345500dc 100644
--- a/textproc/docbook-300/Makefile
+++ b/textproc/docbook-300/Makefile
@@ -15,15 +15,19 @@ DISTFILES= docbk30.tar.Z
MAINTAINER= nik@FreeBSD.org
-RUN_DEPENDS= ${ISOCAT}:${PORTSDIR}/textproc/iso8879
+RUN_DEPENDS= ${ISOCAT}:${PORTSDIR}/textproc/iso8879 \
+ ${MKCATALOG}:${PORTSDIR}/textproc/mkcatalog
NO_MTREE= yes
EXTRACT_ONLY= # empty
NO_BUILD= yes
NO_WRKSUBDIR= yes
+PLIST_SUB= DTD_NAME=${PORTNAME} DTD_VERSION=${PORTVERSION} \
+ MKCATALOG=${MKCATALOG}
INSTDIR= ${PREFIX}/share/sgml/docbook
ISOCAT= ${PREFIX}/share/sgml/iso8879/catalog
+MKCATALOG= ${PREFIX}/sbin/mkcatalog
pre-install:
@[ -d ${INSTDIR}/3.0 ] || ${MKDIR} ${INSTDIR}/3.0
@@ -35,4 +39,7 @@ do-install:
@${CHMOD} ${SHAREMODE} ${INSTDIR}/3.0/*
@${CHOWN} -R ${SHAREOWN}.${SHAREGRP} ${INSTDIR}
+post-install:
+ @${MKCATALOG} -q install ${PORTNAME}/${PORTVERSION}
+
.include <bsd.port.mk>
diff --git a/textproc/docbook-300/pkg-plist b/textproc/docbook-300/pkg-plist
index a654cb3d6c30..6f5c42709542 100644
--- a/textproc/docbook-300/pkg-plist
+++ b/textproc/docbook-300/pkg-plist
@@ -8,6 +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%%
share/sgml/docbook/3.0/catalog
+@exec %%MKCATALOG%% -q install %%DTD_NAME%%/%%DTD_VERSION%%
@dirrm share/sgml/docbook/3.0
@unexec rmdir %D/share/sgml/docbook 2>/dev/null || true