wok annotate python-sphinx/receipt @ rev 23008
consonance: added build dependency gcc83
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 03 07:08:14 2020 +0100 (2020-03-03) |
parents | 814362194a8d |
children | e707d374fb00 |
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" |
pascal@22453 | 11 WEB_SITE="https://www.sphinx-doc.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 } |