source: trunk/dports/python/py-futures/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.3 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-futures
8version             2.1.6
9categories-append   devel
10platforms           darwin
11license             BSD
12supported_archs     noarch
13maintainers         nomaintainer
14
15description         A Java-style futures package for Python
16long_description    ${description}
17
18homepage            http://code.google.com/p/pythonfutures/
19master_sites        pypi:f/futures/
20distname            futures-${version}
21
22checksums           rmd160  7b39105e242b9db316217c51e0e81214bc6e4526 \
23                    sha256  33f39102b631fa0a030b24c4341ba1f48558e435946d6735d47fe1f739d757c4
24
25python.versions     27 34
26
27if {${name} ne ${subport}} {
28    post-extract {
29        fs-traverse item ${worksrcpath} {
30            if {[file isdirectory ${item}]} {
31                file attributes ${item} -permissions a+rx
32            } elseif {[file isfile ${item}]} {
33                file attributes ${item} -permissions a+r
34            }
35        }
36    }
37
38    livecheck.type      none
39} else {
40    livecheck.type      regex
41    livecheck.url       https://pypi.python.org/pypi/futures/json
42    livecheck.regex     {futures-(\d+(?:\.\d+)*)\.[tz]}
43}
Note: See TracBrowser for help on using the repository browser.