wok-4.x annotate docbook-xml/receipt @ rev 9331
Fix: docbook-xml (we need 4.2 DTD file to cook kdelibs)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Mar 18 13:16:28 2011 +0100 (2011-03-18) |
parents | b01f45f72f9c |
children | 74d11c359b51 |
rev | line source |
---|---|
slaxemulator@6983 | 1 # SliTaz package receipt. |
slaxemulator@6983 | 2 |
slaxemulator@6983 | 3 PACKAGE="docbook-xml" |
slaxemulator@7625 | 4 VERSION="4.5" |
slaxemulator@6983 | 5 CATEGORY="development" |
slaxemulator@6983 | 6 SHORT_DESC="General purpose XML Document Type Definition." |
slaxemulator@6983 | 7 MAINTAINER="paul@slitaz.org" |
slaxemulator@6983 | 8 DEPENDS="libxml2-tools libxml2" |
slaxemulator@7625 | 9 BUILD_DEPENDS="$DEPENDS unzip" |
slaxemulator@6983 | 10 SOURCE="docbook" |
slaxemulator@7625 | 11 TARBALL="$PACKAGE-$VERSION.zip" |
slaxemulator@6983 | 12 WEB_SITE="http://www.docbook.org/" |
slaxemulator@8479 | 13 WGET_URL="http://www.docbook.org/xml/$VERSION/$TARBALL" |
slaxemulator@6983 | 14 |
slaxemulator@6983 | 15 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@6983 | 16 genpkg_rules() |
slaxemulator@6983 | 17 { |
slaxemulator@7625 | 18 install -v -d -m755 $fs/usr/share/xml/docbook/xml-dtd-$VERSION && |
slaxemulator@7625 | 19 install -v -d -m755 $fs/etc/xml && |
slaxemulator@7625 | 20 chown -R root:root . && |
slaxemulator@7625 | 21 cp -v -af $src/docbook.cat $src/*.dtd $src/ent/ $src/*.mod \ |
slaxemulator@7625 | 22 $fs/usr/share/xml/docbook/xml-dtd-$VERSION |
slaxemulator@7625 | 23 |
pankso@9331 | 24 # 4.2 files needed to build at least kdelibs. |
pankso@9331 | 25 mkdir -p $fs/usr/share/xml/docbook/xml-dtd-4.2 |
pankso@9331 | 26 cd $fs/usr/share/xml/docbook/xml-dtd-4.2 |
pankso@9331 | 27 wget http://www.docbook.org/xml/4.2/docbook-xml-4.2.zip |
pankso@9331 | 28 unzip docbook-xml-4.2.zip && rm docbook-xml-4.2.zip |
pankso@9331 | 29 cd $WOK/$PACKAGE |
slaxemulator@7625 | 30 |
slaxemulator@7625 | 31 xmlcatalog --noout --create $fs/etc/xml/docbook |
slaxemulator@7625 | 32 xmlcatalog --noout --create $fs/etc/xml/catalog |
slaxemulator@7625 | 33 |
pankso@9331 | 34 for DTDVERSION in 4.1.2 4.5 4.3 4.4 |
slaxemulator@7625 | 35 do |
slaxemulator@7625 | 36 xmlcatalog --noout --add "public" \ |
slaxemulator@7625 | 37 "-//OASIS//DTD DocBook XML V$DTDVERSION//EN" \ |
slaxemulator@7625 | 38 "http://www.oasis-open.org/docbook/xml/$DTDVERSION/docbookx.dtd" \ |
slaxemulator@7625 | 39 $fs/etc/xml/docbook |
slaxemulator@7625 | 40 xmlcatalog --noout --add "rewriteSystem" \ |
slaxemulator@7625 | 41 "http://www.oasis-open.org/docbook/xml/$DTDVERSION" \ |
slaxemulator@7625 | 42 "file:///usr/share/xml/docbook/xml-dtd-$VERSION" \ |
slaxemulator@7625 | 43 $fs/etc/xml/docbook |
slaxemulator@7625 | 44 xmlcatalog --noout --add "rewriteURI" \ |
slaxemulator@7625 | 45 "http://www.oasis-open.org/docbook/xml/$DTDVERSION" \ |
slaxemulator@7625 | 46 "file:///usr/share/xml/docbook/xml-dtd-$VERSION" \ |
slaxemulator@7625 | 47 $fs/etc/xml/docbook |
slaxemulator@7625 | 48 xmlcatalog --noout --add "delegateSystem" \ |
slaxemulator@7625 | 49 "http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \ |
slaxemulator@7625 | 50 "file:///etc/xml/docbook" \ |
slaxemulator@7625 | 51 $fs/etc/xml/catalog |
slaxemulator@7625 | 52 xmlcatalog --noout --add "delegateURI" \ |
slaxemulator@7625 | 53 "http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \ |
slaxemulator@7625 | 54 "file:///etc/xml/docbook" \ |
slaxemulator@7625 | 55 $fs/etc/xml/catalog |
slaxemulator@7625 | 56 done |
slaxemulator@6983 | 57 } |
slaxemulator@7625 | 58 |
slaxemulator@6983 | 59 # Pre and post install commands for Tazpkg. |
slaxemulator@6983 | 60 post_install() |
slaxemulator@6983 | 61 { |
slaxemulator@6983 | 62 echo -n "Processing post-install commands..." |
slaxemulator@6983 | 63 |
slaxemulator@7625 | 64 # Add /etc/xml/docbook |
slaxemulator@6983 | 65 install -d -m755 $1/etc/xml |
slaxemulator@7625 | 66 if [ ! -e /etc/xml/docbook ]; then |
slaxemulator@7625 | 67 xmlcatalog --noout --create $1/etc/xml/docbook |
slaxemulator@7625 | 68 fi && |
slaxemulator@7625 | 69 xmlcatalog --noout --add "public" \ |
slaxemulator@7625 | 70 "-//OASIS//DTD DocBook XML V4.5//EN" \ |
slaxemulator@7625 | 71 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" \ |
slaxemulator@7625 | 72 $1/etc/xml/docbook && |
slaxemulator@7625 | 73 xmlcatalog --noout --add "public" \ |
slaxemulator@7625 | 74 "-//OASIS//DTD DocBook XML CALS Table Model V4.5//EN" \ |
slaxemulator@7625 | 75 "file:///usr/share/xml/docbook/xml-dtd-4.5/calstblx.dtd" \ |
slaxemulator@7625 | 76 $1/etc/xml/docbook && |
slaxemulator@7625 | 77 xmlcatalog --noout --add "public" \ |
slaxemulator@7625 | 78 "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \ |
slaxemulator@7625 | 79 "file:///usr/share/xml/docbook/xml-dtd-4.5/soextblx.dtd" \ |
slaxemulator@7625 | 80 $1/etc/xml/docbook && |
slaxemulator@7625 | 81 xmlcatalog --noout --add "public" \ |
slaxemulator@7625 | 82 "-//OASIS//ELEMENTS DocBook XML Information Pool V4.5//EN" \ |
slaxemulator@7625 | 83 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbpoolx.mod" \ |
slaxemulator@7625 | 84 $1/etc/xml/docbook && |
slaxemulator@7625 | 85 xmlcatalog --noout --add "public" \ |
slaxemulator@7625 | 86 "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.5//EN" \ |
slaxemulator@7625 | 87 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbhierx.mod" \ |
slaxemulator@7625 | 88 $1/etc/xml/docbook && |
slaxemulator@7625 | 89 xmlcatalog --noout --add "public" \ |
slaxemulator@7625 | 90 "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN" \ |
slaxemulator@7625 | 91 "file:///usr/share/xml/docbook/xml-dtd-4.5/htmltblx.mod" \ |
slaxemulator@7625 | 92 $1/etc/xml/docbook && |
slaxemulator@7625 | 93 xmlcatalog --noout --add "public" \ |
slaxemulator@7625 | 94 "-//OASIS//ENTITIES DocBook XML Notations V4.5//EN" \ |
slaxemulator@7625 | 95 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbnotnx.mod" \ |
slaxemulator@7625 | 96 $1/etc/xml/docbook && |
slaxemulator@7625 | 97 xmlcatalog --noout --add "public" \ |
slaxemulator@7625 | 98 "-//OASIS//ENTITIES DocBook XML Character Entities V4.5//EN" \ |
slaxemulator@7625 | 99 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbcentx.mod" \ |
slaxemulator@7625 | 100 $1/etc/xml/docbook && |
slaxemulator@7625 | 101 xmlcatalog --noout --add "public" \ |
slaxemulator@7625 | 102 "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.5//EN" \ |
slaxemulator@7625 | 103 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbgenent.mod" \ |
slaxemulator@7625 | 104 $1/etc/xml/docbook && |
slaxemulator@7625 | 105 xmlcatalog --noout --add "rewriteSystem" \ |
slaxemulator@7625 | 106 "http://www.oasis-open.org/docbook/xml/4.5" \ |
slaxemulator@7625 | 107 "file:///usr/share/xml/docbook/xml-dtd-4.5" \ |
slaxemulator@7625 | 108 $1/etc/xml/docbook && |
slaxemulator@7625 | 109 xmlcatalog --noout --add "rewriteURI" \ |
slaxemulator@7625 | 110 "http://www.oasis-open.org/docbook/xml/4.5" \ |
slaxemulator@7625 | 111 "file:///usr/share/xml/docbook/xml-dtd-4.5" \ |
slaxemulator@7625 | 112 $1/etc/xml/docbook |
slaxemulator@6983 | 113 status |
slaxemulator@6983 | 114 } |
slaxemulator@6983 | 115 |