source: trunk/dports/python/py-future/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: 2.0 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           future
8set _n              [string index ${_name} 0]
9
10name                py-${_name}
11version             0.15.2
12categories-append   devel
13platforms           darwin
14supported_archs     noarch
15license             MIT
16
17maintainers         petr openmaintainer
18
19description         Provides clean single-source support for Python 3 and 2
20long_description    \
21    The Python package future is the missing compatibility layer between \
22    Python 3 and Python 2. It allows you to use a single, clean Python \
23    3.x-compatible codebase to support both Python 3 and Python 2 with \
24    minimal overhead. The futurize script aids in converting code from \
25    either Python 2 or Python 3 to code compatible with both platforms.
26
27homepage            http://python-future.org/
28master_sites        pypi:${_n}/${_name}/
29distname            ${_name}-${version}
30
31checksums           md5     a68eb3c90b3b76714c5ceb8c09ea3a06 \
32                    rmd160  6ed4c6ce80b367724103b3b99a4643180c3f5fa0 \
33                    sha256  3d3b193f20ca62ba7d8782589922878820d0a023b885882deec830adbf639b97
34
35python.versions     27 34 35
36
37if {${name} ne ${subport}} {
38    depends_build-append    port:py${python.version}-setuptools
39
40    # Adding documentation
41    post-destroot {
42        set dest_doc ${destroot}${prefix}/share/doc/${subport}
43        xinstall -${dest_doc}
44        xinstall -m 755 -W ${worksrcpath} \
45            README.rst \
46            LICENSE.txt \
47                ${dest_doc}
48        eval copy [ glob ${worksrcpath}/docs/*.py  ] ${dest_doc}
49        eval copy [ glob ${worksrcpath}/docs/*.rst ] ${dest_doc}
50    }
51
52    livecheck.type  none
53} else {
54    livecheck.type  regex
55    livecheck.url   https://pypi.python.org/pypi/${_name}/json
56    livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
57}
Note: See TracBrowser for help on using the repository browser.