wok view docbook-xml/receipt @ rev 16012

syslinux/iso2exe: access both local and isofs namespaces
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Mar 04 21:00:29 2014 +0000 (2014-03-04)
parents 74d11c359b51
children 9e01bc6321ea
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 cd $src
19 mkdir -p $DESTDIR/usr/share/xml/docbook/xml-dtd-${VERSION}
20 cp -dRf docbook.cat *.dtd ent/ *.mod \
21 $DESTDIR/usr/share/xml/docbook/xml-dtd-${VERSION}
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs
29 cp -a $install/usr $fs
30 }
32 post_install()
33 {
34 root=$1
35 [ -d $root/etc/xml ] || mkdir -p $root/etc/xml
36 if [ -f $root/etc/xml/docbook-xml ]; then
37 xmlcatalog --noout $root/etc/xml/docbook-xml
38 else
39 xmlcatalog --noout --create $root/etc/xml/docbook-xml
40 fi
41 echo -n "Processing post-install commands..."
43 # V4.1.2
44 xmlcatalog --noout --add "public" \
45 "-//OASIS//DTD DocBook XML V4.1.2//EN" \
46 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" \
47 "$root/etc/xml/docbook-xml"
48 xmlcatalog --noout --add "public" \
49 "-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" \
50 "http://www.oasis-open.org/docbook/xml/4.1.2/calstblx.dtd" \
51 "$root/etc/xml/docbook-xml"
52 xmlcatalog --noout --add "public" \
53 "-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" \
54 "http://www.oasis-open.org/docbook/xml/4.1.2/calstblx.dtd" \
55 "$root/etc/xml/docbook-xml"
56 xmlcatalog --noout --add "public" \
57 "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
58 "http://www.oasis-open.org/docbook/xml/4.1.2/soextblx.dtd" \
59 "$root/etc/xml/docbook-xml"
60 xmlcatalog --noout --add "public" \
61 "-//OASIS//ELEMENTS DocBook XML Information Pool V4.1.2//EN" \
62 "http://www.oasis-open.org/docbook/xml/4.1.2/dbpoolx.mod" \
63 "$root/etc/xml/docbook-xml"
64 xmlcatalog --noout --add "public" \
65 "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.1.2//EN" \
66 "http://www.oasis-open.org/docbook/xml/4.1.2/dbhierx.mod" \
67 "$root/etc/xml/docbook-xml"
68 xmlcatalog --noout --add "public" \
69 "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.1.2//EN" \
70 "http://www.oasis-open.org/docbook/xml/4.1.2/dbgenent.mod" \
71 "$root/etc/xml/docbook-xml"
72 xmlcatalog --noout --add "public" \
73 "-//OASIS//ENTITIES DocBook XML Notations V4.1.2//EN" \
74 "http://www.oasis-open.org/docbook/xml/4.1.2/dbnotnx.mod" \
75 "${DESTDIR}/etc/xml/docbook-xml"
76 xmlcatalog --noout --add "public" \
77 "-//OASIS//ENTITIES DocBook XML Character Entities V4.1.2//EN" \
78 "http://www.oasis-open.org/docbook/xml/4.1.2/dbcentx.mod" \
79 "$root/etc/xml/docbook-xml"
80 xmlcatalog --noout --add "rewriteSystem" \
81 "http://www.oasis-open.org/docbook/xml/4.1.2" \
82 "file:///usr/share/xml/docbook/xml-dtd-4.1.2" \
83 "$root/etc/xml/docbook-xml"
84 xmlcatalog --noout --add "rewriteURI" \
85 "http://www.oasis-open.org/docbook/xml/4.1.2" \
86 "file:///usr/share/xml/docbook/xml-dtd-4.1.2" \
87 "$root/etc/xml/docbook-xml"
89 # V4.2
90 xmlcatalog --noout --add "public" \
91 "-//OASIS//DTD DocBook XML V4.2//EN" \
92 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" \
93 "$root/etc/xml/docbook-xml"
94 xmlcatalog --noout --add "public" \
95 "-//OASIS//DTD DocBook CALS Table Model V4.2//EN" \
96 "http://www.oasis-open.org/docbook/xml/4.2/calstblx.dtd" \
97 "$root/etc/xml/docbook-xml"
98 xmlcatalog --noout --add "public" \
99 "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
100 "http://www.oasis-open.org/docbook/xml/4.2/soextblx.dtd" \
101 "$root/etc/xml/docbook-xml"
102 xmlcatalog --noout --add "public" \
103 "-//OASIS//ELEMENTS DocBook Information Pool V4.2//EN" \
104 "http://www.oasis-open.org/docbook/xml/4.2/dbpoolx.mod" \
105 "$root/etc/xml/docbook-xml"
106 xmlcatalog --noout --add "public" \
107 "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.2//EN" \
108 "http://www.oasis-open.org/docbook/xml/4.2/dbhierx.mod" \
109 "$root/etc/xml/docbook-xml"
110 xmlcatalog --noout --add "public" \
111 "-//OASIS//ENTITIES DocBook Additional General Entities V4.2//EN" \
112 "http://www.oasis-open.org/docbook/xml/4.2/dbgenent.mod" \
113 "$root/etc/xml/docbook-xml"
114 xmlcatalog --noout --add "public" \
115 "-//OASIS//ENTITIES DocBook Notations V4.2//EN" \
116 "http://www.oasis-open.org/docbook/xml/4.2/dbnotnx.mod" \
117 "$root/etc/xml/docbook-xml"
118 xmlcatalog --noout --add "public" \
119 "-//OASIS//ENTITIES DocBook Character Entities V4.2//EN" \
120 "http://www.oasis-open.org/docbook/xml/4.2/dbcentx.mod" \
121 "$root/etc/xml/docbook-xml"
122 xmlcatalog --noout --add "rewriteSystem" \
123 "http://www.oasis-open.org/docbook/xml/4.2" \
124 "file:///usr/share/xml/docbook/xml-dtd-4.2" \
125 "$root/etc/xml/docbook-xml"
126 xmlcatalog --noout --add "rewriteURI" \
127 "http://www.oasis-open.org/docbook/xml/4.2" \
128 "file:///usr/share/xml/docbook/xml-dtd-4.2" \
129 "$root/etc/xml/docbook-xml"
131 # V4.3
132 xmlcatalog --noout --add "public" \
133 "-//OASIS//DTD DocBook XML V4.3//EN" \
134 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" \
135 "$root/etc/xml/docbook-xml"
136 xmlcatalog --noout --add "public" \
137 "-//OASIS//DTD DocBook CALS Table Model V4.3//EN" \
138 "http://www.oasis-open.org/docbook/xml/4.3/calstblx.dtd" \
139 "$root/etc/xml/docbook-xml"
140 xmlcatalog --noout --add "public" \
141 "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
142 "http://www.oasis-open.org/docbook/xml/4.3/soextblx.dtd" \
143 "$root/etc/xml/docbook-xml"
144 xmlcatalog --noout --add "public" \
145 "-//OASIS//ELEMENTS DocBook Information Pool V4.3//EN" \
146 "http://www.oasis-open.org/docbook/xml/4.3/dbpoolx.mod" \
147 "$root/etc/xml/docbook-xml"
148 xmlcatalog --noout --add "public" \
149 "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.3//EN" \
150 "http://www.oasis-open.org/docbook/xml/4.3/dbhierx.mod" \
151 "$root/etc/xml/docbook-xml"
152 xmlcatalog --noout --add "public" \
153 "-//OASIS//ENTITIES DocBook Additional General Entities V4.3//EN" \
154 "http://www.oasis-open.org/docbook/xml/4.3/dbgenent.mod" \
155 "$root/etc/xml/docbook-xml"
156 xmlcatalog --noout --add "public" \
157 "-//OASIS//ENTITIES DocBook Notations V4.3//EN" \
158 "http://www.oasis-open.org/docbook/xml/4.3/dbnotnx.mod" \
159 "$root/etc/xml/docbook-xml"
160 xmlcatalog --noout --add "public" \
161 "-//OASIS//ENTITIES DocBook Character Entities V4.3//EN" \
162 "http://www.oasis-open.org/docbook/xml/4.3/dbcentx.mod" \
163 "$root/etc/xml/docbook-xml"
164 xmlcatalog --noout --add "rewriteSystem" \
165 "http://www.oasis-open.org/docbook/xml/4.3" \
166 "file:///usr/share/xml/docbook/xml-dtd-4.3" \
167 "$root/etc/xml/docbook-xml"
168 xmlcatalog --noout --add "rewriteURI" \
169 "http://www.oasis-open.org/docbook/xml/4.3" \
170 "file:///usr/share/xml/docbook/xml-dtd-4.3" \
171 "$root/etc/xml/docbook-xml"
173 # V4.4
174 xmlcatalog --noout --add "public" \
175 "-//OASIS//DTD DocBook XML V4.4//EN" \
176 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" \
177 "$root/etc/xml/docbook-xml"
178 xmlcatalog --noout --add "public" \
179 "-//OASIS//DTD DocBook CALS Table Model V4.4//EN" \
180 "http://www.oasis-open.org/docbook/xml/4.4/calstblx.dtd" \
181 "$root/etc/xml/docbook-xml"
182 xmlcatalog --noout --add "public" \
183 "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.4//EN" \
184 "http://www.oasis-open.org/docbook/xml/4.4/htmltblx.mod" \
185 "$root/etc/xml/docbook-xml"
186 xmlcatalog --noout --add "public" \
187 "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
188 "http://www.oasis-open.org/docbook/xml/4.4/soextblx.dtd" \
189 "$root/etc/xml/docbook-xml"
190 xmlcatalog --noout --add "public" \
191 "-//OASIS//ELEMENTS DocBook Information Pool V4.4//EN" \
192 "http://www.oasis-open.org/docbook/xml/4.4/dbpoolx.mod" \
193 "$root/etc/xml/docbook-xml"
194 xmlcatalog --noout --add "public" \
195 "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.4//EN" \
196 "http://www.oasis-open.org/docbook/xml/4.4/dbhierx.mod" \
197 "$root/etc/xml/docbook-xml"
198 xmlcatalog --noout --add "public" \
199 "-//OASIS//ENTITIES DocBook Additional General Entities V4.4//EN" \
200 "http://www.oasis-open.org/docbook/xml/4.4/dbgenent.mod" \
201 "$root/etc/xml/docbook-xml"
202 xmlcatalog --noout --add "public" \
203 "-//OASIS//ENTITIES DocBook Notations V4.4//EN" \
204 "http://www.oasis-open.org/docbook/xml/4.4/dbnotnx.mod" \
205 "$root/etc/xml/docbook-xml"
206 xmlcatalog --noout --add "public" \
207 "-//OASIS//ENTITIES DocBook Character Entities V4.4//EN" \
208 "http://www.oasis-open.org/docbook/xml/4.4/dbcentx.mod" \
209 "$root/etc/xml/docbook-xml"
210 xmlcatalog --noout --add "rewriteSystem" \
211 "http://www.oasis-open.org/docbook/xml/4.4" \
212 "file:///usr/share/xml/docbook/xml-dtd-4.4" \
213 "$root/etc/xml/docbook-xml"
214 xmlcatalog --noout --add "rewriteURI" \
215 "http://www.oasis-open.org/docbook/xml/4.4" \
216 "file:///usr/share/xml/docbook/xml-dtd-4.4" \
217 "$root/etc/xml/docbook-xml"
219 # V4.5
220 xmlcatalog --noout --add "public" \
221 "-//OASIS//DTD DocBook XML V4.5//EN" \
222 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" \
223 "$root/etc/xml/docbook-xml"
224 xmlcatalog --noout --add "public" \
225 "-//OASIS//DTD DocBook XML CALS Table Model V4.5//EN" \
226 "file:///usr/share/xml/docbook/xml-dtd-4.5/calstblx.dtd" \
227 "$root/etc/xml/docbook-xml"
228 xmlcatalog --noout --add "public" \
229 "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
230 "file:///usr/share/xml/docbook/xml-dtd-4.5/soextblx.dtd" \
231 "$root/etc/xml/docbook-xml"
232 xmlcatalog --noout --add "public" \
233 "-//OASIS//ELEMENTS DocBook XML Information Pool V4.5//EN" \
234 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbpoolx.mod" \
235 "$root/etc/xml/docbook-xml"
236 xmlcatalog --noout --add "public" \
237 "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.5//EN" \
238 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbhierx.mod" \
239 "$root/etc/xml/docbook-xml"
240 xmlcatalog --noout --add "public" \
241 "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN" \
242 "file:///usr/share/xml/docbook/xml-dtd-4.5/htmltblx.mod" \
243 "$root/etc/xml/docbook-xml"
244 xmlcatalog --noout --add "public" \
245 "-//OASIS//ENTITIES DocBook XML Notations V4.5//EN" \
246 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbnotnx.mod" \
247 "$root/etc/xml/docbook-xml"
248 xmlcatalog --noout --add "public" \
249 "-//OASIS//ENTITIES DocBook XML Character Entities V4.5//EN" \
250 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbcentx.mod" \
251 "$root/etc/xml/docbook-xml"
252 xmlcatalog --noout --add "public" \
253 "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.5//EN" \
254 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbgenent.mod" \
255 "$root/etc/xml/docbook-xml"
256 xmlcatalog --noout --add "rewriteSystem" \
257 "http://www.oasis-open.org/docbook/xml/4.5" \
258 "file:///usr/share/xml/docbook/xml-dtd-4.5" \
259 "$root/etc/xml/docbook-xml"
260 xmlcatalog --noout --add "rewriteURI" \
261 "http://www.oasis-open.org/docbook/xml/4.5" \
262 "file:///usr/share/xml/docbook/xml-dtd-4.5" \
263 "$root/etc/xml/docbook-xml"
265 if [ -f $root/etc/xml/catalog ]; then
266 xmlcatalog --noout $root/etc/xml/catalog
267 else
268 xmlcatalog --noout --create $root/etc/xml/catalog
269 fi
270 xmlcatalog --noout --add "delegatePublic" \
271 "-//OASIS//ENTITIES DocBook XML" \
272 "file:///etc/xml/docbook-xml" \
273 "$root/etc/xml/catalog"
274 xmlcatalog --noout --add "delegatePublic" \
275 "-//OASIS//DTD DocBook XML" \
276 "file:///etc/xml/docbook-xml" \
277 "$root/etc/xml/catalog"
278 xmlcatalog --noout --add "delegateSystem" \
279 "http://www.oasis-open.org/docbook/" \
280 "file:///etc/xml/docbook-xml" \
281 "$root/etc/xml/catalog"
282 xmlcatalog --noout --add "delegateURI" \
283 "http://www.oasis-open.org/docbook/" \
284 "file:///etc/xml/docbook-xml" \
285 "$root/etc/xml/catalog"
286 }
288 post_remove()
289 {
290 root=$1
291 xmlcatalog --noout --del file:///etc/xml/docbook-xml $root/etc/xml/catalog
292 }