# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- 
# $Id: Portfile 62001 2009-12-27 13:48:29Z krischik@macports.org $
# vim: set fileencoding=utf-8 tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab filetype=tcl :

PortSystem	    1.0
PortGroup python26  1.0

name		    py26-mechanize
version		    0.1.9
categories	    python www
platforms	    darwin
maintainers	    openmaintainer krischik
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 6754f9959a2d00ec028bf84db9300e87 \
		    sha1 6d34e0ee75d86fc95e87342721d6ad7f00bdbaba \
		    rmd160 009298883f7f68f96bf4fc7a9cdd20e6c936f6a8

depends_lib-append  port:py26-clientform
		    
test.run	    yes
test.cmd	    ${python.bin}
test.target	    test.py

post-destroot {
    foreach f [glob -directory ${worksrcpath}/ *.txt *.html] {
	copy $f ${destroot}${prefix}/share/doc/${name}/[file tail $f]
    }
    foreach f [glob -directory ${worksrcpath}/examples *] {
	copy $f ${destroot}${prefix}/share/doc/${name}/examples/[file tail $f]
    }
}
