source: trunk/dports/python/py-pyregion/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.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
7set _name           pyregion
8set _n              [string index ${_name} 0]
9
10name                py-${_name}
11version             1.1.4
12categories-append   science
13platforms           darwin
14maintainers         robitaille openmaintainer
15
16description         pyregion is a Python module to parse ds9 region files
17long_description    ${description}
18
19homepage            http://leejjoon.github.com/${_name}/
20master_sites        pypi:${_n}/${_name}/
21distname            ${_name}-${version}
22
23checksums           md5     332f16542fbe1d6389c6cf27bd92c720 \
24                    rmd160  d174674119afa81b4fa16b38a4d3dcc106ab3346 \
25                    sha256  2d7d5ce46a3b4177978d4901c9c46ce402165113049006b923f5346b014973b9
26
27python.versions     27 34
28
29if {${name} ne ${subport}} {
30    depends_build-append  port:py${python.version}-numpy
31
32    depends_run-append  port:py${python.version}-matplotlib \
33                        port:py${python.version}-parsing \
34                        port:py${python.version}-astropy
35
36    livecheck.type  none
37} else {
38    livecheck.type  regex
39    livecheck.url   [lindex ${master_sites} 0]
40    livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
41}
Note: See TracBrowser for help on using the repository browser.