wok-next view docbook-xml/receipt @ rev 9829
Up: apache to 2.2.18.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun May 15 12:03:57 2011 +0000 (2011-05-15) |
parents | 484050e8db80 |
children | eb8067417980 |
line source
1 # SliTaz package receipt.
3 PACKAGE="docbook-xml"
4 VERSION="4.5"
5 CATEGORY="development"
6 SHORT_DESC="A widely used XML scheme for writing documentation and help. (version 4.5)"
7 MAINTAINER="slaxemulator@gmail.com"
8 DEPENDS="libxml2-tools libxml2 docbook-xml-412 docbook-xml-42 docbook-xml-43 docbook-xml-44"
9 TARBALL="${PACKAGE}-${VERSION}.zip"
10 WEB_SITE="http://www.oasis-open.org/docbook/"
11 WGET_URL="http://www.docbook.org/xml/$VERSION/$TARBALL"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src
17 mkdir -p $DESTDIR/usr/share/xml/docbook/xml-dtd-${VERSION}
18 cp -dRf docbook.cat *.dtd ent/ *.mod \
19 $DESTDIR/usr/share/xml/docbook/xml-dtd-${VERSION}
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs
27 cp -a $_pkg/usr $fs
28 }
30 post_install()
31 {
32 root=$1
33 [ -d $root/etc/xml ] || mkdir -p $root/etc/xml
34 if [ -f $root/etc/xml/docbook-xml ]; then
35 xmlcatalog --noout $root/etc/xml/docbook-xml
36 else
37 xmlcatalog --noout --create $root/etc/xml/docbook-xml
38 fi
39 echo -n "Processing post-install commands..."
41 # V4.1.2
42 xmlcatalog --noout --add "public" \
43 "-//OASIS//DTD DocBook XML V4.1.2//EN" \
44 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" \
45 "$root/etc/xml/docbook-xml"
46 xmlcatalog --noout --add "public" \
47 "-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" \
48 "http://www.oasis-open.org/docbook/xml/4.1.2/calstblx.dtd" \
49 "$root/etc/xml/docbook-xml"
50 xmlcatalog --noout --add "public" \
51 "-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" \
52 "http://www.oasis-open.org/docbook/xml/4.1.2/calstblx.dtd" \
53 "$root/etc/xml/docbook-xml"
54 xmlcatalog --noout --add "public" \
55 "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
56 "http://www.oasis-open.org/docbook/xml/4.1.2/soextblx.dtd" \
57 "$root/etc/xml/docbook-xml"
58 xmlcatalog --noout --add "public" \
59 "-//OASIS//ELEMENTS DocBook XML Information Pool V4.1.2//EN" \
60 "http://www.oasis-open.org/docbook/xml/4.1.2/dbpoolx.mod" \
61 "$root/etc/xml/docbook-xml"
62 xmlcatalog --noout --add "public" \
63 "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.1.2//EN" \
64 "http://www.oasis-open.org/docbook/xml/4.1.2/dbhierx.mod" \
65 "$root/etc/xml/docbook-xml"
66 xmlcatalog --noout --add "public" \
67 "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.1.2//EN" \
68 "http://www.oasis-open.org/docbook/xml/4.1.2/dbgenent.mod" \
69 "$root/etc/xml/docbook-xml"
70 xmlcatalog --noout --add "public" \
71 "-//OASIS//ENTITIES DocBook XML Notations V4.1.2//EN" \
72 "http://www.oasis-open.org/docbook/xml/4.1.2/dbnotnx.mod" \
73 "${DESTDIR}/etc/xml/docbook-xml"
74 xmlcatalog --noout --add "public" \
75 "-//OASIS//ENTITIES DocBook XML Character Entities V4.1.2//EN" \
76 "http://www.oasis-open.org/docbook/xml/4.1.2/dbcentx.mod" \
77 "$root/etc/xml/docbook-xml"
78 xmlcatalog --noout --add "rewriteSystem" \
79 "http://www.oasis-open.org/docbook/xml/4.1.2" \
80 "file:///usr/share/xml/docbook/xml-dtd-4.1.2" \
81 "$root/etc/xml/docbook-xml"
82 xmlcatalog --noout --add "rewriteURI" \
83 "http://www.oasis-open.org/docbook/xml/4.1.2" \
84 "file:///usr/share/xml/docbook/xml-dtd-4.1.2" \
85 "$root/etc/xml/docbook-xml"
87 # V4.2
88 xmlcatalog --noout --add "public" \
89 "-//OASIS//DTD DocBook XML V4.2//EN" \
90 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" \
91 "$root/etc/xml/docbook-xml"
92 xmlcatalog --noout --add "public" \
93 "-//OASIS//DTD DocBook CALS Table Model V4.2//EN" \
94 "http://www.oasis-open.org/docbook/xml/4.2/calstblx.dtd" \
95 "$root/etc/xml/docbook-xml"
96 xmlcatalog --noout --add "public" \
97 "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
98 "http://www.oasis-open.org/docbook/xml/4.2/soextblx.dtd" \
99 "$root/etc/xml/docbook-xml"
100 xmlcatalog --noout --add "public" \
101 "-//OASIS//ELEMENTS DocBook Information Pool V4.2//EN" \
102 "http://www.oasis-open.org/docbook/xml/4.2/dbpoolx.mod" \
103 "$root/etc/xml/docbook-xml"
104 xmlcatalog --noout --add "public" \
105 "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.2//EN" \
106 "http://www.oasis-open.org/docbook/xml/4.2/dbhierx.mod" \
107 "$root/etc/xml/docbook-xml"
108 xmlcatalog --noout --add "public" \
109 "-//OASIS//ENTITIES DocBook Additional General Entities V4.2//EN" \
110 "http://www.oasis-open.org/docbook/xml/4.2/dbgenent.mod" \
111 "$root/etc/xml/docbook-xml"
112 xmlcatalog --noout --add "public" \
113 "-//OASIS//ENTITIES DocBook Notations V4.2//EN" \
114 "http://www.oasis-open.org/docbook/xml/4.2/dbnotnx.mod" \
115 "$root/etc/xml/docbook-xml"
116 xmlcatalog --noout --add "public" \
117 "-//OASIS//ENTITIES DocBook Character Entities V4.2//EN" \
118 "http://www.oasis-open.org/docbook/xml/4.2/dbcentx.mod" \
119 "$root/etc/xml/docbook-xml"
120 xmlcatalog --noout --add "rewriteSystem" \
121 "http://www.oasis-open.org/docbook/xml/4.2" \
122 "file:///usr/share/xml/docbook/xml-dtd-4.2" \
123 "$root/etc/xml/docbook-xml"
124 xmlcatalog --noout --add "rewriteURI" \
125 "http://www.oasis-open.org/docbook/xml/4.2" \
126 "file:///usr/share/xml/docbook/xml-dtd-4.2" \
127 "$root/etc/xml/docbook-xml"
129 # V4.3
130 xmlcatalog --noout --add "public" \
131 "-//OASIS//DTD DocBook XML V4.3//EN" \
132 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" \
133 "$root/etc/xml/docbook-xml"
134 xmlcatalog --noout --add "public" \
135 "-//OASIS//DTD DocBook CALS Table Model V4.3//EN" \
136 "http://www.oasis-open.org/docbook/xml/4.3/calstblx.dtd" \
137 "$root/etc/xml/docbook-xml"
138 xmlcatalog --noout --add "public" \
139 "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
140 "http://www.oasis-open.org/docbook/xml/4.3/soextblx.dtd" \
141 "$root/etc/xml/docbook-xml"
142 xmlcatalog --noout --add "public" \
143 "-//OASIS//ELEMENTS DocBook Information Pool V4.3//EN" \
144 "http://www.oasis-open.org/docbook/xml/4.3/dbpoolx.mod" \
145 "$root/etc/xml/docbook-xml"
146 xmlcatalog --noout --add "public" \
147 "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.3//EN" \
148 "http://www.oasis-open.org/docbook/xml/4.3/dbhierx.mod" \
149 "$root/etc/xml/docbook-xml"
150 xmlcatalog --noout --add "public" \
151 "-//OASIS//ENTITIES DocBook Additional General Entities V4.3//EN" \
152 "http://www.oasis-open.org/docbook/xml/4.3/dbgenent.mod" \
153 "$root/etc/xml/docbook-xml"
154 xmlcatalog --noout --add "public" \
155 "-//OASIS//ENTITIES DocBook Notations V4.3//EN" \
156 "http://www.oasis-open.org/docbook/xml/4.3/dbnotnx.mod" \
157 "$root/etc/xml/docbook-xml"
158 xmlcatalog --noout --add "public" \
159 "-//OASIS//ENTITIES DocBook Character Entities V4.3//EN" \
160 "http://www.oasis-open.org/docbook/xml/4.3/dbcentx.mod" \
161 "$root/etc/xml/docbook-xml"
162 xmlcatalog --noout --add "rewriteSystem" \
163 "http://www.oasis-open.org/docbook/xml/4.3" \
164 "file:///usr/share/xml/docbook/xml-dtd-4.3" \
165 "$root/etc/xml/docbook-xml"
166 xmlcatalog --noout --add "rewriteURI" \
167 "http://www.oasis-open.org/docbook/xml/4.3" \
168 "file:///usr/share/xml/docbook/xml-dtd-4.3" \
169 "$root/etc/xml/docbook-xml"
171 # V4.4
172 xmlcatalog --noout --add "public" \
173 "-//OASIS//DTD DocBook XML V4.4//EN" \
174 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" \
175 "$root/etc/xml/docbook-xml"
176 xmlcatalog --noout --add "public" \
177 "-//OASIS//DTD DocBook CALS Table Model V4.4//EN" \
178 "http://www.oasis-open.org/docbook/xml/4.4/calstblx.dtd" \
179 "$root/etc/xml/docbook-xml"
180 xmlcatalog --noout --add "public" \
181 "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.4//EN" \
182 "http://www.oasis-open.org/docbook/xml/4.4/htmltblx.mod" \
183 "$root/etc/xml/docbook-xml"
184 xmlcatalog --noout --add "public" \
185 "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
186 "http://www.oasis-open.org/docbook/xml/4.4/soextblx.dtd" \
187 "$root/etc/xml/docbook-xml"
188 xmlcatalog --noout --add "public" \
189 "-//OASIS//ELEMENTS DocBook Information Pool V4.4//EN" \
190 "http://www.oasis-open.org/docbook/xml/4.4/dbpoolx.mod" \
191 "$root/etc/xml/docbook-xml"
192 xmlcatalog --noout --add "public" \
193 "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.4//EN" \
194 "http://www.oasis-open.org/docbook/xml/4.4/dbhierx.mod" \
195 "$root/etc/xml/docbook-xml"
196 xmlcatalog --noout --add "public" \
197 "-//OASIS//ENTITIES DocBook Additional General Entities V4.4//EN" \
198 "http://www.oasis-open.org/docbook/xml/4.4/dbgenent.mod" \
199 "$root/etc/xml/docbook-xml"
200 xmlcatalog --noout --add "public" \
201 "-//OASIS//ENTITIES DocBook Notations V4.4//EN" \
202 "http://www.oasis-open.org/docbook/xml/4.4/dbnotnx.mod" \
203 "$root/etc/xml/docbook-xml"
204 xmlcatalog --noout --add "public" \
205 "-//OASIS//ENTITIES DocBook Character Entities V4.4//EN" \
206 "http://www.oasis-open.org/docbook/xml/4.4/dbcentx.mod" \
207 "$root/etc/xml/docbook-xml"
208 xmlcatalog --noout --add "rewriteSystem" \
209 "http://www.oasis-open.org/docbook/xml/4.4" \
210 "file:///usr/share/xml/docbook/xml-dtd-4.4" \
211 "$root/etc/xml/docbook-xml"
212 xmlcatalog --noout --add "rewriteURI" \
213 "http://www.oasis-open.org/docbook/xml/4.4" \
214 "file:///usr/share/xml/docbook/xml-dtd-4.4" \
215 "$root/etc/xml/docbook-xml"
217 # V4.5
218 xmlcatalog --noout --add "public" \
219 "-//OASIS//DTD DocBook XML V4.5//EN" \
220 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" \
221 "$root/etc/xml/docbook-xml"
222 xmlcatalog --noout --add "public" \
223 "-//OASIS//DTD DocBook XML CALS Table Model V4.5//EN" \
224 "file:///usr/share/xml/docbook/xml-dtd-4.5/calstblx.dtd" \
225 "$root/etc/xml/docbook-xml"
226 xmlcatalog --noout --add "public" \
227 "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
228 "file:///usr/share/xml/docbook/xml-dtd-4.5/soextblx.dtd" \
229 "$root/etc/xml/docbook-xml"
230 xmlcatalog --noout --add "public" \
231 "-//OASIS//ELEMENTS DocBook XML Information Pool V4.5//EN" \
232 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbpoolx.mod" \
233 "$root/etc/xml/docbook-xml"
234 xmlcatalog --noout --add "public" \
235 "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.5//EN" \
236 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbhierx.mod" \
237 "$root/etc/xml/docbook-xml"
238 xmlcatalog --noout --add "public" \
239 "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN" \
240 "file:///usr/share/xml/docbook/xml-dtd-4.5/htmltblx.mod" \
241 "$root/etc/xml/docbook-xml"
242 xmlcatalog --noout --add "public" \
243 "-//OASIS//ENTITIES DocBook XML Notations V4.5//EN" \
244 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbnotnx.mod" \
245 "$root/etc/xml/docbook-xml"
246 xmlcatalog --noout --add "public" \
247 "-//OASIS//ENTITIES DocBook XML Character Entities V4.5//EN" \
248 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbcentx.mod" \
249 "$root/etc/xml/docbook-xml"
250 xmlcatalog --noout --add "public" \
251 "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.5//EN" \
252 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbgenent.mod" \
253 "$root/etc/xml/docbook-xml"
254 xmlcatalog --noout --add "rewriteSystem" \
255 "http://www.oasis-open.org/docbook/xml/4.5" \
256 "file:///usr/share/xml/docbook/xml-dtd-4.5" \
257 "$root/etc/xml/docbook-xml"
258 xmlcatalog --noout --add "rewriteURI" \
259 "http://www.oasis-open.org/docbook/xml/4.5" \
260 "file:///usr/share/xml/docbook/xml-dtd-4.5" \
261 "$root/etc/xml/docbook-xml"
263 if [ -f $root/etc/xml/catalog ]; then
264 xmlcatalog --noout $root/etc/xml/catalog
265 else
266 xmlcatalog --noout --create $root/etc/xml/catalog
267 fi
268 xmlcatalog --noout --add "delegatePublic" \
269 "-//OASIS//ENTITIES DocBook XML" \
270 "file:///etc/xml/docbook-xml" \
271 "$root/etc/xml/catalog"
272 xmlcatalog --noout --add "delegatePublic" \
273 "-//OASIS//DTD DocBook XML" \
274 "file:///etc/xml/docbook-xml" \
275 "$root/etc/xml/catalog"
276 xmlcatalog --noout --add "delegateSystem" \
277 "http://www.oasis-open.org/docbook/" \
278 "file:///etc/xml/docbook-xml" \
279 "$root/etc/xml/catalog"
280 xmlcatalog --noout --add "delegateURI" \
281 "http://www.oasis-open.org/docbook/" \
282 "file:///etc/xml/docbook-xml" \
283 "$root/etc/xml/catalog"
284 }
286 post_remove()
287 {
288 root=$1
289 xmlcatalog --noout --del file:///etc/xml/docbook-xml $root/etc/xml/catalog
290 }