wok-6.x annotate python-mechanize/receipt @ rev 13567
Add: python-mechanize
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Nov 03 14:23:22 2012 +0100 (2012-11-03) |
parents | |
children | fd4f1e692109 |
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" |
pankso@13567 | 9 TARBALL="${SOURCE}-${VERSION}.tar.gz" |
pankso@13567 | 10 WEB_SITE="http://wwwsearch.sourceforge.net/mechanize/" |
pankso@13567 | 11 WGET_URL="http://pypi.python.org/packages/source/m/mechanize/$TARBALL" |
pankso@13567 | 12 |
pankso@13567 | 13 DEPENDS="python" |
pankso@13567 | 14 BUILD_DEPENDS="python-dev python-distribute" |
pankso@13567 | 15 |
pankso@13567 | 16 # Rules to configure and make the package. |
pankso@13567 | 17 compile_rules() |
pankso@13567 | 18 { |
pankso@13567 | 19 cd $src |
pankso@13567 | 20 python setup.py install --root="$DESTDIR" --optimize=1 |
pankso@13567 | 21 } |
pankso@13567 | 22 |
pankso@13567 | 23 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@13567 | 24 genpkg_rules() |
pankso@13567 | 25 { |
pankso@13567 | 26 mkdir -p $fs/usr |
pankso@13567 | 27 cp -a $install/usr/lib $fs/usr |
pankso@13567 | 28 } |