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

Last change on this file was 148976, checked in by raimue@…, 18 months ago

Mass update of python ports for master_sites pypi

The pypi hosting site changed the naming scheme for new uploads. While old URLs
continue to work, this possibly breaks updates as master_sites would need to be
changed. This patch updates all previously hardcoded references to
pypi.python.org to the pypi: mirror sites, which was already updated to check
at both the old and new location. See #51391.

Overriding maintainers as this is a mass update of ports.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 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 148976 2016-05-24 07:48:05Z ryandesign@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 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        pypi:m/mechanize \
20                    ${homepage}/src
21distname            mechanize-${version}
22checksums           md5 32657f139fc2fb75bcf193b63b8c60b2 \
23                    sha1 9d2fb74fc762e54848c0b3ed4b6a9c73722ef619 \
24                    rmd160 f9deafaeb591cd4047a6f8845221463320c86d9b
25
26python.versions     26 27
27
28if {${name} ne ${subport}} {
29    depends_build       port:py${python.version}-setuptools
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.