aboutsummaryrefslogtreecommitdiff
path: root/textproc/docbook-400
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-400
parent89ac439127b89ba221491c53d997f7947192c664 (diff)
downloadports-dfbcb5215ea76492da99061e33aef5a768e894d2.tar.gz
ports-dfbcb5215ea76492da99061e33aef5a768e894d2.zip
Use mkcatalog for adding this entry to ${PREFIX}/share/sgml/catalog
and ${PREFIX}/share/sgml/docbook/catalog.
Notes
Notes: svn path=/head/; revision=34293
Diffstat (limited to 'textproc/docbook-400')
-rw-r--r--textproc/docbook-400/Makefile9
-rw-r--r--textproc/docbook-400/pkg-plist2
2 files changed, 10 insertions, 1 deletions
diff --git a/textproc/docbook-400/Makefile b/textproc/docbook-400/Makefile
index 45c8a42cd1d0..f0d865ada050 100644
--- a/textproc/docbook-400/Makefile
+++ b/textproc/docbook-400/Makefile
@@ -15,16 +15,20 @@ DISTNAME= docbk40
MAINTAINER= asmodai@FreeBSD.org
-RUN_DEPENDS= ${ISOCAT}:${PORTSDIR}/textproc/iso8879
+RUN_DEPENDS= ${ISOCAT}:${PORTSDIR}/textproc/iso8879 \
+ ${MKCATALOG}:${PORTSDIR}/textproc/mkcatalog
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}
INSTDIR= ${PREFIX}/share/sgml/docbook
ISOCAT= ${PREFIX}/share/sgml/iso8879/catalog
+MKCATALOG= ${PREFIX}/sbin/mkcatalog
pre-install:
@[ -d ${INSTDIR}/4.0 ] || ${MKDIR} ${INSTDIR}/4.0
@@ -36,4 +40,7 @@ do-install:
@${CHMOD} ${SHAREMODE} ${INSTDIR}/4.0/*
@${CHOWN} -R ${SHAREOWN}.${SHAREGRP} ${INSTDIR}
+post-install:
+ @${MKCATALOG} -q install ${PORTNAME}/${PORTVERSION}
+
.include <bsd.port.mk>
diff --git a/textproc/docbook-400/pkg-plist b/textproc/docbook-400/pkg-plist
index dbb946da7fee..eda173f5fb9d 100644
--- a/textproc/docbook-400/pkg-plist
+++ b/textproc/docbook-400/pkg-plist
@@ -9,7 +9,9 @@ share/sgml/docbook/4.0/dbpool.mod
share/sgml/docbook/4.0/docbook.cat
share/sgml/docbook/4.0/docbook.dcl
share/sgml/docbook/4.0/docbook.dtd
+@unexec %%MKCATALOG%% -q deinstall %%DTD_NAME%%/%%DTD_VERSION%%
share/sgml/docbook/4.0/catalog
+@exec %%MKCATALOG%% -q install %%DTD_NAME%%/%%DTD_VERSION%%
share/sgml/docbook/4.0/readme.txt
@dirrm share/sgml/docbook/4.0
@unexec rmdir %D/share/sgml/docbook 2>/dev/null || true