blob: 91233b6dad44e70c0a766db3db3a4473607d0ebd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
name: docbook-xml
kind: chunk
build-system: manual
install-commands:
- install -v -d -m755 "$DESTDIR$PREFIX/share/xml/docbook/xml-dtd-4.5"
- install -v -d -m755 "$DESTDIR/etc/xml"
- |
cp -v -af docbook.cat *.dtd ent/ *.mod \
"$DESTDIR$PREFIX/share/xml/docbook/xml-dtd-4.5"
post-install-commands:
- |
# Create (or update) and populate the "$DESTDIR/etc/xml/docbook" catalog file
if [ ! -e /etc/xml/docbook ]; then
xmlcatalog --noout --create "$DESTDIR/etc/xml/docbook"
else
# Copy the existing catalog so we can update it
cp /etc/xml/docbook "$DESTDIR/etc/xml/docbook"
fi
- |
xmlcatalog --noout --add "public" \
"-//OASIS//DTD DocBook XML V4.5//EN" \
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" \
"$DESTDIR/etc/xml/docbook"
- |
xmlcatalog --noout --add "public" \
"-//OASIS//DTD DocBook XML CALS Table Model V4.5//EN" \
"file:///usr/share/xml/docbook/xml-dtd-4.5/calstblx.dtd" \
"$DESTDIR/etc/xml/docbook"
- |
xmlcatalog --noout --add "public" \
"-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
"file:///usr/share/xml/docbook/xml-dtd-4.5/soextblx.dtd" \
"$DESTDIR/etc/xml/docbook"
- |
xmlcatalog --noout --add "public" \
"-//OASIS//ELEMENTS DocBook XML Information Pool V4.5//EN" \
"file:///usr/share/xml/docbook/xml-dtd-4.5/dbpoolx.mod" \
"$DESTDIR/etc/xml/docbook"
- |
xmlcatalog --noout --add "public" \
"-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.5//EN" \
"file:///usr/share/xml/docbook/xml-dtd-4.5/dbhierx.mod" \
"$DESTDIR/etc/xml/docbook"
- |
xmlcatalog --noout --add "public" \
"-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN" \
"file:///usr/share/xml/docbook/xml-dtd-4.5/htmltblx.mod" \
"$DESTDIR/etc/xml/docbook"
- |
xmlcatalog --noout --add "public" \
"-//OASIS//ENTITIES DocBook XML Notations V4.5//EN" \
"file:///usr/share/xml/docbook/xml-dtd-4.5/dbnotnx.mod" \
"$DESTDIR/etc/xml/docbook"
- |
xmlcatalog --noout --add "public" \
"-//OASIS//ENTITIES DocBook XML Character Entities V4.5//EN" \
"file:///usr/share/xml/docbook/xml-dtd-4.5/dbcentx.mod" \
"$DESTDIR/etc/xml/docbook"
- |
xmlcatalog --noout --add "public" \
"-//OASIS//ENTITIES DocBook XML Additional General Entities V4.5//EN" \ "file:///usr/share/xml/docbook/xml-dtd-4.5/dbgenent.mod" \
"$DESTDIR/etc/xml/docbook"
- |
xmlcatalog --noout --add "rewriteSystem" \
"http://www.oasis-open.org/docbook/xml/4.5" \
"file:///usr/share/xml/docbook/xml-dtd-4.5" \
"$DESTDIR/etc/xml/docbook"
- |
xmlcatalog --noout --add "rewriteURI" \
"http://www.oasis-open.org/docbook/xml/4.5" \
"file:///usr/share/xml/docbook/xml-dtd-4.5" \
"$DESTDIR/etc/xml/docbook"
- |
# Create (or update) and populate the "$DESTDIR/etc/xml/catalog" catalog file
if [ ! -e /etc/xml/catalog ]; then
echo 'Creating new xml catalog'
xmlcatalog --noout --create "$DESTDIR/etc/xml/catalog"
else
# Copy the existing catalog so we can update it
cp /etc/xml/catalog "$DESTDIR/etc/xml/catalog"
fi
- |
xmlcatalog --noout --add "delegatePublic" \
"-//OASIS//ENTITIES DocBook XML" \
"file:///etc/xml/docbook" \
"$DESTDIR/etc/xml/catalog"
- |
xmlcatalog --noout --add "delegatePublic" \
"-//OASIS//DTD DocBook XML" \
"file:///etc/xml/docbook" \
"$DESTDIR/etc/xml/catalog"
- |
xmlcatalog --noout --add "delegateSystem" \
"http://www.oasis-open.org/docbook/" \
"file:///etc/xml/docbook" \
"$DESTDIR/etc/xml/catalog"
- |
xmlcatalog --noout --add "delegateURI" \
"http://www.oasis-open.org/docbook/" \
"file:///etc/xml/docbook" \
"$DESTDIR/etc/xml/catalog"
|