source: trunk/dports/python/py25-mechanize/Portfile @ 37127

Last change on this file since 37127 was 37127, checked in by landonf@…, 12 years ago

Add missing python 2.5 port (based on the 2.4 port, looks like it was meant to be here but never made it)

File size: 1.2 KB
Line 
1# -*- 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
2# $Id: Portfile 36361 2008-04-28 08:36:41Z akira@macports.org $
3
4PortSystem 1.0
5PortGroup python25 1.0
6
7name                py25-mechanize
8version             0.1.7b
9categories          python www
10platforms           darwin
11maintainers         openmaintainer akira
12description         Stateful programmatic web browsing
13long_description    Stateful programmatic web browsing, after Andy \
14                    Lester's Perl module WWW::Mechanize.
15
16homepage            http://wwwsearch.sourceforge.net/mechanize
17master_sites        ${homepage}/src
18distname            mechanize-${version}
19checksums           md5 7d431ccec4e64063c7378ce3be53ea34
20
21depends_lib-append  port:py25-clientform
22                   
23test.run            yes
24test.cmd            ${python.bin}
25test.target         test.py
26
27post-destroot {
28    foreach f [glob -directory ${worksrcpath}/ *.txt *.html] {
29        copy $f ${destroot}${prefix}/share/doc/${name}/[file tail $f]
30    }
31    foreach f [glob -directory ${worksrcpath}/examples *] {
32        copy $f ${destroot}${prefix}/share/doc/${name}/examples/[file tail $f]
33    }
34}
Note: See TracBrowser for help on using the repository browser.