source: trunk/dports/python/py-http-parser/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.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 148976 2016-05-24 07:48:05Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7set _name           http-parser
8set _n              [string index ${_name} 0]
9
10name                py-${_name}
11version             0.8.3
12categories          python www
13license             MIT PSF
14platforms           darwin
15maintainers         petr openmaintainer
16
17description         HTTP request/response parser
18
19long_description    HTTP request/response parser for Python. If possible a \
20                    C parser based on http-parser from Ryan Dahl will be used.
21
22homepage            http://github.com/benoitc/http-parser
23
24master_sites        pypi:${_n}/${_name}/
25distname            ${_name}-${version}
26
27checksums           md5 751967e2785c829dffebdc9a511e0eec \
28                    sha1 de2509e6b62d6beb191e0953d3b098ffac27fedd \
29                    rmd160 5953b6a238917e14b1bf6c1e4f995fbac03463b5
30
31python.versions     27 34 35
32
33if {${name} ne ${subport}} {
34    depends_build       port:py${python.version}-setuptools
35
36    # Adding documentation and examples
37    post-destroot {
38        set dest_doc ${destroot}${prefix}/share/doc/${subport}
39        xinstall -${dest_doc}
40        xinstall -m 755 -W ${worksrcpath} \
41            README.rst \
42            LICENSE \
43            NOTICE \
44            THANKS \
45                ${dest_doc}
46
47        delete ${dest_doc}/examples
48        copy ${worksrcpath}/examples ${dest_doc}/examples
49    }
50
51    livecheck.type  none
52} else {
53    livecheck.type  regex
54    livecheck.url   https://pypi.python.org/pypi/${_name}/json
55    livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
56}
Note: See TracBrowser for help on using the repository browser.