# HG changeset patch # User Christophe Lincoln # Date 1351949002 -3600 # Node ID f60a7befb1e79afeab6d891fbedb2d866b9372f5 # Parent f4af356b3cd4b3a1a94bf75ec58cd739ee82ad87 Add: python-mechanize diff -r f4af356b3cd4 -r f60a7befb1e7 python-mechanize/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python-mechanize/receipt Sat Nov 03 14:23:22 2012 +0100 @@ -0,0 +1,28 @@ +# SliTaz package receipt. + +PACKAGE="python-mechanize" +VERSION="0.2.5" +SOURCE="mechanize" +CATEGORY="network" +SHORT_DESC="Stateful programmatic web browsing in Python." +MAINTAINER="pankso@slitaz.org" +TARBALL="${SOURCE}-${VERSION}.tar.gz" +WEB_SITE="http://wwwsearch.sourceforge.net/mechanize/" +WGET_URL="http://pypi.python.org/packages/source/m/mechanize/$TARBALL" + +DEPENDS="python" +BUILD_DEPENDS="python-dev python-distribute" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + python setup.py install --root="$DESTDIR" --optimize=1 +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr + cp -a $install/usr/lib $fs/usr +}