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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
|
#!/bin/bash
#
# Maintainer: Deposite Pirate <ofni.sknuplatem@etaripd>
source /usr/src/ports/Build/build.sh
NAME=docbook
XSLVER=1.78.0
VERSION=5.0
BUILD=2
DEPENDS=('libxml >= 2.9.0-1' 'libxslt >= 1.1.28-1')
# Description
cat > ${PKG}/install/slack-desc <<EOF
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
$(padd)|-----handy-ruler------------------------------------------------------|
${NAME}: docbook (a semantic markup language for technical documentation)
${NAME}:
${NAME}: It was originally intended for writing technical documents related to
${NAME}: computer hardware and software but it can be used for any other kind
${NAME}: of documentation. As a semantic language, DocBook enables it's users
${NAME}: to create document content in a presentation-neutral form that
${NAME}: captures the logical structure of the content; that content can then
${NAME}: be published in many formats, including HTML, XHTML, EPUB, PDF, man
${NAME}: pages, Web Help and HTML HELP, without requiring users to make any
${NAME}: changes to the source.
${NAME}:
EOF
cat >> ${PKG}/install/doinst.sh <<EOF
if [ -x /usr/bin/xmlcatalog ]; then
if [ ! -e etc/xml/catalog ]; then
/usr/bin/xmlcatalog --noout --create etc/xml/catalog
else
/usr/bin/cp etc/xml/catalog etc/xml/catalog.orig
/usr/bin/xmlcatalog --del "file:///etc/xml/docbook" \
etc/xml/catalog.orig > etc/xml/catalog
fi
CATADD="/usr/bin/xmlcatalog --noout --add"
# docbook
\$CATADD "delegatePublic" "-//OASIS//ENTITIES DocBook XML" \
"file:///etc/xml/docbook" etc/xml/catalog
\$CATADD "delegatePublic" "-//OASIS//DTD DocBook XML" \
"file:///etc/xml/docbook" etc/xml/catalog
\$CATADD "delegateSystem" "http://www.oasis-open.org/docbook/" \
"file:///etc/xml/docbook" etc/xml/catalog
\$CATADD "delegateURI" "http://www.oasis-open.org/docbook/" \
"file:///etc/xml/docbook" etc/xml/catalog
# docbook-xsl
\$CATADD "rewriteSystem" "http://docbook.sourceforge.net/release/xsl/${XSLVER}" \
"/usr/share/xml/docbook/stylesheet" etc/xml/catalog
\$CATADD "rewriteURI" "http://docbook.sourceforge.net/release/xsl/${XSLVER}" \
"/usr/share/xml/docbook/stylesheet" etc/xml/catalog
\$CATADD "rewriteSystem" "http://docbook.sourceforge.net/release/xsl/current" \
"/usr/share/xml/docbook/stylesheet" etc/xml/catalog
\$CATADD "rewriteURI" "http://docbook.sourceforge.net/release/xsl/current" \
"/usr/share/xml/docbook/stylesheet" etc/xml/catalog
fi
EOF
do_install()
{
install.dir ${PKG}${SYS_DIR[share]}/xml/docbook/xml-dtd-${1}/ent
install.dat docbook.cat *.dtd *.mod ${PKG}${SYS_DIR[share]}/xml/docbook/xml-dtd-${1}
install.dat ent/*.ent ${PKG}${SYS_DIR[share]}/xml/docbook/xml-dtd-${1}/ent
}
loc()
{
if [ ! -z "${2}" ]; then
echo "file:///${SYS_DIR[share]}/xml/docbook/xml-dtd-${1}/${2}"
else
echo "file:///${SYS_DIR[share]}/xml/docbook/xml-dtd-${1}"
fi
}
catadd()
{
if [ ! -e ${PKG}${SYS_DIR[etc]}/xml/docbook ]; then
install.dir ${PKG}${SYS_DIR[etc]}/xml
xmlcatalog --noout --create ${PKG}${SYS_DIR[etc]}/xml/docbook
fi
echo "xmlcatalog --noout --add ${1} ${2} ${3} ${PKG}${SYS_DIR[etc]}/xml/docbook"
xmlcatalog --noout --add "${1}" "${2}" "${3}" "${PKG}${SYS_DIR[etc]}/xml/docbook"
}
# Sources
SRCNAME[0]=${NAME}
SRCVERS[0]=${VERSION}
SRCPACK[0]=http://www.docbook.org/xml/${SRCVERS[0]}/${SRCNAME[0]}-${SRCVERS[0]}.zip
SRCCOPY[0]="MIT"
build0()
{
changelog ChangeLog
install.dir ${PKG}${SYS_DIR[etc]}/xml
install.dir ${PKG}${SYS_DIR[share]}/xml/docbook/xml-dtd-${SRCVERS[0]}/{dtd,rng,sch,xsd}
install.dat docbook.nvdl ${PKG}${SYS_DIR[share]}/xml/docbook/xml-dtd-${SRCVERS[0]}
install.dat dtd/* ${PKG}${SYS_DIR[share]}/xml/docbook/xml-dtd-${SRCVERS[0]}/dtd
install.dat rng/* ${PKG}${SYS_DIR[share]}/xml/docbook/xml-dtd-${SRCVERS[0]}/rng
install.dat sch/* ${PKG}${SYS_DIR[share]}/xml/docbook/xml-dtd-${SRCVERS[0]}/sch
install.dat xsd/* ${PKG}${SYS_DIR[share]}/xml/docbook/xml-dtd-${SRCVERS[0]}/xsd
install.dir ${PKG}${SYS_DIR[share]}/xml/docbook/stylesheet/docbook5
install.dat tools/* ${PKG}${SYS_DIR[share]}/xml/docbook/stylesheet/docbook5
catadd "public" "-//OASIS//DTD DocBook XML 5.0//EN" "$(loc '5.0' 'dtd/docbook.dtd')"
catadd "system" "http://www.oasis-open.org/docbook/xml/5.0/dtd/docbook.dtd" "$(loc '5.0' 'dtd/docbook.dtd')"
catadd "system" "http://docbook.org/xml/5.0/dtd/docbook.dtd" "$(loc '5.0' 'dtd/docbook.dtd')"
catadd "uri" "http://www.oasis-open.org/docbook/xml/5.0/rng/docbook.rng" "$(loc '5.0' 'rng/docbook.rng')"
catadd "uri" "http://docbook.org/xml/5.0/rng/docbook.rng" "$(loc '5.0' 'rng/docbook.rng')"
catadd "uri" "http://www.oasis-open.org/docbook/xml/5.0/rng/docbookxi.rng" "$(loc '5.0' 'rng/docbookxi.rng')"
catadd "uri" "http://docbook.org/xml/5.0/rng/docbookxi.rng" "5.0" "rng/docbookxi.rng"
catadd "uri" "http://www.oasis-open.org/docbook/xml/5.0/rng/docbook.rnc" "$(loc '5.0' 'rng/docbook.rnc')"
catadd "uri" "http://docbook.org/xml/5.0/rng/docbook.rnc" "$(loc '5.0' 'rng/docbook.rnc')"
catadd "uri" "http://www.oasis-open.org/docbook/xml/5.0/rng/docbookxi.rnc" "$(loc '5.0' 'rng/docbooxi.rnc')"
catadd "uri" "http://docbook.org/xml/5.0/rng/docbookxi.rnc" "$(loc '5.0' 'docbookxi.rnc')"
catadd "uri" "http://www.oasis-open.org/docbook/xml/5.0/xsd/docbook.xsd" "$(loc '5.0' 'xsd/docbook.xsd')"
catadd "uri" "http://docbook.org/xml/5.0/xsd/docbook.xsd" "$(loc '5.0' 'xsd/docbook.xsd')"
catadd "uri" "http://www.oasis-open.org/docbook/xml/5.0/xsd/docbookxi.xsd" "$(loc '5.0' 'xsd/docbookxi.xsd')"
catadd "uri" "http://docbook.org/xml/5.0/xsd/docbookxi.xsd" "$(loc '5.0' 'xsd/docbookxi.xsd')"
catadd "uri" "http://www.oasis-open.org/docbook/xml/5.0/xsd/xi.xsd" "$(loc '5.0' 'xsd/xi.xsd')"
catadd "uri" "http://docbook.org/xml/5.0/xsd/xi.xsd" "$(loc '5.0' 'xsd/xi.xsd')"
catadd "uri" "http://www.oasis-open.org/docbook/xml/5.0/xsd/xlink.xsd" "$(loc '5.0' 'xsd/xlink.xsd')"
catadd "uri" "http://docbook.org/xml/5.0/xsd/xlink.xsd" "$(loc '5.0' 'xsd/xlink.xsd')"
catadd "uri" "http://www.oasis-open.org/docbook/xml/5.0/xsd/xml.xsd" "$(loc '5.0' 'xsd/xml.xsd')"
catadd "uri" "http://docbook.org/xml/5.0/xsd/xml.xsd" "$(loc '5.0' 'xsd/xml.xsd')"
catadd "uri" "http://www.oasis-open.org/docbook/xml/5.0/sch/docbook.sch" "$(loc '5.0' 'sch/docbook.sch')"
catadd "uri" "http://docbook.org/xml/5.0/sch/docbook.sch" "$(loc '5.0' 'sch/docbook.sch')"
catadd "uri" "http://www.oasis-open.org/docbook/xml/5.0/docbook.nvdl" "$(loc '5.0' 'docbook.nvdl')"
catadd "uri" "http://docbook.org/xml/5.0/docbook.nvdl" "$(loc '5.0' 'docbook.nvdl')"
}
SRCNAME[1]=${NAME}-xml
SRCVERS[1]=4.5
SRCPACK[1]=http://www.docbook.org/xml/${SRCVERS[1]}/${SRCNAME[1]}-${SRCVERS[1]}.zip
SRCCOPY[1]="MIT"
SRCOPTS[1]="nosrcroot"
build1()
{
doc ChangeLog
do_install ${SRCVERS[1]}
catadd "public" "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
catadd "public" "-//OASIS//DTD DocBook XML CALS Table Model V4.5//EN" "$(loc '4.5' 'calstblx.dtd')"
catadd "public" "-//OASIS//DTD XML Exchange Table Model 19990315//EN" "$(loc '4.5' 'soextblx.dtd')"
catadd "public" "-//OASIS//ELEMENTS DocBook XML Information Pool V4.5//EN" "$(loc '4.5' 'dbpoolx.mod')"
catadd "public" "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.5//EN" "$(loc '4.5' 'dbhierx.mod')"
catadd "public" "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN" "$(loc '4.5' 'htmltblx.mod')"
catadd "public" "-//OASIS//ENTITIES DocBook XML Notations V4.5//EN" "$(loc '4.5' 'dbnotnx.mod')"
catadd "public" "-//OASIS//ENTITIES DocBook XML Character Entities V4.5//EN" "$(loc '4.5' 'dbcentx.mod')"
catadd "public" "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.5//EN" "$(loc '4.5' 'dbgenent.mod')"
catadd "rewriteSystem" "http://www.oasis-open.org/docbook/xml/4.5" "$(loc '4.5')"
catadd "rewriteURI" "http://www.oasis-open.org/docbook/xml/4.5" "$(loc '4.5')"
}
SRCNAME[2]=${NAME}-xml
SRCVERS[2]=4.4
SRCPACK[2]=http://www.docbook.org/xml/${SRCVERS[2]}/${SRCNAME[2]}-${SRCVERS[2]}.zip
SRCCOPY[2]="MIT"
SRCOPTS[2]="nosrcroot"
build2()
{
doc ChangeLog
do_install ${SRCVERS[2]}
catadd "public" "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd"
catadd "public" "-//OASIS//DTD DocBook CALS Table Model V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/calstblx.dtd"
catadd "public" "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/htmltblx.mod"
catadd "public" "-//OASIS//DTD XML Exchange Table Model 19990315//EN" "http://www.oasis-open.org/docbook/xml/4.4/soextblx.dtd"
catadd "public" "-//OASIS//ELEMENTS DocBook Information Pool V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/dbpoolx.mod"
catadd "public" "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/dbhierx.mod"
catadd "public" "-//OASIS//ENTITIES DocBook Additional General Entities V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/dbgenent.mod"
catadd "public" "-//OASIS//ENTITIES DocBook Notations V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/dbnotnx.mod"
catadd "public" "-//OASIS//ENTITIES DocBook Character Entities V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/dbcentx.mod"
catadd "rewriteSystem" "http://www.oasis-open.org/docbook/xml/4.4" "$(loc '4.4')"
catadd "rewriteURI" "http://www.oasis-open.org/docbook/xml/4.4" "$(loc '4.4')"
}
SRCNAME[3]=${NAME}-xml
SRCVERS[3]=4.3
SRCPACK[3]=http://www.docbook.org/xml/${SRCVERS[3]}/${SRCNAME[3]}-${SRCVERS[3]}.zip
SRCCOPY[3]="MIT"
SRCOPTS[3]="nosrcroot"
build3()
{
doc ChangeLog
do_install ${SRCVERS[3]}
catadd "public" "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
catadd "public" "-//OASIS//DTD DocBook CALS Table Model V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/calstblx.dtd"
catadd "public" "-//OASIS//DTD XML Exchange Table Model 19990315//EN" "http://www.oasis-open.org/docbook/xml/4.3/soextblx.dtd"
catadd "public" "-//OASIS//ELEMENTS DocBook Information Pool V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/dbpoolx.mod"
catadd "public" "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/dbhierx.mod"
catadd "public" "-//OASIS//ENTITIES DocBook Additional General Entities V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/dbgenent.mod"
catadd "public" "-//OASIS//ENTITIES DocBook Notations V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/dbnotnx.mod"
catadd "public" "-//OASIS//ENTITIES DocBook Character Entities V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/dbcentx.mod"
catadd "rewriteSystem" "http://www.oasis-open.org/docbook/xml/4.3" "$(loc '4.3')"
catadd "rewriteURI" "http://www.oasis-open.org/docbook/xml/4.3" "$(loc '4.3')"
}
SRCNAME[4]=${NAME}-xml
SRCVERS[4]=4.2
SRCPACK[4]=http://www.docbook.org/xml/${SRCVERS[4]}/${SRCNAME[4]}-${SRCVERS[4]}.zip
SRCCOPY[4]="MIT"
SRCOPTS[4]="nosrcroot"
build4()
{
doc ChangeLog
do_install ${SRCVERS[4]}
catadd "public" "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
catadd "public" "-//OASIS//DTD DocBook CALS Table Model V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/calstblx.dtd"
catadd "public" "-//OASIS//DTD XML Exchange Table Model 19990315//EN" "http://www.oasis-open.org/docbook/xml/4.2/soextblx.dtd"
catadd "public" "-//OASIS//ELEMENTS DocBook Information Pool V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/dbpoolx.mod"
catadd "public" "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/dbhierx.mod"
catadd "public" "-//OASIS//ENTITIES DocBook Additional General Entities V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/dbgenent.mod"
catadd "public" "-//OASIS//ENTITIES DocBook Notations V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/dbnotnx.mod"
catadd "public" "-//OASIS//ENTITIES DocBook Character Entities V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/dbcentx.mod"
catadd "rewriteSystem" "http://www.oasis-open.org/docbook/xml/4.2" "$(loc '4.2')"
catadd "rewriteURI" "http://www.oasis-open.org/docbook/xml/4.2" "$(loc '4.2')"
}
SRCNAME[5]=${NAME}-xml
SRCVERS[5]=4.1.2
SRCPACK[5]=http://www.docbook.org/xml/${SRCVERS[4]}/docbkx412.zip
SRCCOPY[5]="MIT"
SRCOPTS[5]="nosrcroot"
build5()
{
doc ChangeLog
do_install ${SRCVERS[5]}
catadd "public" "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"
catadd "public" "-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/calstblx.dtd"
catadd "public" "-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/calstblx.dtd"
catadd "public" "-//OASIS//DTD XML Exchange Table Model 19990315//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/soextblx.dtd"
catadd "public" "-//OASIS//ELEMENTS DocBook XML Information Pool V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/dbpoolx.mod"
catadd "public" "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/dbhierx.mod"
catadd "public" "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/dbgenent.mod"
catadd "public" "-//OASIS//ENTITIES DocBook XML Notations V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/dbnotnx.mod"
catadd "public" "-//OASIS//ENTITIES DocBook XML Character Entities V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/dbcentx.mod"
catadd "rewriteSystem" "http://www.oasis-open.org/docbook/xml/4.1.2" "$(loc '4.1.2')"
catadd "rewriteURI" "http://www.oasis-open.org/docbook/xml/4.1.2" "$(loc '4.1.2')"
}
SRCNAME[6]=${NAME}-xsl
SRCVERS[6]=${XSLVER}
SRCPACK[6]=${URL[sf]}/docbook/docbook-xsl/${SRCVERS[6]}/${SRCNAME[6]}-${SRCVERS[6]}.tar.bz2
build6()
{
doc AUTHORS
license COPYING
changelog NEWS
install.dir ${PKG}${SYS_DIR[share]}/xml/docbook/stylesheet
DIRS="assembly common eclipse epub epub3 fo highlighting html htmlhelp javahelp lib manpages params profiling roundtrip template website xhtml xhtml-1_1 xhtml5"
for dir in ${DIRS}; do
install.dir ${PKG}${SYS_DIR[share]}/xml/docbook/stylesheet/${dir}
install.dat ${dir}/*.{xml,xsl,dtd,ent} ${PKG}${SYS_DIR[share]}/xml/docbook/stylesheet/${dir} 2>/dev/null
done
install.dat VERSION.xsl ${PKG}${SYS_DIR[share]}/xml/docbook/stylesheet
}
SRCNAME[7]=xmlto
SRCVERS[7]=0.0.25
SRCPACK[7]=http://fedorahosted.org/releases/x/m/xmlto/${SRCNAME[7]}-${SRCVERS[7]}.tar.bz2
SRCCOPY[7]="GPL2"
build7()
{
CFLAGS="${FLAGS}" CXXFLAGS="${FLAGS}" \
./configure \
--build="${ARCH}-slackware-linux" \
--disable-dependency-tracking \
--prefix="${SYS_DIR[usr]}" \
--mandir="${SYS_DIR[man]}" \
--sysconfdir="${SYS_DIR[etc]}" \
--libdir="${SYS_DIR[lib]}" \
--localstatedir="${SYS_DIR[var]}" \
--datadir="${SYS_DIR[share]}/application-data" \
--with-webbrowser="links"
# --with-backend="dblatex"
make ${JOBS}
make install DESTDIR="${PKG}"
doc AUTHORS THANKS
changelog NEWS
}
|