wok annotate docbook-xml/receipt @ rev 8604

Removed setting _pkg varible in xorg-libXi-dev receipt.
author Christopher Rogers <slaxemulator@gmail.com>
date Mon Feb 14 04:24:18 2011 +0000 (2011-02-14)
parents d84e95f8e99e
children 484050e8db80
rev   line source
slaxemulator@6983 1 # SliTaz package receipt.
slaxemulator@6983 2
slaxemulator@6983 3 PACKAGE="docbook-xml"
slaxemulator@7625 4 VERSION="4.5"
slaxemulator@6983 5 CATEGORY="development"
slaxemulator@6983 6 SHORT_DESC="General purpose XML Document Type Definition."
slaxemulator@6983 7 MAINTAINER="paul@slitaz.org"
slaxemulator@6983 8 DEPENDS="libxml2-tools libxml2"
slaxemulator@7625 9 BUILD_DEPENDS="$DEPENDS unzip"
slaxemulator@6983 10 SOURCE="docbook"
slaxemulator@7625 11 TARBALL="$PACKAGE-$VERSION.zip"
slaxemulator@6983 12 WEB_SITE="http://www.docbook.org/"
slaxemulator@8479 13 WGET_URL="http://www.docbook.org/xml/$VERSION/$TARBALL"
slaxemulator@6983 14
slaxemulator@6983 15 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@6983 16 genpkg_rules()
slaxemulator@6983 17 {
slaxemulator@7625 18 install -v -d -m755 $fs/usr/share/xml/docbook/xml-dtd-$VERSION &&
slaxemulator@7625 19 install -v -d -m755 $fs/etc/xml &&
slaxemulator@7625 20 chown -R root:root . &&
slaxemulator@7625 21 cp -v -af $src/docbook.cat $src/*.dtd $src/ent/ $src/*.mod \
slaxemulator@7625 22 $fs/usr/share/xml/docbook/xml-dtd-$VERSION
slaxemulator@7625 23
slaxemulator@7625 24
slaxemulator@7625 25 xmlcatalog --noout --create $fs/etc/xml/docbook
slaxemulator@7625 26 xmlcatalog --noout --create $fs/etc/xml/catalog
slaxemulator@7625 27
slaxemulator@7625 28 for DTDVERSION in 4.1.2 4.2 4.3 4.4
slaxemulator@7625 29 do
slaxemulator@7625 30 xmlcatalog --noout --add "public" \
slaxemulator@7625 31 "-//OASIS//DTD DocBook XML V$DTDVERSION//EN" \
slaxemulator@7625 32 "http://www.oasis-open.org/docbook/xml/$DTDVERSION/docbookx.dtd" \
slaxemulator@7625 33 $fs/etc/xml/docbook
slaxemulator@7625 34 xmlcatalog --noout --add "rewriteSystem" \
slaxemulator@7625 35 "http://www.oasis-open.org/docbook/xml/$DTDVERSION" \
slaxemulator@7625 36 "file:///usr/share/xml/docbook/xml-dtd-$VERSION" \
slaxemulator@7625 37 $fs/etc/xml/docbook
slaxemulator@7625 38 xmlcatalog --noout --add "rewriteURI" \
slaxemulator@7625 39 "http://www.oasis-open.org/docbook/xml/$DTDVERSION" \
slaxemulator@7625 40 "file:///usr/share/xml/docbook/xml-dtd-$VERSION" \
slaxemulator@7625 41 $fs/etc/xml/docbook
slaxemulator@7625 42 xmlcatalog --noout --add "delegateSystem" \
slaxemulator@7625 43 "http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \
slaxemulator@7625 44 "file:///etc/xml/docbook" \
slaxemulator@7625 45 $fs/etc/xml/catalog
slaxemulator@7625 46 xmlcatalog --noout --add "delegateURI" \
slaxemulator@7625 47 "http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \
slaxemulator@7625 48 "file:///etc/xml/docbook" \
slaxemulator@7625 49 $fs/etc/xml/catalog
slaxemulator@7625 50 done
slaxemulator@7625 51
slaxemulator@6983 52
slaxemulator@6983 53 }
slaxemulator@7625 54
slaxemulator@6983 55 # Pre and post install commands for Tazpkg.
slaxemulator@6983 56 post_install()
slaxemulator@6983 57 {
slaxemulator@6983 58 echo -n "Processing post-install commands..."
slaxemulator@6983 59
slaxemulator@7625 60 # Add /etc/xml/docbook
slaxemulator@6983 61 install -d -m755 $1/etc/xml
slaxemulator@7625 62 if [ ! -e /etc/xml/docbook ]; then
slaxemulator@7625 63 xmlcatalog --noout --create $1/etc/xml/docbook
slaxemulator@7625 64 fi &&
slaxemulator@7625 65 xmlcatalog --noout --add "public" \
slaxemulator@7625 66 "-//OASIS//DTD DocBook XML V4.5//EN" \
slaxemulator@7625 67 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" \
slaxemulator@7625 68 $1/etc/xml/docbook &&
slaxemulator@7625 69 xmlcatalog --noout --add "public" \
slaxemulator@7625 70 "-//OASIS//DTD DocBook XML CALS Table Model V4.5//EN" \
slaxemulator@7625 71 "file:///usr/share/xml/docbook/xml-dtd-4.5/calstblx.dtd" \
slaxemulator@7625 72 $1/etc/xml/docbook &&
slaxemulator@7625 73 xmlcatalog --noout --add "public" \
slaxemulator@7625 74 "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
slaxemulator@7625 75 "file:///usr/share/xml/docbook/xml-dtd-4.5/soextblx.dtd" \
slaxemulator@7625 76 $1/etc/xml/docbook &&
slaxemulator@7625 77 xmlcatalog --noout --add "public" \
slaxemulator@7625 78 "-//OASIS//ELEMENTS DocBook XML Information Pool V4.5//EN" \
slaxemulator@7625 79 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbpoolx.mod" \
slaxemulator@7625 80 $1/etc/xml/docbook &&
slaxemulator@7625 81 xmlcatalog --noout --add "public" \
slaxemulator@7625 82 "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.5//EN" \
slaxemulator@7625 83 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbhierx.mod" \
slaxemulator@7625 84 $1/etc/xml/docbook &&
slaxemulator@7625 85 xmlcatalog --noout --add "public" \
slaxemulator@7625 86 "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN" \
slaxemulator@7625 87 "file:///usr/share/xml/docbook/xml-dtd-4.5/htmltblx.mod" \
slaxemulator@7625 88 $1/etc/xml/docbook &&
slaxemulator@7625 89 xmlcatalog --noout --add "public" \
slaxemulator@7625 90 "-//OASIS//ENTITIES DocBook XML Notations V4.5//EN" \
slaxemulator@7625 91 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbnotnx.mod" \
slaxemulator@7625 92 $1/etc/xml/docbook &&
slaxemulator@7625 93 xmlcatalog --noout --add "public" \
slaxemulator@7625 94 "-//OASIS//ENTITIES DocBook XML Character Entities V4.5//EN" \
slaxemulator@7625 95 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbcentx.mod" \
slaxemulator@7625 96 $1/etc/xml/docbook &&
slaxemulator@7625 97 xmlcatalog --noout --add "public" \
slaxemulator@7625 98 "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.5//EN" \
slaxemulator@7625 99 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbgenent.mod" \
slaxemulator@7625 100 $1/etc/xml/docbook &&
slaxemulator@7625 101 xmlcatalog --noout --add "rewriteSystem" \
slaxemulator@7625 102 "http://www.oasis-open.org/docbook/xml/4.5" \
slaxemulator@7625 103 "file:///usr/share/xml/docbook/xml-dtd-4.5" \
slaxemulator@7625 104 $1/etc/xml/docbook &&
slaxemulator@7625 105 xmlcatalog --noout --add "rewriteURI" \
slaxemulator@7625 106 "http://www.oasis-open.org/docbook/xml/4.5" \
slaxemulator@7625 107 "file:///usr/share/xml/docbook/xml-dtd-4.5" \
slaxemulator@7625 108 $1/etc/xml/docbook
slaxemulator@6983 109 status
slaxemulator@6983 110 }
slaxemulator@6983 111