aboutsummaryrefslogtreecommitdiff
path: root/textproc/html
diff options
context:
space:
mode:
authorShigeyuki Fukushima <shige@FreeBSD.org>2000-10-27 15:32:58 +0000
committerShigeyuki Fukushima <shige@FreeBSD.org>2000-10-27 15:32:58 +0000
commit0ebf2d90418e843a676f26b74192228f7caeb2a5 (patch)
tree5ff8850f9a9fe7e8407942f2c2c682d341a11c42 /textproc/html
parentdfbcb5215ea76492da99061e33aef5a768e894d2 (diff)
downloadports-0ebf2d90418e843a676f26b74192228f7caeb2a5.tar.gz
ports-0ebf2d90418e843a676f26b74192228f7caeb2a5.zip
Use mkcatalog for adding this entry to ${PREFIX}/share/sgml/catalog.
Notes
Notes: svn path=/head/; revision=34294
Diffstat (limited to 'textproc/html')
-rw-r--r--textproc/html/Makefile7
-rw-r--r--textproc/html/pkg-plist2
2 files changed, 9 insertions, 0 deletions
diff --git a/textproc/html/Makefile b/textproc/html/Makefile
index caad0875d844..64ec012867dc 100644
--- a/textproc/html/Makefile
+++ b/textproc/html/Makefile
@@ -14,11 +14,15 @@ EXTRACT_ONLY= # empty
MAINTAINER= kuriyama@FreeBSD.org
+RUN_DEPENDS= ${MKCATALOG}:${PORTSDIR}/textproc/mkcatalog
+
NO_MTREE= yes
NO_BUILD= yes
NO_WRKSUBDIR= yes
+PLIST_SUB= DTD_NAME=${PORTNAME} MKCATALOG=${MKCATALOG}
INSTDIR= ${PREFIX}/share/sgml/html
+MKCATALOG= ${PREFIX}/sbin/mkcatalog
pre-install:
@[ -d ${INSTDIR} ] || ${MKDIR} ${INSTDIR}
@@ -28,4 +32,7 @@ do-install:
@${CHMOD} ${SHAREMODE} `find ${INSTDIR} -type f`
@${CHOWN} -R ${SHAREOWN}.${SHAREGRP} ${INSTDIR}
+post-install:
+ @${MKCATALOG} -q install ${PORTNAME}
+
.include <bsd.port.mk>
diff --git a/textproc/html/pkg-plist b/textproc/html/pkg-plist
index ffc573840e4f..ce3e2d0fba61 100644
--- a/textproc/html/pkg-plist
+++ b/textproc/html/pkg-plist
@@ -21,7 +21,9 @@ share/sgml/html/4.01/HTMLsymbol.ent
share/sgml/html/4.01/frameset.dtd
share/sgml/html/4.01/loose.dtd
share/sgml/html/4.01/strict.dtd
+@unexec %%MKCATALOG%% -q deinstall %%DTD_NAME%%
share/sgml/html/catalog
+@exec %%MKCATALOG%% -q install %%DTD_NAME%%
@dirrm share/sgml/html/2.0
@dirrm share/sgml/html/3.2
@dirrm share/sgml/html/4.0