source: trunk/dports/python/py-mechanize/Portfile @ 102584

Last change on this file since 102584 was 102584, checked in by larryv@…, 7 years ago

python/*: Use categories-append in all {no,open}maintainer ports that use a Python portgroup.

Overriding a portgroup's default category is not necessarily incorrect, but if there isn't a good reason for it, it sets a bad example.

(See https://lists.macosforge.org/pipermail/macports-dev/2013-February/021899.html and related messages.)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 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 102584 2013-02-05 04:25:13Z larryv@macports.org $
3
4PortSystem 1.0
5PortGroup python 1.0
6
7name                py-mechanize
8version             0.2.5
9categories-append   www
10license             {BSD ZPL-2.1}
11platforms           darwin
12supported_archs     noarch
13maintainers         krischik akitada openmaintainer
14description         Stateful programmatic web browsing
15long_description    Stateful programmatic web browsing, after Andy \
16                    Lester's Perl module WWW::Mechanize.
17
18homepage            http://wwwsearch.sourceforge.net/mechanize
19master_sites        http://pypi.python.org/packages/source/m/mechanize \
20                    ${homepage}/src
21distname            mechanize-${version}
22checksums           md5 32657f139fc2fb75bcf193b63b8c60b2 \
23                    sha1 9d2fb74fc762e54848c0b3ed4b6a9c73722ef619 \
24                    rmd160 f9deafaeb591cd4047a6f8845221463320c86d9b
25
26python.versions     24 25 26 27
27
28if {$subport != $name} {
29    depends_build       port:py${python.version}-distribute
30
31    test.run            yes
32    test.cmd            ${python.bin}
33    test.target         test.py
34   
35    post-destroot {
36        foreach f [glob -directory ${worksrcpath}/ *.txt *.html] {
37            copy $f ${destroot}${prefix}/share/doc/${subport}/[file tail $f]
38        }
39        foreach f [glob -directory ${worksrcpath}/examples *] {
40            copy $f ${destroot}${prefix}/share/doc/${subport}/examples/[file tail $f]
41        }
42    }
43    livecheck.type      none
44} else {
45    livecheck.regex     mechanize-(\[0-9.\]+)${extract.suffix}
46    livecheck.type      regex
47    livecheck.url       ${homepage}/src
48}
Note: See TracBrowser for help on using the repository browser.