wok-next diff docbook-xsl-ns/receipt @ rev 21110
subversion: update dependencies
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Jan 11 04:06:27 2019 +0200 (2019-01-11) |
parents | a3c581bf52b8 |
children |
line diff
1.1 --- a/docbook-xsl-ns/receipt Fri Aug 10 12:53:17 2018 +0300 1.2 +++ b/docbook-xsl-ns/receipt Fri Jan 11 04:06:27 2019 +0200 1.3 @@ -1,77 +1,52 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="docbook-xsl-ns" 1.8 VERSION="1.79.1" 1.9 CATEGORY="development" 1.10 -SHORT_DESC="DocBook XSL (namespaced) stylesheets." 1.11 +SHORT_DESC="DocBook XSL-NS stylesheets" 1.12 MAINTAINER="paul@slitaz.org" 1.13 LICENSE="MIT" 1.14 WEB_SITE="http://docbook.sourceforge.net/" 1.15 +HOST_ARCH="any" 1.16 1.17 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.18 WGET_URL="$SF_MIRROR/docbook/$TARBALL" 1.19 1.20 -DEPENDS="libxml2-tools libxslt" 1.21 +compile_rules() { 1.22 + dest="$install/usr/share/xml/docbook/stylesheet/docbook-xsl-ns" 1.23 + mkdir -p $dest 1.24 1.25 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.26 -genpkg_rules() 1.27 -{ 1.28 - cd $src 1.29 - pkgroot=$fs/usr/share/xml/docbook/stylesheet/$PACKAGE 1.30 - install -dm755 $pkgroot/common 1.31 - install -dm755 $pkgroot/params 1.32 + cp VERSION VERSION.xsl $dest 1.33 1.34 - for fn in xml xsl dtd ent; do 1.35 - install -m644 common/*.${fn} $pkgroot/common/ 1.36 + for i in assembly common eclipse epub epub3 fo highlighting html htmlhelp \ 1.37 + javahelp lib manpages params profiling roundtrip template website \ 1.38 + xhtml xhtml-1_1 xhtml5; do 1.39 + mkdir -p $dest/$i 1.40 + cp $i/*.xml $i/*.xsl $i/*.dtd $i/*.ent $dest/$i/ 2>/dev/null 1.41 done 1.42 + find $install -type f -name build.xml -delete 1.43 1.44 - for fn in fo highlighting html roundtrip; do 1.45 - install -dm755 ${pkgroot}/${fn} 1.46 - install -m644 ${fn}/*.xml ${pkgroot}/${fn}/ 1.47 - install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/ 1.48 - done 1.49 + mkdir -p $install/etc/xml/ 1.50 1.51 - for fn in eclipse htmlhelp javahelp lib manpages profiling template website xhtml xhtml-1_1; do 1.52 - install -dm755 ${pkgroot}/${fn} 1.53 - install -m644 ${fn}/*.xsl ${pkgroot}/${fn}/ 1.54 - done 1.55 + cook_pick_docs README RELEASE-NOTES* NEWS* 1.56 } 1.57 1.58 -# Pre and post install commands for Tazpkg. 1.59 -post_install() 1.60 -{ 1.61 - if [ "$1" ]; then 1.62 - mv -f "$1/etc/resolv.conf" "$1/etc/recolv.conf.$$" 2>/dev/null 1.63 - cp /etc/resolv.conf "$1/etc/resolv.conf" 1.64 - fi 1.65 +genpkg_rules() { 1.66 + copy @std 1.67 + DEPENDS="libxml2-tools libxslt" 1.68 +} 1.69 1.70 - # Create a /etc/xml/catalog file 1.71 - if [ ! -d "$1/etc/xml" ]; then install -v -m755 -d "$1/etc/xml"; fi && 1.72 - if [ ! -f "$1/etc/xml/catalog" ]; then 1.73 - chroot "$1/" xmlcatalog --noout --create /etc/xml/catalog 1.74 - fi && 1.75 +post_install() { 1.76 + local U="http://docbook.sourceforge.net/release/xsl-ns" 1.77 + local F="file:///usr/share/xml/docbook/stylesheet/docbook-xsl-ns/catalog.xml" 1.78 + local C="/etc/xml/catalog" 1.79 1.80 - chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \ 1.81 - "http://docbook.sourceforge.net/release/xsl-ns/$VERSION" \ 1.82 - "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ 1.83 - /etc/xml/catalog && 1.84 + # Create a /etc/xml/catalog if it absent 1.85 + mkdir -p "$1/etc/xml/" 1.86 + [ -s "$1/etc/xml/catalog" ] || chroot "$1/" xmlcatalog --noout --create "$C" 1.87 1.88 - chroot "$1/" xmlcatalog --noout --add "rewriteURI" \ 1.89 - "http://docbook.sourceforge.net/release/xsl-ns/$VERSION" \ 1.90 - "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ 1.91 - /etc/xml/catalog && 1.92 - 1.93 - chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \ 1.94 - "http://docbook.sourceforge.net/release/xsl-ns/current" \ 1.95 - "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ 1.96 - /etc/xml/catalog && 1.97 - 1.98 - chroot "$1/" xmlcatalog --noout --add "rewriteURI" \ 1.99 - "http://docbook.sourceforge.net/release/xsl-ns/current" \ 1.100 - "/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \ 1.101 - /etc/xml/catalog 1.102 - 1.103 - if [ "$1" ]; then 1.104 - mv -f "$1/etc/resolv.conf.$$" "$1/etc/recolv.conf" 2>/dev/null 1.105 - fi 1.106 + chroot "$1/" xmlcatalog --noout --add "rewriteSystem" "$U/$VERSION" "$F" "$C" 1.107 + chroot "$1/" xmlcatalog --noout --add "rewriteURI" "$U/$VERSION" "$F" "$C" 1.108 + chroot "$1/" xmlcatalog --noout --add "rewriteSystem" "$U/current" "$F" "$C" 1.109 + chroot "$1/" xmlcatalog --noout --add "rewriteURI" "$U/current" "$F" "$C" 1.110 }