wok-current rev 7625
Down: docbook-xml to 4.5. This is good thing since it now build new packages that depend on gnome-doc-utils fine. Don't update to 5.0.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Dec 12 15:53:13 2010 +0000 (2010-12-12) |
parents | 8e7c178e1fc8 |
children | a847af1cd7d9 |
files | docbook-xml/receipt |
line diff
1.1 --- a/docbook-xml/receipt Sun Dec 12 14:18:42 2010 +0000 1.2 +++ b/docbook-xml/receipt Sun Dec 12 15:53:13 2010 +0000 1.3 @@ -1,70 +1,119 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="docbook-xml" 1.7 -VERSION="5.0" 1.8 +VERSION="4.5" 1.9 CATEGORY="development" 1.10 SHORT_DESC="General purpose XML Document Type Definition." 1.11 MAINTAINER="paul@slitaz.org" 1.12 DEPENDS="libxml2-tools libxml2" 1.13 -BUILD_DEPENDS="unzip" 1.14 +BUILD_DEPENDS="$DEPENDS unzip" 1.15 SOURCE="docbook" 1.16 -TARBALL="$SOURCE-$VERSION.zip" 1.17 +TARBALL="$PACKAGE-$VERSION.zip" 1.18 WEB_SITE="http://www.docbook.org/" 1.19 -WGET_URL="http://www.docbook.org/xml/$VERSION/$TARBALL" 1.20 +WGET="http://www.docbook.org/xml/$VERSION/$TARBALL" 1.21 1.22 # Rules to gen a SliTaz package suitable for Tazpkg. 1.23 genpkg_rules() 1.24 { 1.25 - mkdir -p $fs/usr/share/xml/docbook/schema/5.0/dtd 1.26 - mkdir -p $fs/usr/share/xml/docbook/schema/5.0/rng 1.27 - mkdir -p $fs/usr/share/xml/docbook/schema/5.0/sch 1.28 - mkdir -p $fs/usr/share/xml/docbook/schema/5.0/xsd 1.29 - mkdir -p $fs/usr/share/xml/docbook/stylesheet/docbook5 1.30 - mkdir -p $fs/usr/share/doc/docbook-xml-5.0/images/ 1.31 + if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then 1.32 + mkdir -p $src && unzip $SOURCES_REPOSITORY/$TARBALL -d $src 1.33 + else 1.34 + wget -O $SOURCES_REPOSITORY/$TARBALL $WGET 1.35 + mkdir -p $src && unzip $SOURCES_REPOSITORY/$TARBALL -d $src 1.36 + fi 1.37 1.38 - src=$SOURCE-$VERSION 1.39 - cp -a $src/dtd/* $fs/usr/share/xml/docbook/schema/5.0/dtd 1.40 - cp -a $src/rng/* $fs/usr/share/xml/docbook/schema/5.0/rng 1.41 - cp -a $src/sch/* $fs/usr/share/xml/docbook/schema/5.0/sch 1.42 - cp -a $src/xsd/* $fs/usr/share/xml/docbook/schema/5.0/xsd 1.43 - cp -a $src/tools/* $fs/usr/share/xml/docbook/stylesheet/docbook5 1.44 - cp -a $src/docs/images/* $fs/usr/share/doc/docbook-xml-5.0/images 1.45 - cp -a $src/docs/* $fs/usr/share/doc/docbook-xml-5.0 1.46 - cp -a $src/README $fs/usr/share/doc/docbook-xml-5.0 1.47 - cp -a $src/catalog.xml $fs/usr/share/xml/docbook/schema/5.0 1.48 - cp -a $src/docbook.nvdl $fs/usr/share/xml/docbook/schema/5.0 1.49 + #cd $src 1.50 + install -v -d -m755 $fs/usr/share/xml/docbook/xml-dtd-$VERSION && 1.51 + install -v -d -m755 $fs/etc/xml && 1.52 + chown -R root:root . && 1.53 + cp -v -af $src/docbook.cat $src/*.dtd $src/ent/ $src/*.mod \ 1.54 + $fs/usr/share/xml/docbook/xml-dtd-$VERSION 1.55 + 1.56 + 1.57 + xmlcatalog --noout --create $fs/etc/xml/docbook 1.58 + xmlcatalog --noout --create $fs/etc/xml/catalog 1.59 + 1.60 + for DTDVERSION in 4.1.2 4.2 4.3 4.4 1.61 + do 1.62 + xmlcatalog --noout --add "public" \ 1.63 + "-//OASIS//DTD DocBook XML V$DTDVERSION//EN" \ 1.64 + "http://www.oasis-open.org/docbook/xml/$DTDVERSION/docbookx.dtd" \ 1.65 + $fs/etc/xml/docbook 1.66 + xmlcatalog --noout --add "rewriteSystem" \ 1.67 + "http://www.oasis-open.org/docbook/xml/$DTDVERSION" \ 1.68 + "file:///usr/share/xml/docbook/xml-dtd-$VERSION" \ 1.69 + $fs/etc/xml/docbook 1.70 + xmlcatalog --noout --add "rewriteURI" \ 1.71 + "http://www.oasis-open.org/docbook/xml/$DTDVERSION" \ 1.72 + "file:///usr/share/xml/docbook/xml-dtd-$VERSION" \ 1.73 + $fs/etc/xml/docbook 1.74 + xmlcatalog --noout --add "delegateSystem" \ 1.75 + "http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \ 1.76 + "file:///etc/xml/docbook" \ 1.77 + $fs/etc/xml/catalog 1.78 + xmlcatalog --noout --add "delegateURI" \ 1.79 + "http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \ 1.80 + "file:///etc/xml/docbook" \ 1.81 + $fs/etc/xml/catalog 1.82 + done 1.83 + 1.84 1.85 } 1.86 + 1.87 # Pre and post install commands for Tazpkg. 1.88 post_install() 1.89 { 1.90 echo -n "Processing post-install commands..." 1.91 1.92 - # Add /etc/xml/catalog 1.93 + # Add /etc/xml/docbook 1.94 install -d -m755 $1/etc/xml 1.95 - [ ! -f $1/etc/xml/catalog ] && 1.96 - xmlcatalog --noout --create $1/etc/xml/catalog 1.97 - 1.98 - xmlcatalog --noout --add "delegatePublic" \ 1.99 - "-//OASIS//DTD DocBook XML 5.0//EN" \ 1.100 - "file:///usr/share/xml/docbook/schema/5.0/catalog.xml" \ 1.101 - $1/etc/xml/catalog && 1.102 - xmlcatalog --noout --add "delegateSystem" \ 1.103 - "http://www.oasis-open.org/docbook/xml/5.0" \ 1.104 - "file:///usr/share/xml/docbook/schema/5.0/catalog.xml" \ 1.105 - $1/etc/xml/catalog && 1.106 - xmlcatalog --noout --add "delegateSystem" \ 1.107 - "http://docbook.org/xml/5.0" \ 1.108 - "file:///usr/share/xml/docbook/schema/5.0/catalog.xml" \ 1.109 - $1/etc/xml/catalog && 1.110 - xmlcatalog --noout --add "delegateURI" \ 1.111 - "http://www.oasis-open.org/docbook/xml/5.0" \ 1.112 - "file:///usr/share/xml/docbook/schema/5.0/catalog.xml" \ 1.113 - $1/etc/xml/catalog && 1.114 - xmlcatalog --noout --add "delegateURI" \ 1.115 - "http://docbook.org/xml/5.0" \ 1.116 - "file:///usr/share/xml/docbook/schema/5.0/catalog.xml" \ 1.117 - $1/etc/xml/catalog 1.118 + if [ ! -e /etc/xml/docbook ]; then 1.119 + xmlcatalog --noout --create $1/etc/xml/docbook 1.120 + fi && 1.121 + xmlcatalog --noout --add "public" \ 1.122 + "-//OASIS//DTD DocBook XML V4.5//EN" \ 1.123 + "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" \ 1.124 + $1/etc/xml/docbook && 1.125 + xmlcatalog --noout --add "public" \ 1.126 + "-//OASIS//DTD DocBook XML CALS Table Model V4.5//EN" \ 1.127 + "file:///usr/share/xml/docbook/xml-dtd-4.5/calstblx.dtd" \ 1.128 + $1/etc/xml/docbook && 1.129 + xmlcatalog --noout --add "public" \ 1.130 + "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \ 1.131 + "file:///usr/share/xml/docbook/xml-dtd-4.5/soextblx.dtd" \ 1.132 + $1/etc/xml/docbook && 1.133 + xmlcatalog --noout --add "public" \ 1.134 + "-//OASIS//ELEMENTS DocBook XML Information Pool V4.5//EN" \ 1.135 + "file:///usr/share/xml/docbook/xml-dtd-4.5/dbpoolx.mod" \ 1.136 + $1/etc/xml/docbook && 1.137 + xmlcatalog --noout --add "public" \ 1.138 + "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.5//EN" \ 1.139 + "file:///usr/share/xml/docbook/xml-dtd-4.5/dbhierx.mod" \ 1.140 + $1/etc/xml/docbook && 1.141 + xmlcatalog --noout --add "public" \ 1.142 + "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN" \ 1.143 + "file:///usr/share/xml/docbook/xml-dtd-4.5/htmltblx.mod" \ 1.144 + $1/etc/xml/docbook && 1.145 + xmlcatalog --noout --add "public" \ 1.146 + "-//OASIS//ENTITIES DocBook XML Notations V4.5//EN" \ 1.147 + "file:///usr/share/xml/docbook/xml-dtd-4.5/dbnotnx.mod" \ 1.148 + $1/etc/xml/docbook && 1.149 + xmlcatalog --noout --add "public" \ 1.150 + "-//OASIS//ENTITIES DocBook XML Character Entities V4.5//EN" \ 1.151 + "file:///usr/share/xml/docbook/xml-dtd-4.5/dbcentx.mod" \ 1.152 + $1/etc/xml/docbook && 1.153 + xmlcatalog --noout --add "public" \ 1.154 + "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.5//EN" \ 1.155 + "file:///usr/share/xml/docbook/xml-dtd-4.5/dbgenent.mod" \ 1.156 + $1/etc/xml/docbook && 1.157 + xmlcatalog --noout --add "rewriteSystem" \ 1.158 + "http://www.oasis-open.org/docbook/xml/4.5" \ 1.159 + "file:///usr/share/xml/docbook/xml-dtd-4.5" \ 1.160 + $1/etc/xml/docbook && 1.161 + xmlcatalog --noout --add "rewriteURI" \ 1.162 + "http://www.oasis-open.org/docbook/xml/4.5" \ 1.163 + "file:///usr/share/xml/docbook/xml-dtd-4.5" \ 1.164 + $1/etc/xml/docbook 1.165 status 1.166 } 1.167