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

Last change on this file was 148976, checked in by raimue@…, 14 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.9 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
7set _name           restkit
8set _n              [string index ${_name} 0]
9
10name                py-${_name}
11version             4.2.2
12categories          python www
13license             MIT
14platforms           darwin
15supported_archs     noarch
16maintainers         petr openmaintainer
17
18description         HTTP resource kit for Python
19
20long_description    Restkit is an HTTP resource kit for Python. It allows \
21                    you to easily access to HTTP resource and build objects \
22                    around it. It's the base of couchdbkit a Python CouchDB \
23                    framework.
24
25homepage            http://benoitc.github.io/restkit/
26
27master_sites        pypi:${_n}/${_name}/
28distname            ${_name}-${version}
29
30checksums           md5 99fb4e1af6e1b25c488dace620b4676f \
31                    sha1 305b75024893f64a62b5a018518f659c16532e39 \
32                    rmd160 1e4f9cdfcf2c345ad35c001cfa8e3c778c052942
33
34python.versions     27
35
36if {${name} ne ${subport}} {
37    depends_build-append    port:py${python.version}-setuptools
38
39    depends_lib-append      port:py${python.version}-http-parser \
40                            port:py${python.version}-socketpool
41
42    # Adding documentation and examples
43    post-destroot {
44        set dest_doc ${destroot}${prefix}/share/doc/${subport}
45        xinstall -${dest_doc}
46        xinstall -m 755 -W ${worksrcpath} \
47            README.rst \
48            LICENSE \
49            NOTICE \
50            THANKS \
51                ${dest_doc}
52
53        delete ${dest_doc}/examples
54        copy ${worksrcpath}/examples ${dest_doc}/examples
55    }
56
57    livecheck.type  none
58} else {
59    livecheck.type  regex
60    livecheck.url   https://pypi.python.org/pypi/${_name}/json
61    livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
62}
Note: See TracBrowser for help on using the repository browser.