wok-6.x annotate docbook-xsl/receipt @ rev 10861

Up: cookutils (1.4) - Bunch of fixes and small improvments - ready for RC
author Christophe Lincoln <pankso@slitaz.org>
date Sat Jun 18 22:45:15 2011 +0200 (2011-06-18)
parents 8e7c178e1fc8
children eb8067417980
rev   line source
slaxemulator@6984 1 # SliTaz package receipt.
slaxemulator@6984 2
slaxemulator@6984 3 PACKAGE="docbook-xsl"
slaxemulator@7624 4 VERSION="1.76.1"
slaxemulator@6984 5 CATEGORY="development"
slaxemulator@6984 6 SHORT_DESC="DocBook XSL stylesheets."
slaxemulator@6984 7 MAINTAINER="paul@slitaz.org"
slaxemulator@6984 8 DEPENDS="docbook-xml libxml2-tools libxslt"
slaxemulator@6984 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
slaxemulator@7624 10 WEB_SITE="http://docbook.sourceforge.net/"
slaxemulator@6984 11 WGET_URL="$SF_MIRROR/docbook/$TARBALL"
slaxemulator@6984 12
slaxemulator@6984 13 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@6984 14 genpkg_rules()
slaxemulator@6984 15 {
slaxemulator@9557 16 cd $src
slaxemulator@9557 17 pkgroot=$fs/usr/share/xml/docbook/stylesheet/$PACKAGE
slaxemulator@9557 18 install -dm755 $pkgroot/common
slaxemulator@9557 19 install -dm755 $pkgroot/params
slaxemulator@9557 20
slaxemulator@9557 21 for fn in xml xsl dtd ent; do
slaxemulator@9557 22 install -m644 common/*.${fn} $pkgroot/common/
slaxemulator@9557 23 done
slaxemulator@9557 24
slaxemulator@9557 25 for fn in fo highlighting html roundtrip; do
slaxemulator@9557 26 install -dm755 ${pkgroot}/${fn}
slaxemulator@9557 27 install -m644 ${fn}/*.xml ${pkgroot}/${fn}/
slaxemulator@9557 28 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/
slaxemulator@9557 29 done
slaxemulator@9557 30
slaxemulator@9557 31 for fn in eclipse htmlhelp javahelp lib manpages profiling template website xhtml xhtml-1_1; do
slaxemulator@9557 32 install -dm755 ${pkgroot}/${fn}
slaxemulator@9557 33 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/
slaxemulator@9557 34 done
slaxemulator@6984 35 }
slaxemulator@6984 36
slaxemulator@6984 37 # Pre and post install commands for Tazpkg.
slaxemulator@6984 38 post_install()
slaxemulator@6984 39 {
slaxemulator@6984 40 echo -n "Processing post-install commands..."
slaxemulator@6984 41
slaxemulator@6984 42 # Create a /etc/xml/catalog file
slaxemulator@6984 43 if [ ! -d $1/etc/xml ]; then install -v -m755 -d $1/etc/xml; fi &&
slaxemulator@6984 44 if [ ! -f $1/etc/xml/catalog ]; then
slaxemulator@6984 45 xmlcatalog --noout --create $1/etc/xml/catalog
slaxemulator@6984 46 fi &&
slaxemulator@6984 47
slaxemulator@6984 48 xmlcatalog --noout --add "rewriteSystem" \
slaxemulator@9557 49 "http://docbook.sourceforge.net/release/xsl/$VERSION" \
slaxemulator@6984 50 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
slaxemulator@6984 51 $1/etc/xml/catalog &&
slaxemulator@6984 52
slaxemulator@6984 53 xmlcatalog --noout --add "rewriteURI" \
slaxemulator@9557 54 "http://docbook.sourceforge.net/release/xsl/$VERSION" \
slaxemulator@6984 55 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
slaxemulator@6984 56 $1/etc/xml/catalog &&
slaxemulator@6984 57
slaxemulator@6984 58 xmlcatalog --noout --add "rewriteSystem" \
slaxemulator@6984 59 "http://docbook.sourceforge.net/release/xsl/current" \
slaxemulator@6984 60 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
slaxemulator@6984 61 $1/etc/xml/catalog &&
slaxemulator@6984 62
slaxemulator@6984 63 xmlcatalog --noout --add "rewriteURI" \
slaxemulator@6984 64 "http://docbook.sourceforge.net/release/xsl/current" \
slaxemulator@6984 65 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
slaxemulator@6984 66 $1/etc/xml/catalog
slaxemulator@6984 67
slaxemulator@6984 68 # link nwalsh dir
slaxemulator@6984 69 cd $1/usr/share/xml/docbook/stylesheet
slaxemulator@6984 70 ln -s $PACKAGE nwalsh
slaxemulator@6984 71 status
slaxemulator@6984 72 }
slaxemulator@6984 73