wok-current annotate python-sphinx/receipt @ rev 24933
updated muparser and muparser-dev (2.2.6.1 -> 2.3.3)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Apr 13 17:29:40 2022 +0100 (2022-04-13) |
parents | e707d374fb00 |
children | 3b333032b798 |
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 |
pascal@24500 | 18 # What is the latest version available today? |
pascal@24500 | 19 current_version() |
pascal@24500 | 20 { |
pascal@24500 | 21 wget -O - https://github.com/sphinx-doc/sphinx/releases 2>/dev/null | \ |
pascal@24500 | 22 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24500 | 23 } |
pascal@24500 | 24 |
claudinei@3393 | 25 # Rules to configure and make the package. |
claudinei@3393 | 26 compile_rules() |
claudinei@3393 | 27 { |
claudinei@3393 | 28 python setup.py build && |
pascal@15376 | 29 python setup.py install --root=$DESTDIR |
claudinei@3393 | 30 } |
claudinei@3393 | 31 |
claudinei@3393 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3393 | 33 genpkg_rules() |
claudinei@3393 | 34 { |
Hans-G?nter@23564 | 35 cp -a $install/usr $fs |
claudinei@3393 | 36 } |
claudinei@3393 | 37 |
claudinei@3404 | 38 # Remove old package. |
claudinei@3404 | 39 post_install() |
claudinei@3404 | 40 { |
pascal@18730 | 41 [ ! -d "$1/var/lib/tazpkg/installed/sphinx" ] || |
pascal@18730 | 42 rm -rf "$1/var/lib/tazpkg/installed/sphinx" |
claudinei@3404 | 43 } |