diff options
Diffstat (limited to 'textproc/docbook-400')
-rw-r--r-- | textproc/docbook-400/Makefile | 9 | ||||
-rw-r--r-- | textproc/docbook-400/pkg-plist | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/textproc/docbook-400/Makefile b/textproc/docbook-400/Makefile index 45c8a42cd1d0..f0d865ada050 100644 --- a/textproc/docbook-400/Makefile +++ b/textproc/docbook-400/Makefile @@ -15,16 +15,20 @@ DISTNAME= docbk40 MAINTAINER= asmodai@FreeBSD.org -RUN_DEPENDS= ${ISOCAT}:${PORTSDIR}/textproc/iso8879 +RUN_DEPENDS= ${ISOCAT}:${PORTSDIR}/textproc/iso8879 \ + ${MKCATALOG}:${PORTSDIR}/textproc/mkcatalog USE_ZIP= yes NO_MTREE= yes EXTRACT_ONLY= # empty 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.0 ] || ${MKDIR} ${INSTDIR}/4.0 @@ -36,4 +40,7 @@ do-install: @${CHMOD} ${SHAREMODE} ${INSTDIR}/4.0/* @${CHOWN} -R ${SHAREOWN}.${SHAREGRP} ${INSTDIR} +post-install: + @${MKCATALOG} -q install ${PORTNAME}/${PORTVERSION} + .include <bsd.port.mk> diff --git a/textproc/docbook-400/pkg-plist b/textproc/docbook-400/pkg-plist index dbb946da7fee..eda173f5fb9d 100644 --- a/textproc/docbook-400/pkg-plist +++ b/textproc/docbook-400/pkg-plist @@ -9,7 +9,9 @@ share/sgml/docbook/4.0/dbpool.mod share/sgml/docbook/4.0/docbook.cat share/sgml/docbook/4.0/docbook.dcl share/sgml/docbook/4.0/docbook.dtd +@unexec %%MKCATALOG%% -q deinstall %%DTD_NAME%%/%%DTD_VERSION%% share/sgml/docbook/4.0/catalog +@exec %%MKCATALOG%% -q install %%DTD_NAME%%/%%DTD_VERSION%% share/sgml/docbook/4.0/readme.txt @dirrm share/sgml/docbook/4.0 @unexec rmdir %D/share/sgml/docbook 2>/dev/null || true |