wok-6.x annotate python-docutils/receipt @ rev 24370
updated blackbox and blackbox-lang (0.75 -> 0.77)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Feb 05 14:51:40 2022 +0100 (2022-02-05) |
parents | 504075bdacfe |
children | 076f424196b2 |
rev | line source |
---|---|
claudinei@3392 | 1 # SliTaz package receipt. |
claudinei@3392 | 2 |
claudinei@3392 | 3 PACKAGE="python-docutils" |
Hans-G?nter@23480 | 4 VERSION="0.16" |
claudinei@3392 | 5 CATEGORY="development" |
claudinei@3392 | 6 SHORT_DESC="Text processing system." |
claudinei@3392 | 7 MAINTAINER="claudinei@slitaz.org" |
pascal@15379 | 8 LICENSE="PublicDomain GPL3 BSD" |
Hans-G?nter@23480 | 9 WEB_SITE="https://pypi.org/project/docutils" |
Hans-G?nter@23480 | 10 |
Hans-G?nter@23480 | 11 SOURCE="docutils" |
claudinei@14874 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23480 | 13 WGET_URL="https://files.pythonhosted.org/packages/source/d/$SOURCE/$TARBALL" |
Hans-G?nter@23480 | 14 |
Hans-G?nter@23480 | 15 SUGGESTED="python-pil" |
claudinei@3392 | 16 DEPENDS="python" |
Hans-G?nter@23480 | 17 BUILD_DEPENDS="python python-dev python-setuptools" |
claudinei@3392 | 18 |
pascal@24288 | 19 current_version() |
pascal@24288 | 20 { |
pascal@24288 | 21 wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' |
pascal@24288 | 22 } |
pascal@24288 | 23 |
claudinei@3392 | 24 # Rules to configure and make the package. |
claudinei@3392 | 25 compile_rules() |
claudinei@3392 | 26 { |
claudinei@14874 | 27 python setup.py install --root=$DESTDIR |
claudinei@3392 | 28 } |
claudinei@3392 | 29 |
claudinei@3392 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3392 | 31 genpkg_rules() |
claudinei@3392 | 32 { |
Hans-G?nter@23480 | 33 cp -a $install/usr $fs |
claudinei@3392 | 34 } |
claudinei@3392 | 35 |
claudinei@3404 | 36 # Remove old package. |
claudinei@3404 | 37 post_install() |
claudinei@3404 | 38 { |
pascal@18730 | 39 [ ! -d "$1/var/lib/tazpkg/installed/docutils" ] || |
pascal@18730 | 40 rm -rf "$1/var/lib/tazpkg/installed/docutils" |
claudinei@3404 | 41 } |