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