source: trunk/dports/python/py-aniso8601/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.2 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=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           aniso8601
8set _n              [string index ${_name} 0]
9
10name                py-aniso8601
11version             0.82
12
13categories-append   devel textproc
14platforms           darwin
15supported_archs     noarch
16license             BSD
17maintainers         nomaintainer
18
19description         A library for parsing ISO 8601 strings
20long_description    ${description}
21
22master_sites        pypi:${_n}/${_name}
23distname            aniso8601-${version}
24
25checksums           rmd160  309d4f27849d9db327f66f7911bae56b5bea57fa \
26                    sha256  e33ffc4ff6882e6a318c07844e346cd6160abe2f48cc2e797d2fe5f36364789e
27
28python.versions     27 34 35
29
30if {${name} ne ${subport}} {
31    depends_build-append    port:py${python.version}-setuptools
32
33    livecheck.type  none
34    # work-arround for missing homepage
35    livecheck.url
36} else {
37    livecheck.type  regex
38    livecheck.url   https://pypi.python.org/pypi/${_name}/json
39    livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
40}
Note: See TracBrowser for help on using the repository browser.