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