wok-next annotate docbook-xsl/receipt @ rev 18327

Up links (2.11)
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Tue Sep 08 14:21:02 2015 +0200 (2015-09-08)
parents 365611cfc2cf
children 9e01bc6321ea
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"
pascal@15579 8 LICENSE="MIT"
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
pascal@15579 13 DEPENDS="docbook-xml libxml2-tools libxslt"
pascal@15579 14
slaxemulator@6984 15 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@6984 16 genpkg_rules()
slaxemulator@6984 17 {
slaxemulator@9557 18 cd $src
slaxemulator@9557 19 pkgroot=$fs/usr/share/xml/docbook/stylesheet/$PACKAGE
slaxemulator@9557 20 install -dm755 $pkgroot/common
slaxemulator@9557 21 install -dm755 $pkgroot/params
psychomaniak@18327 22 install -m755 VERSION $pkgroot
slaxemulator@9557 23
slaxemulator@9557 24 for fn in xml xsl dtd ent; do
slaxemulator@9557 25 install -m644 common/*.${fn} $pkgroot/common/
slaxemulator@9557 26 done
slaxemulator@9557 27
slaxemulator@9557 28 for fn in fo highlighting html roundtrip; do
slaxemulator@9557 29 install -dm755 ${pkgroot}/${fn}
slaxemulator@9557 30 install -m644 ${fn}/*.xml ${pkgroot}/${fn}/
slaxemulator@9557 31 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/
slaxemulator@9557 32 done
slaxemulator@9557 33
slaxemulator@9557 34 for fn in eclipse htmlhelp javahelp lib manpages profiling template website xhtml xhtml-1_1; do
slaxemulator@9557 35 install -dm755 ${pkgroot}/${fn}
slaxemulator@9557 36 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/
slaxemulator@9557 37 done
slaxemulator@6984 38 }
slaxemulator@6984 39
slaxemulator@6984 40 # Pre and post install commands for Tazpkg.
slaxemulator@6984 41 post_install()
slaxemulator@6984 42 {
slaxemulator@6984 43 echo -n "Processing post-install commands..."
slaxemulator@6984 44
slaxemulator@6984 45 # Create a /etc/xml/catalog file
slaxemulator@6984 46 if [ ! -d $1/etc/xml ]; then install -v -m755 -d $1/etc/xml; fi &&
slaxemulator@6984 47 if [ ! -f $1/etc/xml/catalog ]; then
slaxemulator@6984 48 xmlcatalog --noout --create $1/etc/xml/catalog
slaxemulator@6984 49 fi &&
slaxemulator@6984 50
slaxemulator@6984 51 xmlcatalog --noout --add "rewriteSystem" \
slaxemulator@9557 52 "http://docbook.sourceforge.net/release/xsl/$VERSION" \
slaxemulator@6984 53 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
slaxemulator@6984 54 $1/etc/xml/catalog &&
slaxemulator@6984 55
slaxemulator@6984 56 xmlcatalog --noout --add "rewriteURI" \
slaxemulator@9557 57 "http://docbook.sourceforge.net/release/xsl/$VERSION" \
slaxemulator@6984 58 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
slaxemulator@6984 59 $1/etc/xml/catalog &&
slaxemulator@6984 60
slaxemulator@6984 61 xmlcatalog --noout --add "rewriteSystem" \
slaxemulator@6984 62 "http://docbook.sourceforge.net/release/xsl/current" \
slaxemulator@6984 63 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
slaxemulator@6984 64 $1/etc/xml/catalog &&
slaxemulator@6984 65
slaxemulator@6984 66 xmlcatalog --noout --add "rewriteURI" \
slaxemulator@6984 67 "http://docbook.sourceforge.net/release/xsl/current" \
slaxemulator@6984 68 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
slaxemulator@6984 69 $1/etc/xml/catalog
slaxemulator@6984 70
slaxemulator@6984 71 # link nwalsh dir
slaxemulator@6984 72 cd $1/usr/share/xml/docbook/stylesheet
slaxemulator@6984 73 ln -s $PACKAGE nwalsh
slaxemulator@6984 74 status
slaxemulator@6984 75 }
slaxemulator@6984 76