Ticket #29032: Portfile

File Portfile, 1.2 KB (added by gorticus (Jason Mitchell), 14 years ago)

Mechanize 0.2.5 using git pull; does not require pyXX-clientform

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2# $Id: Portfile 71797 2010-09-23 15:06:18Z jameskyle@macports.org $
3# vim: set fileencoding=utf-8 tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab filetype=tcl :
4
5PortSystem        1.0
6PortGroup         python27 1.0
7
8name              py27-mechanize
9version           0.2.5
10categories        python www
11platforms         darwin
12maintainers       openmaintainer krischik
13description       Stateful programmatic web browsing
14long_description  Stateful programmatic web browsing, after Andy \
15        Lester's Perl module WWW::Mechanize.
16
17homepage          https://github.com/jjlee/mechanize
18fetch.type        git
19git.url           https://github.com/jjlee/mechanize.git
20git.branch        3517b6154ac454d01e3b
21
22livecheck.type    regex
23livecheck.url     ${homepage}
24livecheck.regex   {/tree/(\d+\.[^\"]+)\">\1<}
25
26test.run          yes
27test.cmd          ${python.bin}
28test.target       test.py
29
30post-destroot {
31  foreach f [glob -directory ${worksrcpath}/ *.txt *.html] {
32    copy $f ${destroot}${prefix}/share/doc/${name}/[file tail $f]
33  }
34  foreach f [glob -directory ${worksrcpath}/examples *] {
35    copy $f ${destroot}${prefix}/share/doc/${name}/examples/[file tail $f]
36  }
37}
38