summaryrefslogtreecommitdiffstats
path: root/textproc/docbook-241
diff options
context:
space:
mode:
authorshige <shige@FreeBSD.org>2000-10-27 15:31:04 +0000
committershige <shige@FreeBSD.org>2000-10-27 15:31:04 +0000
commitf7968c914d16a21a0714ddb19e984140c5f76982 (patch)
treec2d2732bf6197d847836c5ab745e52d68b432a3c /textproc/docbook-241
parent40c576683f25e43a9685a96cffbe45e150a61f63 (diff)
downloadFreeBSD-ports-f7968c914d16a21a0714ddb19e984140c5f76982.zip
FreeBSD-ports-f7968c914d16a21a0714ddb19e984140c5f76982.tar.gz
Use mkcatalog for adding this entry to ${PREFIX}/share/sgml/catalog
and ${PREFIX}/share/sgml/docbook/catalog.
Diffstat (limited to 'textproc/docbook-241')
-rw-r--r--textproc/docbook-241/Makefile8
-rw-r--r--textproc/docbook-241/pkg-plist2
2 files changed, 9 insertions, 1 deletions
diff --git a/textproc/docbook-241/Makefile b/textproc/docbook-241/Makefile
index f566c40..a893134 100644
--- a/textproc/docbook-241/Makefile
+++ b/textproc/docbook-241/Makefile
@@ -15,15 +15,18 @@ DISTFILES= docbk241.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=2.4.1 MKCATALOG=${MKCATALOG}
INSTDIR= ${PREFIX}/share/sgml/docbook
ISOCAT= ${PREFIX}/share/sgml/iso8879/catalog
+MKCATALOG= ${PREFIX}/sbin/mkcatalog
pre-install:
@[ -d ${INSTDIR}/2.4.1 ] || ${MKDIR} ${INSTDIR}/2.4.1
@@ -35,4 +38,7 @@ do-install:
@${CHMOD} ${SHAREMODE} ${INSTDIR}/2.4.1/*
@${CHOWN} -R ${SHAREOWN}.${SHAREGRP} ${INSTDIR}
+post-install:
+ @${MKCATALOG} -q install ${PORTNAME}/2.4.1
+
.include <bsd.port.mk>
diff --git a/textproc/docbook-241/pkg-plist b/textproc/docbook-241/pkg-plist
index 027a951..f2a52a5 100644
--- a/textproc/docbook-241/pkg-plist
+++ b/textproc/docbook-241/pkg-plist
@@ -6,6 +6,8 @@ share/sgml/docbook/2.4.1/dbpool.mod
share/sgml/docbook/2.4.1/docbook.cat
share/sgml/docbook/2.4.1/docbook.dcl
share/sgml/docbook/2.4.1/docbook.dtd
+@unexec %%MKCATALOG%% -q deinstall %%DTD_NAME%%/%%DTD_VERSION%%
share/sgml/docbook/2.4.1/catalog
+@exec %%MKCATALOG%% -q install %%DTD_NAME%%/%%DTD_VERSION%%
@dirrm share/sgml/docbook/2.4.1
@unexec rmdir %D/share/sgml/docbook 2>/dev/null || true
OpenPOWER on IntegriCloud