wok annotate python-sphinx/receipt @ rev 21975
updated st (0.5 -> 0.8.2)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Oct 11 14:31:25 2019 +0100 (2019-10-11) |
parents | 9e01bc6321ea |
children | c71df21187b4 |
rev | line source |
---|---|
claudinei@3393 | 1 # SliTaz package receipt. |
claudinei@3393 | 2 |
claudinei@3393 | 3 PACKAGE="python-sphinx" |
claudinei@3393 | 4 SOURCE="Sphinx" |
claudinei@4020 | 5 VERSION="0.6.3" |
claudinei@3393 | 6 CATEGORY="utilities" |
claudinei@3393 | 7 SHORT_DESC="Documentation Tool." |
claudinei@3393 | 8 MAINTAINER="claudinei@slitaz.org" |
pascal@15376 | 9 LICENSE="BSD" |
claudinei@3393 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
claudinei@3393 | 11 WEB_SITE="http://sphinx.pocoo.org" |
claudinei@3393 | 12 WGET_URL="http://pypi.python.org/packages/source/S/$SOURCE/$TARBALL" |
pascal@15376 | 13 |
pascal@21582 | 14 DEPENDS="python python-docutils python-jinja2 python-pygments python-setuptools" |
claudinei@3393 | 15 BUILD_DEPENDS="$DEPENDS python-dev" |
claudinei@3393 | 16 |
claudinei@3393 | 17 # Rules to configure and make the package. |
claudinei@3393 | 18 compile_rules() |
claudinei@3393 | 19 { |
claudinei@3393 | 20 python setup.py build && |
pascal@15376 | 21 python setup.py install --root=$DESTDIR |
claudinei@3393 | 22 } |
claudinei@3393 | 23 |
claudinei@3393 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3393 | 25 genpkg_rules() |
claudinei@3393 | 26 { |
claudinei@3393 | 27 mkdir -p $fs/usr |
pascal@15376 | 28 cp -a $install/usr $fs |
claudinei@3393 | 29 } |
claudinei@3393 | 30 |
claudinei@3404 | 31 # Remove old package. |
claudinei@3404 | 32 post_install() |
claudinei@3404 | 33 { |
pascal@18730 | 34 [ ! -d "$1/var/lib/tazpkg/installed/sphinx" ] || |
pascal@18730 | 35 rm -rf "$1/var/lib/tazpkg/installed/sphinx" |
claudinei@3404 | 36 } |