wok-6.x annotate python-mechanize/receipt @ rev 21582
Use python-setuptools as bdeps (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun May 19 19:45:04 2019 +0200 (2019-05-19) |
parents | ff9bdf719828 |
children | 811dfc4df628 |
rev | line source |
---|---|
pankso@13567 | 1 # SliTaz package receipt. |
pankso@13567 | 2 |
pankso@13567 | 3 PACKAGE="python-mechanize" |
pankso@13567 | 4 VERSION="0.2.5" |
pankso@13567 | 5 SOURCE="mechanize" |
pankso@13567 | 6 CATEGORY="network" |
pankso@13567 | 7 SHORT_DESC="Stateful programmatic web browsing in Python." |
pankso@13567 | 8 MAINTAINER="pankso@slitaz.org" |
pascal@15378 | 9 LICENSE="BSD" |
pankso@13567 | 10 TARBALL="${SOURCE}-${VERSION}.tar.gz" |
pankso@13567 | 11 WEB_SITE="http://wwwsearch.sourceforge.net/mechanize/" |
pankso@13567 | 12 WGET_URL="http://pypi.python.org/packages/source/m/mechanize/$TARBALL" |
pankso@16477 | 13 HOST_ARCH="i486 arm" |
pankso@13567 | 14 |
pankso@13567 | 15 DEPENDS="python" |
pascal@21582 | 16 BUILD_DEPENDS="python-dev python-distribute python-setuptools" |
pankso@13567 | 17 |
pankso@13567 | 18 # Rules to configure and make the package. |
pankso@13567 | 19 compile_rules() |
pankso@13567 | 20 { |
pankso@13567 | 21 python setup.py install --root="$DESTDIR" --optimize=1 |
pankso@13567 | 22 } |
pankso@13567 | 23 |
pankso@13567 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@13567 | 25 genpkg_rules() |
pankso@13567 | 26 { |
pankso@13567 | 27 mkdir -p $fs/usr |
pankso@13567 | 28 cp -a $install/usr/lib $fs/usr |
pankso@13567 | 29 } |