# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 PortSystem 1.0 PortGroup python 1.0 name py-mechanize version 0.2.5 categories-append www license {BSD ZPL-2.1} platforms {darwin any} supported_archs noarch maintainers nomaintainer 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-append ${homepage}/src checksums md5 32657f139fc2fb75bcf193b63b8c60b2 \ sha1 9d2fb74fc762e54848c0b3ed4b6a9c73722ef619 \ rmd160 f9deafaeb591cd4047a6f8845221463320c86d9b python.versions 27 if {${name} ne ${subport}} { depends_build port:py${python.version}-setuptools 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/${subport}/[file tail $f] } foreach f [glob -directory ${worksrcpath}/examples *] { copy $f ${destroot}${prefix}/share/doc/${subport}/examples/[file tail $f] } } livecheck.type none } else { livecheck.regex mechanize-(\[0-9.\]+)${extract.suffix} livecheck.type regex livecheck.url ${homepage}/src }