wok-next annotate docbook-xsl/receipt @ rev 20974
Fix python-shapely build
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun Sep 23 04:34:15 2018 +0300 (2018-09-23) |
parents | 0e7893ac206d |
children | c2031fd4a3f3 |
rev | line source |
---|---|
al@20443 | 1 # SliTaz package receipt v2. |
slaxemulator@6984 | 2 |
slaxemulator@6984 | 3 PACKAGE="docbook-xsl" |
al@20964 | 4 VERSION="1.79.2" |
slaxemulator@6984 | 5 CATEGORY="development" |
al@20443 | 6 SHORT_DESC="DocBook XSL stylesheets" |
slaxemulator@6984 | 7 MAINTAINER="paul@slitaz.org" |
pascal@15579 | 8 LICENSE="MIT" |
al@20964 | 9 WEB_SITE="https://github.com/docbook/xslt10-stylesheets" |
al@20964 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/pst/docbook-xsl.html" |
al@19607 | 11 |
slaxemulator@6984 | 12 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
al@20964 | 13 WGET_URL="https://github.com/docbook/xslt10-stylesheets/releases/download/release%2F$VERSION/$TARBALL" |
slaxemulator@6984 | 14 |
al@20443 | 15 compile_rules() { |
al@20443 | 16 mkdir -p $install/usr/share/xml/docbook/stylesheet/docbook-xsl/ |
pascal@15579 | 17 |
al@20443 | 18 cp -R \ |
al@20443 | 19 VERSION assembly common eclipse epub epub3 extensions fo highlighting \ |
al@20443 | 20 html htmlhelp images javahelp lib manpages params profiling roundtrip \ |
al@20443 | 21 slides template tests tools webhelp website xhtml xhtml-1_1 xhtml5 \ |
al@20443 | 22 $install/usr/share/xml/docbook/stylesheet/docbook-xsl/ && |
al@18741 | 23 |
al@20443 | 24 ln -s VERSION $install/usr/share/xml/docbook/stylesheet/docbook-xsl/VERSION.xsl && |
al@19607 | 25 |
al@20443 | 26 cook_pick_docs README RELEASE-NOTES* NEWS* |
slaxemulator@6984 | 27 } |
slaxemulator@6984 | 28 |
al@20443 | 29 genpkg_rules() { |
al@20443 | 30 copy @std |
al@20443 | 31 DEPENDS="docbook-xml libxml2-tools libxslt" |
al@20443 | 32 } |
al@20443 | 33 |
al@20443 | 34 post_install() { |
al@18741 | 35 if [ -n "$1" ]; then |
al@18741 | 36 mv -f "$1/etc/resolv.conf" "$1/etc/recolv.conf.$$" 2>/dev/null |
pascal@18730 | 37 cp /etc/resolv.conf "$1/etc/resolv.conf" |
pascal@18730 | 38 fi |
slaxemulator@6984 | 39 |
al@19607 | 40 U="http://docbook.sourceforge.net/release/xsl" |
al@20443 | 41 F="/usr/share/xml/docbook/stylesheet/docbook-xsl" |
al@20443 | 42 C="/etc/xml/catalog" |
al@19607 | 43 |
slaxemulator@6984 | 44 # Create a /etc/xml/catalog file |
al@20443 | 45 mkdir -p "$1/etc/xml" |
pascal@18730 | 46 if [ ! -f "$1/etc/xml/catalog" ]; then |
al@20443 | 47 chroot "$1/" xmlcatalog --noout --create "$C" |
slaxemulator@6984 | 48 fi && |
slaxemulator@6984 | 49 |
al@20443 | 50 chroot "$1/" xmlcatalog --noout --add rewriteSystem "$U/$VERSION" "$F" $C && |
al@20443 | 51 chroot "$1/" xmlcatalog --noout --add rewriteURI "$U/$VERSION" "$F" $C && |
al@20443 | 52 chroot "$1/" xmlcatalog --noout --add rewriteSystem "$U/current" "$F" $C && |
al@20443 | 53 chroot "$1/" xmlcatalog --noout --add rewriteURI "$U/current" "$F" $C |
slaxemulator@6984 | 54 |
al@20443 | 55 # # link nwalsh dir |
al@20443 | 56 # ln -sf docbook-xsl "$1/usr/share/xml/docbook/stylesheet/nwalsh" |
al@18741 | 57 |
al@18741 | 58 if [ -n "$1" ]; then |
al@19607 | 59 mv -f "$1/etc/resolv.conf.$$" "$1/etc/recolv.conf" 2>/dev/null |
pascal@18730 | 60 fi |
al@18741 | 61 |
al@18741 | 62 : |
slaxemulator@6984 | 63 } |