summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gardiner <obz@gentoo.org>2003-09-06 19:26:18 +0000
committerMike Gardiner <obz@gentoo.org>2003-09-06 19:26:18 +0000
commita56555a457595e94ad098adf313148af470ee291 (patch)
treed2fe64956343fd4b38c1da4c2448a7a84021f95d /app-text/docbook-xml-dtd
parentnew revision with catalog support (diff)
downloadhistorical-a56555a457595e94ad098adf313148af470ee291.tar.gz
historical-a56555a457595e94ad098adf313148af470ee291.tar.bz2
historical-a56555a457595e94ad098adf313148af470ee291.zip
new revision with catalog support
Diffstat (limited to 'app-text/docbook-xml-dtd')
-rw-r--r--app-text/docbook-xml-dtd/Manifest4
-rw-r--r--app-text/docbook-xml-dtd/docbook-xml-dtd-4.1.2-r4.ebuild69
-rw-r--r--app-text/docbook-xml-dtd/files/digest-docbook-xml-dtd-4.1.2-r41
3 files changed, 72 insertions, 2 deletions
diff --git a/app-text/docbook-xml-dtd/Manifest b/app-text/docbook-xml-dtd/Manifest
index 18bdd905e5b3..8c859a08ecca 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 7addba64d59b2473c88890720adf7a8f docbook-xml-dtd-4.1.2-r2.ebuild 986
-MD5 117da4282f1eab036b8f9cca0f0faab5 docbook-xml-dtd-4.1.2-r4.ebuild 1656
-MD5 b97b4956341a35ed652cf6197802afce ChangeLog 1855
+MD5 bd0b261b27bd6d919caf4802e1edb1fd docbook-xml-dtd-4.1.2-r4.ebuild 1772
+MD5 c45f3b4ef6ca26a94cfabe50c50ba469 ChangeLog 2048
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.1.2-r4.ebuild b/app-text/docbook-xml-dtd/docbook-xml-dtd-4.1.2-r4.ebuild
new file mode 100644
index 000000000000..d21014f18073
--- /dev/null
+++ b/app-text/docbook-xml-dtd/docbook-xml-dtd-4.1.2-r4.ebuild
@@ -0,0 +1,69 @@
+# 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.1.2-r4.ebuild,v 1.1 2003/09/06 19:25:57 obz Exp $
+
+MY_P="docbkx412"
+S=${WORKDIR}/${P}
+DESCRIPTION="Docbook DTD for XML"
+SRC_URI="http://www.oasis-open.org/docbook/xml/${PV}/${MY_P}.zip"
+
+HOMEPAGE="http://www.oasis-open.org/docbook/"
+SLOT="4.1.2"
+LICENSE="X11"
+
+DEPEND=">=app-arch/unzip-5.41
+ >=dev-libs/libxml2-2.4
+ >=app-text/docbook-xsl-stylesheets-1.45"
+KEYWORDS="x86 ppc sparc alpha hppa amd64"
+src_unpack() {
+ mkdir ${S}
+ cd ${S}
+ unpack ${A}
+}
+
+src_install() {
+
+ # still use the -r3 build file
+ newbin ${FILESDIR}/build-docbook-catalog-${PV}-r3 build-docbook-catalog
+
+ dodir /etc/xml
+ touch ${D}/etc/xml/.keep
+
+ insinto /usr/share/sgml/docbook/xml-dtd-${PV}
+ doins *.dtd *.mod
+ doins docbook.cat
+ insinto /usr/share/sgml/docbook/xml-dtd-${PV}/ent
+ doins ent/*.ent
+
+ dodoc ChangeLog *.txt
+}
+
+pkg_postinst() {
+ 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.1.2/docbookx.dtd" \
+ "/usr/share/sgml/docbook/xml-dtd-4.1.2/docbookx.dtd" \
+ ${CATALOG}
+
+ /usr/bin/xmlcatalog --noout --add "rewriteURI" \
+ "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" \
+ "/usr/share/sgml/docbook/xml-dtd-4.1.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.1.2/docbookx.dtd" \
+ ${CATALOG}
+
+}
diff --git a/app-text/docbook-xml-dtd/files/digest-docbook-xml-dtd-4.1.2-r4 b/app-text/docbook-xml-dtd/files/digest-docbook-xml-dtd-4.1.2-r4
new file mode 100644
index 000000000000..59dfef960c9d
--- /dev/null
+++ b/app-text/docbook-xml-dtd/files/digest-docbook-xml-dtd-4.1.2-r4
@@ -0,0 +1 @@
+MD5 0d5a4a999a2d7b2e77a46bd069301caf docbkx412.zip 75570