wok-6.x annotate python-sphinx/receipt @ rev 21470
updated mosh (1.2.5 -> 1.3.2)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Apr 30 17:32:49 2019 +0100 (2019-04-30) |
parents | 1067bb7f1e24 |
children | 814362194a8d |
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 |
claudinei@3393 | 14 DEPENDS="python python-docutils python-jinja2 python-pygments 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 } |