wok-6.x view docbook-xml/receipt @ rev 25176

updated python-formalchemy (1.5.5 -> 1.5.6)
author Hans-G?nter Theisgen
date Fri Jul 01 17:52:21 2022 +0100 (2022-07-01)
parents f51604223163
children 73f36875e5a7
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 LICENSE="MIT"
9 TARBALL="$PACKAGE-$VERSION.zip"
10 WEB_SITE="https://docbook.org/"
11 WGET_URL="http://www.docbook.org/xml/$VERSION/$TARBALL"
13 DEPENDS="libxml2-tools libxml2 docbook-xml-412 docbook-xml-42 docbook-xml-43 docbook-xml-44"
15 # What is the latest version available today?
16 current_version()
17 {
18 wget -O - http://www.docbook.org/xml/ 2>/dev/null | \
19 sed 's|<li>|&\n|g' | sed '/>4\.5/!d;/[0-9][Cb]/d;s|.*">||;s|/<.*||' | sort -Vr | sed q
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 mkdir -p $DESTDIR/usr/share/xml/docbook/xml-dtd-$VERSION
26 cp -dRf docbook.cat *.dtd ent/ *.mod \
27 $DESTDIR/usr/share/xml/docbook/xml-dtd-$VERSION
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs
34 cp -a $install/usr $fs
35 }
37 post_install()
38 {
39 [ -d "$1/etc/xml" ] || mkdir -p "$1/etc/xml"
40 if [ -f "$1/etc/xml/docbook-xml" ]; then
41 chroot "$1/" xmlcatalog --noout /etc/xml/docbook-xml
42 else
43 chroot "$1/" xmlcatalog --noout --create /etc/xml/docbook-xml
44 fi
46 if [ "$1" ]; then
47 mv -f "$1/etc/resolv.conf" "$1/etc/recolv.conf.$$" 2> /dev/null
48 cp /etc/resolv.conf "$1/etc/resolv.conf"
49 fi
51 # V4.1.2
52 chroot "$1/" xmlcatalog --noout --add "public" \
53 "-//OASIS//DTD DocBook XML V4.1.2//EN" \
54 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" \
55 "/etc//xml/docbook-xml"
56 chroot "$1/" xmlcatalog --noout --add "public" \
57 "-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" \
58 "http://www.oasis-open.org/docbook/xml/4.1.2/calstblx.dtd" \
59 "/etc/xml/docbook-xml"
60 chroot "$1/" xmlcatalog --noout --add "public" \
61 "-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" \
62 "http://www.oasis-open.org/docbook/xml/4.1.2/calstblx.dtd" \
63 "/etc/xml/docbook-xml"
64 chroot "$1/" xmlcatalog --noout --add "public" \
65 "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
66 "http://www.oasis-open.org/docbook/xml/4.1.2/soextblx.dtd" \
67 "/etc/xml/docbook-xml"
68 chroot "$1/" xmlcatalog --noout --add "public" \
69 "-//OASIS//ELEMENTS DocBook XML Information Pool V4.1.2//EN" \
70 "http://www.oasis-open.org/docbook/xml/4.1.2/dbpoolx.mod" \
71 "/etc/xml/docbook-xml"
72 chroot "$1/" xmlcatalog --noout --add "public" \
73 "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.1.2//EN" \
74 "http://www.oasis-open.org/docbook/xml/4.1.2/dbhierx.mod" \
75 "/etc/xml/docbook-xml"
76 chroot "$1/" xmlcatalog --noout --add "public" \
77 "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.1.2//EN" \
78 "http://www.oasis-open.org/docbook/xml/4.1.2/dbgenent.mod" \
79 "/etc/xml/docbook-xml"
80 chroot "$1/" xmlcatalog --noout --add "public" \
81 "-//OASIS//ENTITIES DocBook XML Notations V4.1.2//EN" \
82 "http://www.oasis-open.org/docbook/xml/4.1.2/dbnotnx.mod" \
83 "/etc/xml/docbook-xml"
84 chroot "$1/" xmlcatalog --noout --add "public" \
85 "-//OASIS//ENTITIES DocBook XML Character Entities V4.1.2//EN" \
86 "http://www.oasis-open.org/docbook/xml/4.1.2/dbcentx.mod" \
87 "/etc/xml/docbook-xml"
88 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
89 "http://www.oasis-open.org/docbook/xml/4.1.2" \
90 "file:///usr/share/xml/docbook/xml-dtd-4.1.2" \
91 "/etc/xml/docbook-xml"
92 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
93 "http://www.oasis-open.org/docbook/xml/4.1.2" \
94 "file:///usr/share/xml/docbook/xml-dtd-4.1.2" \
95 "/etc/xml/docbook-xml"
97 # V4.2
98 chroot "$1/" xmlcatalog --noout --add "public" \
99 "-//OASIS//DTD DocBook XML V4.2//EN" \
100 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" \
101 "/etc/xml/docbook-xml"
102 chroot "$1/" xmlcatalog --noout --add "public" \
103 "-//OASIS//DTD DocBook CALS Table Model V4.2//EN" \
104 "http://www.oasis-open.org/docbook/xml/4.2/calstblx.dtd" \
105 "/etc/xml/docbook-xml"
106 chroot "$1/" xmlcatalog --noout --add "public" \
107 "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
108 "http://www.oasis-open.org/docbook/xml/4.2/soextblx.dtd" \
109 "/etc/xml/docbook-xml"
110 chroot "$1/" xmlcatalog --noout --add "public" \
111 "-//OASIS//ELEMENTS DocBook Information Pool V4.2//EN" \
112 "http://www.oasis-open.org/docbook/xml/4.2/dbpoolx.mod" \
113 "/etc/xml/docbook-xml"
114 chroot "$1/" xmlcatalog --noout --add "public" \
115 "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.2//EN" \
116 "http://www.oasis-open.org/docbook/xml/4.2/dbhierx.mod" \
117 "/etc/xml/docbook-xml"
118 chroot "$1/" xmlcatalog --noout --add "public" \
119 "-//OASIS//ENTITIES DocBook Additional General Entities V4.2//EN" \
120 "http://www.oasis-open.org/docbook/xml/4.2/dbgenent.mod" \
121 "/etc/xml/docbook-xml"
122 chroot "$1/" xmlcatalog --noout --add "public" \
123 "-//OASIS//ENTITIES DocBook Notations V4.2//EN" \
124 "http://www.oasis-open.org/docbook/xml/4.2/dbnotnx.mod" \
125 "/etc/xml/docbook-xml"
126 chroot "$1/" xmlcatalog --noout --add "public" \
127 "-//OASIS//ENTITIES DocBook Character Entities V4.2//EN" \
128 "http://www.oasis-open.org/docbook/xml/4.2/dbcentx.mod" \
129 "/etc/xml/docbook-xml"
130 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
131 "http://www.oasis-open.org/docbook/xml/4.2" \
132 "file:///usr/share/xml/docbook/xml-dtd-4.2" \
133 "/etc/xml/docbook-xml"
134 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
135 "http://www.oasis-open.org/docbook/xml/4.2" \
136 "file:///usr/share/xml/docbook/xml-dtd-4.2" \
137 "/etc/xml/docbook-xml"
139 # V4.3
140 chroot "$1/" xmlcatalog --noout --add "public" \
141 "-//OASIS//DTD DocBook XML V4.3//EN" \
142 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" \
143 "/etc/xml/docbook-xml"
144 chroot "$1/" xmlcatalog --noout --add "public" \
145 "-//OASIS//DTD DocBook CALS Table Model V4.3//EN" \
146 "http://www.oasis-open.org/docbook/xml/4.3/calstblx.dtd" \
147 "/etc/xml/docbook-xml"
148 chroot "$1/" xmlcatalog --noout --add "public" \
149 "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
150 "http://www.oasis-open.org/docbook/xml/4.3/soextblx.dtd" \
151 "/etc/xml/docbook-xml"
152 chroot "$1/" xmlcatalog --noout --add "public" \
153 "-//OASIS//ELEMENTS DocBook Information Pool V4.3//EN" \
154 "http://www.oasis-open.org/docbook/xml/4.3/dbpoolx.mod" \
155 "/etc/xml/docbook-xml"
156 chroot "$1/" xmlcatalog --noout --add "public" \
157 "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.3//EN" \
158 "http://www.oasis-open.org/docbook/xml/4.3/dbhierx.mod" \
159 "/etc/xml/docbook-xml"
160 chroot "$1/" xmlcatalog --noout --add "public" \
161 "-//OASIS//ENTITIES DocBook Additional General Entities V4.3//EN" \
162 "http://www.oasis-open.org/docbook/xml/4.3/dbgenent.mod" \
163 "/etc/xml/docbook-xml"
164 chroot "$1/" xmlcatalog --noout --add "public" \
165 "-//OASIS//ENTITIES DocBook Notations V4.3//EN" \
166 "http://www.oasis-open.org/docbook/xml/4.3/dbnotnx.mod" \
167 "/etc/xml/docbook-xml"
168 chroot "$1/" xmlcatalog --noout --add "public" \
169 "-//OASIS//ENTITIES DocBook Character Entities V4.3//EN" \
170 "http://www.oasis-open.org/docbook/xml/4.3/dbcentx.mod" \
171 "/etc/xml/docbook-xml"
172 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
173 "http://www.oasis-open.org/docbook/xml/4.3" \
174 "file:///usr/share/xml/docbook/xml-dtd-4.3" \
175 "/etc/xml/docbook-xml"
176 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
177 "http://www.oasis-open.org/docbook/xml/4.3" \
178 "file:///usr/share/xml/docbook/xml-dtd-4.3" \
179 "/etc/xml/docbook-xml"
181 # V4.4
182 chroot "$1/" xmlcatalog --noout --add "public" \
183 "-//OASIS//DTD DocBook XML V4.4//EN" \
184 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" \
185 "/etc/xml/docbook-xml"
186 chroot "$1/" xmlcatalog --noout --add "public" \
187 "-//OASIS//DTD DocBook CALS Table Model V4.4//EN" \
188 "http://www.oasis-open.org/docbook/xml/4.4/calstblx.dtd" \
189 "/etc/xml/docbook-xml"
190 chroot "$1/" xmlcatalog --noout --add "public" \
191 "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.4//EN" \
192 "http://www.oasis-open.org/docbook/xml/4.4/htmltblx.mod" \
193 "/etc/xml/docbook-xml"
194 chroot "$1/" xmlcatalog --noout --add "public" \
195 "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
196 "http://www.oasis-open.org/docbook/xml/4.4/soextblx.dtd" \
197 "/etc/xml/docbook-xml"
198 chroot "$1/" xmlcatalog --noout --add "public" \
199 "-//OASIS//ELEMENTS DocBook Information Pool V4.4//EN" \
200 "http://www.oasis-open.org/docbook/xml/4.4/dbpoolx.mod" \
201 "/etc/xml/docbook-xml"
202 chroot "$1/" xmlcatalog --noout --add "public" \
203 "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.4//EN" \
204 "http://www.oasis-open.org/docbook/xml/4.4/dbhierx.mod" \
205 "/etc/xml/docbook-xml"
206 chroot "$1/" xmlcatalog --noout --add "public" \
207 "-//OASIS//ENTITIES DocBook Additional General Entities V4.4//EN" \
208 "http://www.oasis-open.org/docbook/xml/4.4/dbgenent.mod" \
209 "/etc/xml/docbook-xml"
210 chroot "$1/" xmlcatalog --noout --add "public" \
211 "-//OASIS//ENTITIES DocBook Notations V4.4//EN" \
212 "http://www.oasis-open.org/docbook/xml/4.4/dbnotnx.mod" \
213 "/etc/xml/docbook-xml"
214 chroot "$1/" xmlcatalog --noout --add "public" \
215 "-//OASIS//ENTITIES DocBook Character Entities V4.4//EN" \
216 "http://www.oasis-open.org/docbook/xml/4.4/dbcentx.mod" \
217 "/etc/xml/docbook-xml"
218 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
219 "http://www.oasis-open.org/docbook/xml/4.4" \
220 "file:///usr/share/xml/docbook/xml-dtd-4.4" \
221 "/etc/xml/docbook-xml"
222 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
223 "http://www.oasis-open.org/docbook/xml/4.4" \
224 "file:///usr/share/xml/docbook/xml-dtd-4.4" \
225 "/etc/xml/docbook-xml"
227 # V4.5
228 chroot "$1/" xmlcatalog --noout --add "public" \
229 "-//OASIS//DTD DocBook XML V4.5//EN" \
230 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" \
231 "/etc/xml/docbook-xml"
232 chroot "$1/" xmlcatalog --noout --add "public" \
233 "-//OASIS//DTD DocBook XML CALS Table Model V4.5//EN" \
234 "file:///usr/share/xml/docbook/xml-dtd-4.5/calstblx.dtd" \
235 "/etc/xml/docbook-xml"
236 chroot "$1/" xmlcatalog --noout --add "public" \
237 "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
238 "file:///usr/share/xml/docbook/xml-dtd-4.5/soextblx.dtd" \
239 "/etc/xml/docbook-xml"
240 chroot "$1/" xmlcatalog --noout --add "public" \
241 "-//OASIS//ELEMENTS DocBook XML Information Pool V4.5//EN" \
242 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbpoolx.mod" \
243 "/etc/xml/docbook-xml"
244 chroot "$1/" xmlcatalog --noout --add "public" \
245 "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.5//EN" \
246 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbhierx.mod" \
247 "/etc/xml/docbook-xml"
248 chroot "$1/" xmlcatalog --noout --add "public" \
249 "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN" \
250 "file:///usr/share/xml/docbook/xml-dtd-4.5/htmltblx.mod" \
251 "/etc/xml/docbook-xml"
252 chroot "$1/" xmlcatalog --noout --add "public" \
253 "-//OASIS//ENTITIES DocBook XML Notations V4.5//EN" \
254 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbnotnx.mod" \
255 "/etc/xml/docbook-xml"
256 chroot "$1/" xmlcatalog --noout --add "public" \
257 "-//OASIS//ENTITIES DocBook XML Character Entities V4.5//EN" \
258 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbcentx.mod" \
259 "/etc/xml/docbook-xml"
260 chroot "$1/" xmlcatalog --noout --add "public" \
261 "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.5//EN" \
262 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbgenent.mod" \
263 "/etc/xml/docbook-xml"
264 chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
265 "http://www.oasis-open.org/docbook/xml/4.5" \
266 "file:///usr/share/xml/docbook/xml-dtd-4.5" \
267 "/etc/xml/docbook-xml"
268 chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
269 "http://www.oasis-open.org/docbook/xml/4.5" \
270 "file:///usr/share/xml/docbook/xml-dtd-4.5" \
271 "/etc/xml/docbook-xml"
273 if [ -f "$1/etc/xml/catalog" ]; then
274 chroot "$1/" xmlcatalog --noout /etc/xml/catalog
275 else
276 chroot "$1/" xmlcatalog --noout --create /etc/xml/catalog
277 fi
279 chroot "$1/" xmlcatalog --noout --add "delegatePublic" \
280 "-//OASIS//ENTITIES DocBook XML" \
281 "file:///etc/xml/docbook-xml" \
282 "/etc/xml/catalog"
283 chroot "$1/" xmlcatalog --noout --add "delegatePublic" \
284 "-//OASIS//DTD DocBook XML" \
285 "file:///etc/xml/docbook-xml" \
286 "/etc/xml/catalog"
287 chroot "$1/" xmlcatalog --noout --add "delegateSystem" \
288 "http://www.oasis-open.org/docbook/" \
289 "file:///etc/xml/docbook-xml" \
290 "/etc/xml/catalog"
291 chroot "$1/" xmlcatalog --noout --add "delegateURI" \
292 "http://www.oasis-open.org/docbook/" \
293 "file:///etc/xml/docbook-xml" \
294 "/etc/xml/catalog"
295 if [ -n "$1" ]; then
296 mv -f "$1/etc/resolv.conf.$$" "$1/etc/recolv.conf" 2> /dev/null
297 fi
298 }
300 post_remove()
301 {
302 xmlcatalog --noout --del file:///etc/xml/docbook-xml "$1/etc/xml/catalog"
303 }