summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorShigeyuki Fukushima <shige@FreeBSD.org>2000-10-27 15:24:07 +0000
committerShigeyuki Fukushima <shige@FreeBSD.org>2000-10-27 15:24:07 +0000
commit89ac439127b89ba221491c53d997f7947192c664 (patch)
tree69229ca861346fbac83472cfeb4aeb9213c6ee82 /textproc
parentFix fatal bug. (diff)
Use mkcatalog for adding this entry to ${PREFIX}/share/sgml/catalog.
Notes
Notes: svn path=/head/; revision=34292
Diffstat (limited to 'textproc')
-rw-r--r--textproc/iso12083/Makefile7
-rw-r--r--textproc/iso12083/pkg-plist3
-rw-r--r--textproc/linuxdoc/Makefile8
-rw-r--r--textproc/linuxdoc/pkg-plist2
4 files changed, 19 insertions, 1 deletions
diff --git a/textproc/iso12083/Makefile b/textproc/iso12083/Makefile
index 5b393d810c1e..7aa21e96a939 100644
--- a/textproc/iso12083/Makefile
+++ b/textproc/iso12083/Makefile
@@ -13,14 +13,18 @@ DISTFILES= article.dtd book.dtd maths.dtd serial.dtd
MAINTAINER= jfieber@FreeBSD.org
+RUN_DEPENDS= ${MKCATALOG}:${PORTSDIR}/textproc/mkcatalog
+
DIST_SUBDIR= iso12083
NO_MTREE= yes
NO_BUILD= yes
NO_WRKSUBDIR= yes
EXTRACT_ONLY= # empty
+PLIST_SUB= DTD_NAME=${PORTNAME} MKCATALOG=${MKCATALOG}
INSTDIR= ${PREFIX}/share/sgml/iso12083
+MKCATALOG= ${PREFIX}/sbin/mkcatalog
pre-install:
@[ -d ${INSTDIR} ] || ${MKDIR} ${INSTDIR}
@@ -31,4 +35,7 @@ do-install:
done
@${INSTALL_DATA} ${FILESDIR}/catalog ${INSTDIR}/catalog
+post-install:
+ @${MKCATALOG} -q install ${PORTNAME}
+
.include <bsd.port.mk>
diff --git a/textproc/iso12083/pkg-plist b/textproc/iso12083/pkg-plist
index 3f701bc781c7..3f760774d7f4 100644
--- a/textproc/iso12083/pkg-plist
+++ b/textproc/iso12083/pkg-plist
@@ -2,5 +2,8 @@ share/sgml/iso12083/article.dtd
share/sgml/iso12083/book.dtd
share/sgml/iso12083/maths.dtd
share/sgml/iso12083/serial.dtd
+@unexec %%MKCATALOG%% -q deinstall %%DTD_NAME%%
share/sgml/iso12083/catalog
+@exec %%MKCATALOG%% -q install %%DTD_NAME%%
@dirrm share/sgml/iso12083
+@unexec rmdir %D/share/sgml 2>/dev/null || true
diff --git a/textproc/linuxdoc/Makefile b/textproc/linuxdoc/Makefile
index 6529131cd7de..59ebf75e6f44 100644
--- a/textproc/linuxdoc/Makefile
+++ b/textproc/linuxdoc/Makefile
@@ -12,14 +12,17 @@ MASTER_SITES= http://fallout.campusview.indiana.edu/ports/distfiles/
MAINTAINER= kuriyama@FreeBSD.org
-RUN_DEPENDS= ${ISOCAT}:${PORTSDIR}/textproc/iso8879
+RUN_DEPENDS= ${ISOCAT}:${PORTSDIR}/textproc/iso8879 \
+ ${MKCATALOG}:${PORTSDIR}/textproc/mkcatalog
EXTRACT_ONLY= # empty
NO_BUILD= yes
NO_WRKSUBDIR= yes
+PLIST_SUB= DTD_NAME=${PORTNAME} MKCATALOG=${MKCATALOG}
INSTDIR= ${PREFIX}/share/sgml/linuxdoc
ISOCAT= ${PREFIX}/share/sgml/iso8879/catalog
+MKCATALOG= ${PREFIX}/sbin/mkcatalog
pre-install:
@[ -d ${INSTDIR} ] || ${MKDIR} ${INSTDIR}
@@ -29,4 +32,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/linuxdoc/pkg-plist b/textproc/linuxdoc/pkg-plist
index a76887b87d9a..6e4187257db0 100644
--- a/textproc/linuxdoc/pkg-plist
+++ b/textproc/linuxdoc/pkg-plist
@@ -1,5 +1,7 @@
share/sgml/linuxdoc/README
+@unexec %%MKCATALOG%% -q deinstall %%DTD_NAME%%
share/sgml/linuxdoc/catalog
+@exec %%MKCATALOG%% -q install %%DTD_NAME%%
share/sgml/linuxdoc/freebsd-1.0.dtd
share/sgml/linuxdoc/freebsd-1.1.dtd
share/sgml/linuxdoc/linuxdoc.dec