# $Id: Portfile,v 1.4 2005/09/25 09:43:34 mww Exp $

PortSystem 1.0
PortGroup python24 1.0

name			py-mechanize
version			0.0.9a
categories		python www
platforms		darwin
maintainers		mww@opendarwin.org
description		Stateful programmatic web browsing
long_description	Stateful programmatic web browsing, after Andy \
				Lester's Perl module WWW::Mechanize.

homepage		http://wwwsearch.sourceforge.net/mechanize
master_sites	${homepage}/src
distname		mechanize-${version}
checksums		md5 7c805a9d3596b9e3267b1f88a9bbe1da

depends_lib-append	port:py-clientcookie \
				port:py-clientform \
				port:py-pullparser

test.run		yes
test.cmd		${python.bin}
test.target		test.py

post-destroot	{
	xinstall -m 644 -W ${worksrcpath} COPYING ChangeLog GeneralFAQ.html \
		INSTALL README.html README.txt \
		${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 ${worksrcpath}/examples/hack21.py \
		${destroot}${prefix}/share/doc/${name}/examples
}
