aboutsummaryrefslogtreecommitdiff
path: root/textproc/iso8879
diff options
context:
space:
mode:
authorShigeyuki Fukushima <shige@FreeBSD.org>2000-10-27 08:14:08 +0000
committerShigeyuki Fukushima <shige@FreeBSD.org>2000-10-27 08:14:08 +0000
commitfc84a44f0e182f8258e441386385c8a62a4a8f83 (patch)
tree292ded36b1e1158b9c2804fcdb7547cc5a87fe3b /textproc/iso8879
parent80e70145a6a7356eaa3d3fbb1b5322acf48fcdd5 (diff)
downloadports-fc84a44f0e182f8258e441386385c8a62a4a8f83.tar.gz
ports-fc84a44f0e182f8258e441386385c8a62a4a8f83.zip
Notes
Diffstat (limited to 'textproc/iso8879')
-rw-r--r--textproc/iso8879/Makefile6
-rw-r--r--textproc/iso8879/pkg-plist2
2 files changed, 8 insertions, 0 deletions
diff --git a/textproc/iso8879/Makefile b/textproc/iso8879/Makefile
index 8f256ad175a3..ff792abd88c9 100644
--- a/textproc/iso8879/Makefile
+++ b/textproc/iso8879/Makefile
@@ -15,12 +15,15 @@ EXTRACT_SUFX= .zip
MAINTAINER= kuriyama@FreeBSD.org
BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
+RUN_DEPENDS= ${MKCATALOG}:${PORTSDIR}/textproc/mkcatalog
EXTRACT_ONLY= # empty
NO_BUILD= yes
NO_WRKSUBDIR= yes
+PLIST_SUB= DTD_NAME=${PORTNAME} MKCATALOG=${MKCATALOG}
INSTDIR= ${PREFIX}/share/sgml/iso8879
+MKCATALOG= ${PREFIX}/sbin/mkcatalog
pre-install:
@[ -d ${INSTDIR} ] || ${MKDIR} ${INSTDIR}
@@ -31,4 +34,7 @@ do-install:
@${CHMOD} ${SHAREMODE} ${INSTDIR}/*
@${CHOWN} -R ${SHAREOWN}.${SHAREGRP} ${INSTDIR}
+post-install:
+ @${MKCATALOG} -q install ${PORTNAME}
+
.include <bsd.port.mk>
diff --git a/textproc/iso8879/pkg-plist b/textproc/iso8879/pkg-plist
index 400d5bf44341..c3a0716b00b8 100644
--- a/textproc/iso8879/pkg-plist
+++ b/textproc/iso8879/pkg-plist
@@ -17,6 +17,8 @@ share/sgml/iso8879/ISOlat2
share/sgml/iso8879/ISOnum
share/sgml/iso8879/ISOpub
share/sgml/iso8879/ISOtech
+@unexec %%MKCATALOG%% -q deinstall %%DTD_NAME%%
share/sgml/iso8879/catalog
+@exec %%MKCATALOG%% -q install %%DTD_NAME%%
@dirrm share/sgml/iso8879
@unexec rmdir %D/share/sgml 2>/dev/null || true