wok-stable annotate docbook-xsl-ns/receipt @ rev 10510
libnjb: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 25 15:45:17 2011 +0200 (2011-05-25) |
parents | 6ce472884aeb |
children |
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" |
paul@6996 | 8 DEPENDS="libxml2-tools libxslt" |
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 |
paul@6996 | 13 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@6996 | 14 genpkg_rules() |
paul@6996 | 15 { |
slaxemulator@9558 | 16 cd $src |
slaxemulator@9558 | 17 pkgroot=$fs/usr/share/xml/docbook/stylesheet/$PACKAGE |
slaxemulator@9558 | 18 install -dm755 $pkgroot/common |
slaxemulator@9558 | 19 install -dm755 $pkgroot/params |
slaxemulator@9558 | 20 |
slaxemulator@9558 | 21 for fn in xml xsl dtd ent; do |
slaxemulator@9558 | 22 install -m644 common/*.${fn} $pkgroot/common/ |
slaxemulator@9558 | 23 done |
slaxemulator@9558 | 24 |
slaxemulator@9558 | 25 for fn in fo highlighting html roundtrip; do |
slaxemulator@9558 | 26 install -dm755 ${pkgroot}/${fn} |
slaxemulator@9558 | 27 install -m644 ${fn}/*.xml ${pkgroot}/${fn}/ |
slaxemulator@9558 | 28 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/ |
slaxemulator@9558 | 29 done |
slaxemulator@9558 | 30 |
slaxemulator@9558 | 31 for fn in eclipse htmlhelp javahelp lib manpages profiling template website xhtml xhtml-1_1; do |
slaxemulator@9558 | 32 install -dm755 ${pkgroot}/${fn} |
slaxemulator@9558 | 33 install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/ |
slaxemulator@9558 | 34 done |
paul@6996 | 35 } |
paul@6996 | 36 |
paul@6996 | 37 # Pre and post install commands for Tazpkg. |
paul@6996 | 38 post_install() |
paul@6996 | 39 { |
paul@6996 | 40 echo -n "Processing post-install commands..." |
paul@6996 | 41 |
paul@6996 | 42 # Create a /etc/xml/catalog file |
paul@6996 | 43 if [ ! -d $1/etc/xml ]; then install -v -m755 -d $1/etc/xml; fi && |
paul@6996 | 44 if [ ! -f $1/etc/xml/catalog ]; then |
paul@6996 | 45 xmlcatalog --noout --create $1/etc/xml/catalog |
paul@6996 | 46 fi && |
paul@6996 | 47 |
paul@6996 | 48 xmlcatalog --noout --add "rewriteSystem" \ |
slaxemulator@9558 | 49 "http://docbook.sourceforge.net/release/xsl-ns/$VERSION" \ |
paul@6996 | 50 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ |
paul@6996 | 51 $1/etc/xml/catalog && |
paul@6996 | 52 |
paul@6996 | 53 xmlcatalog --noout --add "rewriteURI" \ |
slaxemulator@9558 | 54 "http://docbook.sourceforge.net/release/xsl-ns/$VERSION" \ |
paul@6996 | 55 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ |
paul@6996 | 56 $1/etc/xml/catalog && |
paul@6996 | 57 |
paul@6996 | 58 xmlcatalog --noout --add "rewriteSystem" \ |
paul@6996 | 59 "http://docbook.sourceforge.net/release/xsl-ns/current" \ |
paul@6996 | 60 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ |
paul@6996 | 61 $1/etc/xml/catalog && |
paul@6996 | 62 |
paul@6996 | 63 xmlcatalog --noout --add "rewriteURI" \ |
paul@6996 | 64 "http://docbook.sourceforge.net/release/xsl-ns/current" \ |
paul@6996 | 65 "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ |
paul@6996 | 66 $1/etc/xml/catalog |
paul@6996 | 67 status |
paul@6996 | 68 } |
paul@6996 | 69 |