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