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

Remove cromfs-or-squashfs; add some licenses
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Nov 30 10:06:29 2013 +0000 (2013-11-30)
parents 17b4140b4e5b
children 9e01bc6321ea
rev   line source
paul@6996 1 # SliTaz package receipt.
paul@6996 2
paul@6996 3 PACKAGE="docbook-xsl-ns"
paul@7711 4 VERSION="1.76.1"
paul@6996 5 CATEGORY="development"
paul@6996 6 SHORT_DESC="DocBook XSL (namespaced) stylesheets."
paul@6996 7 MAINTAINER="paul@slitaz.org"
pascal@15579 8 LICENSE="MIT"
paul@6996 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
paul@6996 10 WEB_SITE="http://wiki.docbook.org/topic/DocBookXslStylesheets"
paul@6996 11 WGET_URL="http://jaist.dl.sourceforge.net/sourceforge/docbook/$TARBALL"
paul@6996 12
pascal@15579 13 DEPENDS="libxml2-tools libxslt"
pascal@15579 14
paul@6996 15 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@6996 16 genpkg_rules()
paul@6996 17 {
slaxemulator@9558 18 cd $src
slaxemulator@9558 19 pkgroot=$fs/usr/share/xml/docbook/stylesheet/$PACKAGE
slaxemulator@9558 20 install -dm755 $pkgroot/common
slaxemulator@9558 21 install -dm755 $pkgroot/params
slaxemulator@9558 22
slaxemulator@9558 23 for fn in xml xsl dtd ent; do
slaxemulator@9558 24 install -m644 common/*.${fn} $pkgroot/common/
slaxemulator@9558 25 done
slaxemulator@9558 26
slaxemulator@9558 27 for fn in fo highlighting html roundtrip; do
slaxemulator@9558 28 install -dm755 ${pkgroot}/${fn}
slaxemulator@9558 29 install -m644 ${fn}/*.xml ${pkgroot}/${fn}/
slaxemulator@9558 30 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/
slaxemulator@9558 31 done
slaxemulator@9558 32
slaxemulator@9558 33 for fn in eclipse htmlhelp javahelp lib manpages profiling template website xhtml xhtml-1_1; do
slaxemulator@9558 34 install -dm755 ${pkgroot}/${fn}
slaxemulator@9558 35 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/
slaxemulator@9558 36 done
paul@6996 37 }
paul@6996 38
paul@6996 39 # Pre and post install commands for Tazpkg.
paul@6996 40 post_install()
paul@6996 41 {
paul@6996 42 echo -n "Processing post-install commands..."
paul@6996 43
paul@6996 44 # Create a /etc/xml/catalog file
paul@6996 45 if [ ! -d $1/etc/xml ]; then install -v -m755 -d $1/etc/xml; fi &&
paul@6996 46 if [ ! -f $1/etc/xml/catalog ]; then
paul@6996 47 xmlcatalog --noout --create $1/etc/xml/catalog
paul@6996 48 fi &&
paul@6996 49
paul@6996 50 xmlcatalog --noout --add "rewriteSystem" \
slaxemulator@9558 51 "http://docbook.sourceforge.net/release/xsl-ns/$VERSION" \
paul@6996 52 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
paul@6996 53 $1/etc/xml/catalog &&
paul@6996 54
paul@6996 55 xmlcatalog --noout --add "rewriteURI" \
slaxemulator@9558 56 "http://docbook.sourceforge.net/release/xsl-ns/$VERSION" \
paul@6996 57 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
paul@6996 58 $1/etc/xml/catalog &&
paul@6996 59
paul@6996 60 xmlcatalog --noout --add "rewriteSystem" \
paul@6996 61 "http://docbook.sourceforge.net/release/xsl-ns/current" \
paul@6996 62 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
paul@6996 63 $1/etc/xml/catalog &&
paul@6996 64
paul@6996 65 xmlcatalog --noout --add "rewriteURI" \
paul@6996 66 "http://docbook.sourceforge.net/release/xsl-ns/current" \
paul@6996 67 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
paul@6996 68 $1/etc/xml/catalog
paul@6996 69 status
paul@6996 70 }
paul@6996 71