diff options
author | Mike Gardiner <obz@gentoo.org> | 2003-09-06 19:29:42 +0000 |
---|---|---|
committer | Mike Gardiner <obz@gentoo.org> | 2003-09-06 19:29:42 +0000 |
commit | 46240c0530cee2157cd4e5c9a084dea69e90851b (patch) | |
tree | e952995f52fef7ce7e16cca67483adc19004b708 /app-text | |
parent | new revision with catalog support (diff) | |
download | gentoo-2-46240c0530cee2157cd4e5c9a084dea69e90851b.tar.gz gentoo-2-46240c0530cee2157cd4e5c9a084dea69e90851b.tar.bz2 gentoo-2-46240c0530cee2157cd4e5c9a084dea69e90851b.zip |
catalog fixes
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/docbook-xml-dtd/ChangeLog | 5 | ||||
-rw-r--r-- | app-text/docbook-xml-dtd/Manifest | 4 | ||||
-rw-r--r-- | app-text/docbook-xml-dtd/docbook-xml-dtd-4.2.ebuild | 31 |
3 files changed, 36 insertions, 4 deletions
diff --git a/app-text/docbook-xml-dtd/ChangeLog b/app-text/docbook-xml-dtd/ChangeLog index 19729c73f5b7..d29c146fa1d6 100644 --- a/app-text/docbook-xml-dtd/ChangeLog +++ b/app-text/docbook-xml-dtd/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for app-text/docbook-xml-dtd # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/docbook-xml-dtd/ChangeLog,v 1.13 2003/09/06 19:25:57 obz Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/docbook-xml-dtd/ChangeLog,v 1.14 2003/09/06 19:29:19 obz Exp $ + + 07 Sep 2003; Mike Gardiner <obz@gentoo.org> docbook-xml-dtd-4.2.ebuild: + Updated testing version to include the catalog fixes *docbook-xml-dtd-4.1.2-r4 (07 Sep 2003) diff --git a/app-text/docbook-xml-dtd/Manifest b/app-text/docbook-xml-dtd/Manifest index 8c859a08ecca..1811c57c8b53 100644 --- a/app-text/docbook-xml-dtd/Manifest +++ b/app-text/docbook-xml-dtd/Manifest @@ -1,8 +1,8 @@ MD5 4d1327d534f0b68b72060118fff34069 docbook-xml-dtd-4.1.2-r3.ebuild 1007 -MD5 3c87cdc58591699899aee294f1543a84 docbook-xml-dtd-4.2.ebuild 1008 +MD5 eacb5d8f80cf2ebb81e90abbaef0083b docbook-xml-dtd-4.2.ebuild 1795 MD5 7addba64d59b2473c88890720adf7a8f docbook-xml-dtd-4.1.2-r2.ebuild 986 MD5 bd0b261b27bd6d919caf4802e1edb1fd docbook-xml-dtd-4.1.2-r4.ebuild 1772 -MD5 c45f3b4ef6ca26a94cfabe50c50ba469 ChangeLog 2048 +MD5 bbc98749e6df9f611394e6fa64c1c6c5 ChangeLog 2178 MD5 685e90289b5799117f9e7127c62cf649 files/build-docbook-catalog-4.2 7842 MD5 093e6f1d9b42e82da8879d652cd8939f files/digest-docbook-xml-dtd-4.2 63 MD5 a74c550aa25c8f691f222c7cc28028cb files/build-docbook-catalog-4.1.2-r3 7845 diff --git a/app-text/docbook-xml-dtd/docbook-xml-dtd-4.2.ebuild b/app-text/docbook-xml-dtd/docbook-xml-dtd-4.2.ebuild index 526d38a2cf3c..f2bdd7223b36 100644 --- a/app-text/docbook-xml-dtd/docbook-xml-dtd-4.2.ebuild +++ b/app-text/docbook-xml-dtd/docbook-xml-dtd-4.2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/docbook-xml-dtd/docbook-xml-dtd-4.2.ebuild,v 1.7 2003/09/05 22:37:21 msterret Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/docbook-xml-dtd/docbook-xml-dtd-4.2.ebuild,v 1.8 2003/09/06 19:29:19 obz Exp $ MY_P="docbook-xml-4.2" S=${WORKDIR}/${P} @@ -38,5 +38,34 @@ src_install() { } pkg_postinst() { + + # FIXME: this script needs to work with 4.2 as well as 4.1.2 build-docbook-catalog + + # we need to add the docbookx.dtd to local, so + # packages that refer to it dont need to go http + # for it <obz@gentoo.org> + CATALOG=/etc/xml/catalog + + /usr/bin/xmlcatalog --noout --add "rewriteSystem" \ + "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" \ + "/usr/share/sgml/docbook/xml-dtd-4.2/docbookx.dtd" \ + ${CATALOG} + + /usr/bin/xmlcatalog --noout --add "rewriteURI" \ + "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" \ + "/usr/share/sgml/docbook/xml-dtd-4.2/docbookx.dtd" \ + ${CATALOG} + +} + +pkg_postrm( ) { + + # and clean up the docbookx.dtd once we've been removed + CATALOG=/etc/xml/catalog + /usr/bin/xmlcatalog --noout --del \ + "/usr/share/sgml/docbook/xml-dtd-4.2/docbookx.dtd" \ + ${CATALOG} + } + |