| 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 | |
|---|
| 5 | PortSystem 1.0 |
|---|
| 6 | PortGroup python27 1.0 |
|---|
| 7 | |
|---|
| 8 | name py27-mechanize |
|---|
| 9 | version 0.2.5 |
|---|
| 10 | categories python www |
|---|
| 11 | platforms darwin |
|---|
| 12 | maintainers openmaintainer krischik |
|---|
| 13 | description Stateful programmatic web browsing |
|---|
| 14 | long_description Stateful programmatic web browsing, after Andy \ |
|---|
| 15 | Lester's Perl module WWW::Mechanize. |
|---|
| 16 | |
|---|
| 17 | homepage https://github.com/jjlee/mechanize |
|---|
| 18 | fetch.type git |
|---|
| 19 | git.url https://github.com/jjlee/mechanize.git |
|---|
| 20 | git.branch 3517b6154ac454d01e3b |
|---|
| 21 | |
|---|
| 22 | livecheck.type regex |
|---|
| 23 | livecheck.url ${homepage} |
|---|
| 24 | livecheck.regex {/tree/(\d+\.[^\"]+)\">\1<} |
|---|
| 25 | |
|---|
| 26 | test.run yes |
|---|
| 27 | test.cmd ${python.bin} |
|---|
| 28 | test.target test.py |
|---|
| 29 | |
|---|
| 30 | post-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 | |
|---|