aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/docbook-410
diff options
context:
space:
mode:
authorshige <shige@FreeBSD.org>2000-10-27 23:31:04 +0800
committershige <shige@FreeBSD.org>2000-10-27 23:31:04 +0800
commitf7968c914d16a21a0714ddb19e984140c5f76982 (patch)
treec2d2732bf6197d847836c5ab745e52d68b432a3c /textproc/docbook-410
parent40c576683f25e43a9685a96cffbe45e150a61f63 (diff)
downloadfreebsd-ports-gnome-f7968c914d16a21a0714ddb19e984140c5f76982.tar.gz
freebsd-ports-gnome-f7968c914d16a21a0714ddb19e984140c5f76982.tar.zst
freebsd-ports-gnome-f7968c914d16a21a0714ddb19e984140c5f76982.zip
Use mkcatalog for adding this entry to ${PREFIX}/share/sgml/catalog
and ${PREFIX}/share/sgml/docbook/catalog.
Diffstat (limited to 'textproc/docbook-410')
-rw-r--r--textproc/docbook-410/Makefile9
-rw-r--r--textproc/docbook-410/pkg-plist2
2 files changed, 10 insertions, 1 deletions
diff --git a/textproc/docbook-410/Makefile b/textproc/docbook-410/Makefile
index 3ccc5f1a9782..babebcff8cae 100644
--- a/textproc/docbook-410/Makefile
+++ b/textproc/docbook-410/Makefile
@@ -16,15 +16,19 @@ EXTRACT_ONLY= # empty
MAINTAINER= murray@freebsd.org
-RUN_DEPENDS= ${ISOCAT}:${PORTSDIR}/textproc/iso8879
+RUN_DEPENDS= ${ISOCAT}:${PORTSDIR}/textproc/iso8879 \
+ ${MKCATALOG}:${PORTSDIR}/textproc/mkcatalog
USE_ZIP= yes
NO_MTREE= yes
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.1 ] || ${MKDIR} ${INSTDIR}/4.1
@@ -36,4 +40,7 @@ do-install:
@${CHMOD} ${SHAREMODE} ${INSTDIR}/4.1/*
@${CHOWN} -R ${SHAREOWN}.${SHAREGRP} ${INSTDIR}
+post-install:
+ @${MKCATALOG} -q install ${PORTNAME}/${PORTVERSION}
+
.include <bsd.port.mk>
diff --git a/textproc/docbook-410/pkg-plist b/textproc/docbook-410/pkg-plist
index 30c11a71c66f..9438cc54a553 100644
--- a/textproc/docbook-410/pkg-plist
+++ b/textproc/docbook-410/pkg-plist
@@ -3,7 +3,9 @@ share/sgml/docbook/4.1/41chg.txt
share/sgml/docbook/4.1/50issues.txt
share/sgml/docbook/4.1/ChangeLog
share/sgml/docbook/4.1/cals-tbl.dtd
+@unexec %%MKCATALOG%% -q deinstall %%DTD_NAME%%/%%DTD_VERSION%%
share/sgml/docbook/4.1/catalog
+@exec %%MKCATALOG%% -q install %%DTD_NAME%%/%%DTD_VERSION%%
share/sgml/docbook/4.1/dbcent.mod
share/sgml/docbook/4.1/dbgenent.mod
share/sgml/docbook/4.1/dbhier.mod