wok annotate python-sphinx/receipt @ rev 24063

Fix sane-backends-dev
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 12 09:56:19 2021 +0000 (2021-06-12)
parents c71df21187b4
children d7522d21c4d3
rev   line source
claudinei@3393 1 # SliTaz package receipt.
claudinei@3393 2
claudinei@3393 3 PACKAGE="python-sphinx"
Hans-G?nter@23564 4 VERSION="1.8.5"
claudinei@3393 5 CATEGORY="utilities"
claudinei@3393 6 SHORT_DESC="Documentation Tool."
claudinei@3393 7 MAINTAINER="claudinei@slitaz.org"
pascal@15376 8 LICENSE="BSD"
Hans-G?nter@23564 9 WEB_SITE="https://www.sphinx-doc.org/"
Hans-G?nter@23564 10
Hans-G?nter@23564 11 SOURCE="Sphinx"
claudinei@3393 12 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@23564 13 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
pascal@15376 14
pascal@21582 15 DEPENDS="python python-docutils python-jinja2 python-pygments python-setuptools"
claudinei@3393 16 BUILD_DEPENDS="$DEPENDS python-dev"
claudinei@3393 17
claudinei@3393 18 # Rules to configure and make the package.
claudinei@3393 19 compile_rules()
claudinei@3393 20 {
claudinei@3393 21 python setup.py build &&
pascal@15376 22 python setup.py install --root=$DESTDIR
claudinei@3393 23 }
claudinei@3393 24
claudinei@3393 25 # Rules to gen a SliTaz package suitable for Tazpkg.
claudinei@3393 26 genpkg_rules()
claudinei@3393 27 {
Hans-G?nter@23564 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 }