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