wok-next view docbook-xml/receipt @ rev 8561
imported patch get/linux
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Sun Feb 13 22:57:56 2011 +0100 (2011-02-13) |
parents | d84e95f8e99e |
children | 484050e8db80 |
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
25 xmlcatalog --noout --create $fs/etc/xml/docbook
26 xmlcatalog --noout --create $fs/etc/xml/catalog
28 for DTDVERSION in 4.1.2 4.2 4.3 4.4
29 do
30 xmlcatalog --noout --add "public" \
31 "-//OASIS//DTD DocBook XML V$DTDVERSION//EN" \
32 "http://www.oasis-open.org/docbook/xml/$DTDVERSION/docbookx.dtd" \
33 $fs/etc/xml/docbook
34 xmlcatalog --noout --add "rewriteSystem" \
35 "http://www.oasis-open.org/docbook/xml/$DTDVERSION" \
36 "file:///usr/share/xml/docbook/xml-dtd-$VERSION" \
37 $fs/etc/xml/docbook
38 xmlcatalog --noout --add "rewriteURI" \
39 "http://www.oasis-open.org/docbook/xml/$DTDVERSION" \
40 "file:///usr/share/xml/docbook/xml-dtd-$VERSION" \
41 $fs/etc/xml/docbook
42 xmlcatalog --noout --add "delegateSystem" \
43 "http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \
44 "file:///etc/xml/docbook" \
45 $fs/etc/xml/catalog
46 xmlcatalog --noout --add "delegateURI" \
47 "http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \
48 "file:///etc/xml/docbook" \
49 $fs/etc/xml/catalog
50 done
53 }
55 # Pre and post install commands for Tazpkg.
56 post_install()
57 {
58 echo -n "Processing post-install commands..."
60 # Add /etc/xml/docbook
61 install -d -m755 $1/etc/xml
62 if [ ! -e /etc/xml/docbook ]; then
63 xmlcatalog --noout --create $1/etc/xml/docbook
64 fi &&
65 xmlcatalog --noout --add "public" \
66 "-//OASIS//DTD DocBook XML V4.5//EN" \
67 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" \
68 $1/etc/xml/docbook &&
69 xmlcatalog --noout --add "public" \
70 "-//OASIS//DTD DocBook XML CALS Table Model V4.5//EN" \
71 "file:///usr/share/xml/docbook/xml-dtd-4.5/calstblx.dtd" \
72 $1/etc/xml/docbook &&
73 xmlcatalog --noout --add "public" \
74 "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
75 "file:///usr/share/xml/docbook/xml-dtd-4.5/soextblx.dtd" \
76 $1/etc/xml/docbook &&
77 xmlcatalog --noout --add "public" \
78 "-//OASIS//ELEMENTS DocBook XML Information Pool V4.5//EN" \
79 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbpoolx.mod" \
80 $1/etc/xml/docbook &&
81 xmlcatalog --noout --add "public" \
82 "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.5//EN" \
83 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbhierx.mod" \
84 $1/etc/xml/docbook &&
85 xmlcatalog --noout --add "public" \
86 "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN" \
87 "file:///usr/share/xml/docbook/xml-dtd-4.5/htmltblx.mod" \
88 $1/etc/xml/docbook &&
89 xmlcatalog --noout --add "public" \
90 "-//OASIS//ENTITIES DocBook XML Notations V4.5//EN" \
91 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbnotnx.mod" \
92 $1/etc/xml/docbook &&
93 xmlcatalog --noout --add "public" \
94 "-//OASIS//ENTITIES DocBook XML Character Entities V4.5//EN" \
95 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbcentx.mod" \
96 $1/etc/xml/docbook &&
97 xmlcatalog --noout --add "public" \
98 "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.5//EN" \
99 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbgenent.mod" \
100 $1/etc/xml/docbook &&
101 xmlcatalog --noout --add "rewriteSystem" \
102 "http://www.oasis-open.org/docbook/xml/4.5" \
103 "file:///usr/share/xml/docbook/xml-dtd-4.5" \
104 $1/etc/xml/docbook &&
105 xmlcatalog --noout --add "rewriteURI" \
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 status
110 }