diff options
author | jmmv <jmmv@pkgsrc.org> | 2003-01-10 19:29:29 +0000 |
---|---|---|
committer | jmmv <jmmv@pkgsrc.org> | 2003-01-10 19:29:29 +0000 |
commit | a97516c03904351279d491f407f664cacaa0cd0b (patch) | |
tree | 5890e86698247d3e6071413d2c0c14532d397e66 /textproc | |
parent | 37efefe8a022fa67a984df708e0f745f87578db1 (diff) | |
download | pkgsrc-a97516c03904351279d491f407f664cacaa0cd0b.tar.gz |
Use xmlcatmgr to manage the share/xml/catalog file, so it can be shared
across multiple packages. Bump PKGREVISION to 1.
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/docbook-xml/Makefile | 12 | ||||
-rw-r--r-- | textproc/docbook-xml/PLIST | 6 |
2 files changed, 10 insertions, 8 deletions
diff --git a/textproc/docbook-xml/Makefile b/textproc/docbook-xml/Makefile index 26354a89b43..1dd2d4c3f5e 100644 --- a/textproc/docbook-xml/Makefile +++ b/textproc/docbook-xml/Makefile @@ -1,7 +1,9 @@ -# $NetBSD: Makefile,v 1.2 2002/08/22 11:22:04 martti Exp $ +# $NetBSD: Makefile,v 1.3 2003/01/10 19:29:29 jmmv Exp $ # DISTNAME= docbook-xml-4.2 +WRKSRC= ${WRKDIR} +PKGREVISION= 1 CATEGORIES= textproc MASTER_SITES= http://www.oasis-open.org/docbook/xml/4.2/ EXTRACT_SUFX= .zip @@ -10,7 +12,7 @@ MAINTAINER= seb@netbsd.org HOMEPAGE= http://www.oasis-open.org/docbook COMMENT= XML DTD designed for computer documentation -WRKSRC= ${WRKDIR} +USE_BUILDLINK2= YES INSTDIR= ${DESTDIR}${PREFIX}/share/xml DTDDIR= ${INSTDIR}/docbook @@ -20,8 +22,6 @@ DTDFILES= calstblx.dtd dbcentx.mod dbgenent.mod dbhierx.mod \ MISCFILES= README do-build: - ${ECHO} 'CATALOG "${PREFIX}/share/xml/docbook/catalog"' \ - > ${WRKSRC}/catalog ${GREP} '^PUBLIC' ${WRKSRC}/docbook.cat > ${WRKSRC}/catalog.docbook do-install: @@ -30,7 +30,9 @@ do-install: (cd ${WRKSRC}; ${INSTALL_DATA} ${DTDFILES} ${DTDDIR}) (cd ${WRKSRC}/ent; ${INSTALL_DATA} *.ent ${ENTDIR}) (cd ${WRKSRC}; ${INSTALL_DATA} ${MISCFILES} ${DTDDIR}) - ${INSTALL_DATA} ${WRKSRC}/catalog ${INSTDIR}/catalog + ${PREFIX}/bin/xmlcatmgr add "CATALOG" \ + "${PREFIX}/share/xml/docbook/catalog" ${INSTALL_DATA} ${WRKSRC}/catalog.docbook ${DTDDIR}/catalog +.include "../../textproc/xmlcatmgr/buildlink2.mk" .include "../../mk/bsd.pkg.mk" diff --git a/textproc/docbook-xml/PLIST b/textproc/docbook-xml/PLIST index 228dc505227..36d0904c40c 100644 --- a/textproc/docbook-xml/PLIST +++ b/textproc/docbook-xml/PLIST @@ -1,5 +1,6 @@ -@comment $NetBSD: PLIST,v 1.3 2002/12/09 16:01:44 tron Exp $ -share/xml/catalog +@comment $NetBSD: PLIST,v 1.4 2003/01/10 19:29:29 jmmv Exp $ +@exec ${LOCALBASE}/bin/xmlcatmgr add CATALOG %D/share/xml/docbook/catalog +@unexec ${LOCALBASE}/bin/xmlcatmgr remove %D/share/xml/docbook/catalog share/xml/docbook/README share/xml/docbook/calstblx.dtd share/xml/docbook/catalog @@ -31,4 +32,3 @@ share/xml/docbook/ent/iso-tech.ent share/xml/docbook/soextblx.dtd @dirrm share/xml/docbook/ent @dirrm share/xml/docbook -@unexec ${RMDIR} %D/share/xml 2>/dev/null || ${TRUE} |