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

Made sure that /usr/share folder is made in gnome-doc-utils-dev. Otherwise /usr/share/aclocal folder becomes /usr/share folder.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed Dec 08 11:04:39 2010 +0000 (2010-12-08)
parents
children
line source
1 # SliTaz package receipt.
3 PACKAGE="docbook-xml-44"
4 VERSION="4.4"
5 CATEGORY="development"
6 SHORT_DESC="A widely used XML scheme for writing documentation and help (version 4.4)"
7 MAINTAINER="slaxemulator@gmail.com"
8 DEPENDS="libxml2-tools libxml2"
9 BUILD_DEPENDS="unzip libxml2-tools"
10 WEB_SITE="http://www.oasis-open.org/docbook/"
11 SOURCE="docbook-xml"
12 WGET="http://www.docbook.org/xml/$VERSION/$SOURCE-$VERSION.zip"
14 # Rules to gen a SliTaz package suitable for Tazpkg.
15 genpkg_rules()
16 {
17 TARBALL=$SOURCES_REPOSITORY/$SOURCE-$VERSION.zip
18 mkdir -p $PACKAGE-$VERSION
19 pushd $PACKAGE-$VERSION
20 fs=$WOK/$PACKAGE/taz/$PACKAGE-$VERSION/fs
21 if [ -f $TARBALL ]; then
22 mkdir -p $fs/usr/share/xml/docbook/xml-dtd-$VERSION
23 unzip $TARBALL
24 cp -dRf docbook.cat *.dtd ent/ *.mod \
25 "$fs/usr/share/xml/docbook/xml-dtd-$VERSION/" || return 1
26 else
27 [ -L /usr/bin/wget ] && tazpkg get-install wget --forced
28 wget -O $TARBALL "$WGET"
29 mkdir -p $fs/usr/share/xml/docbook/xml-dtd-$VERSION
30 unzip $TARBALL
31 cp -dRf docbook.cat *.dtd ent/ *.mod \
32 "$fs/usr/share/xml/docbook/xml-dtd-$VERSION/" || return 1
34 fi
35 mkdir -p "$fs/etc/xml"
36 xmlcatalog --noout --create "$fs/etc/xml/docbook-xml" || return 1
38 # V4.4
39 xmlcatalog --noout --add "public" \
40 "-//OASIS//DTD DocBook XML V$VERSION//EN" \
41 "http://www.oasis-open.org/docbook/xml/$VERSION/docbookx.dtd" \
42 "$fs/etc/xml/docbook-xml"
44 xmlcatalog --noout --add "public" \
45 "-//OASIS//DTD DocBook XML CALS Table Model V$VERSION//EN" \
46 "http://www.oasis-open.org/docbook/xml/$VERSION/calstblx.dtd" \
47 "$fs/etc/xml/docbook-xml"
49 xmlcatalog --noout --add "public" \
50 "-//OASIS//DTD DocBook XML CALS Table Model V$VERSION//EN" \
51 "http://www.oasis-open.org/docbook/xml/$VERSION/calstblx.dtd" \
52 "$fs/etc/xml/docbook-xml"
54 xmlcatalog --noout --add "public" \
55 "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
56 "http://www.oasis-open.org/docbook/xml/$VERSION/soextblx.dtd" \
57 "$fs/etc/xml/docbook-xml"
59 xmlcatalog --noout --add "public" \
60 "-//OASIS//ELEMENTS DocBook XML Information Pool V$VERSION//EN" \
61 "http://www.oasis-open.org/docbook/xml/$VERSION/dbpoolx.mod" \
62 "$fs/etc/xml/docbook-xml"
64 xmlcatalog --noout --add "public" \
65 "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V$VERSION//EN" \
66 "http://www.oasis-open.org/docbook/xml/$VERSION/dbhierx.mod" \
67 "$fs/etc/xml/docbook-xml"
69 xmlcatalog --noout --add "public" \
70 "-//OASIS//ENTITIES DocBook XML Additional General Entities V$VERSION//EN" \
71 "http://www.oasis-open.org/docbook/xml/$VERSION/dbgenent.mod" \
72 "$fs/etc/xml/docbook-xml"
74 xmlcatalog --noout --add "public" \
75 "-//OASIS//ENTITIES DocBook XML Notations V$VERSION//EN" \
76 "http://www.oasis-open.org/docbook/xml/$VERSION/dbnotnx.mod" \
77 "$fs/etc/xml/docbook-xml"
79 xmlcatalog --noout --add "public" \
80 "-//OASIS//ENTITIES DocBook XML Character Entities V$VERSION//EN" \
81 "http://www.oasis-open.org/docbook/xml/$VERSION/dbcentx.mod" \
82 "$fs/etc/xml/docbook-xml"
84 xmlcatalog --noout --add "rewriteSystem" \
85 "http://www.oasis-open.org/docbook/xml/$VERSION" \
86 "file:///usr/share/xml/docbook/xml-dtd-$VERSION" \
87 "$fs/etc/xml/docbook-xml"
89 xmlcatalog --noout --add "rewriteURI" \
90 "http://www.oasis-open.org/docbook/xml/$VERSION" \
91 "file:///usr/share/xml/docbook/xml-dtd-$VERSION" \
92 "$fs/etc/xml/docbook-xml"
93 }