source: trunk/dports/python/py-igraph/Portfile

Last change on this file was 148976, checked in by raimue@…, 16 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.5 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-igraph
8version             0.7
9categories-append   math
10platforms           darwin
11license             GPL-2+
12
13python.versions     26 27 34 35
14
15maintainers         snc openmaintainer
16
17description         Python interface to the igraph library
18
19long_description    Python interface to the igraph high performance \
20                    graph library
21
22homepage            http://pypi.python.org/pypi/python-igraph/
23master_sites        pypi:p/python-igraph/
24
25distname            python-igraph-${version}
26dist_subdir         python/${distname}/1/
27
28checksums           rmd160  0d843b17da829ee531336e9bbc5dbf064a270a5e \
29                    sha256  f155bca04d5e500cb3cc087d25ac9e09077959392d245b3cab588bd9b541f0d0
30
31if {${name} ne ${subport}} {
32    depends_build       port:pkgconfig port:py${python.version}-setuptools
33    depends_lib-append  port:igraph
34
35    patchfiles          patch-setup.cfg.diff \
36                        patch-setup.py.diff
37
38    post-patch {
39        reinplace s|@PREFIX@|${prefix}|g ${worksrcpath}/setup.cfg
40        reinplace s|@PREFIX@|${prefix}|g ${worksrcpath}/setup.py
41    }
42
43    livecheck.type      none
44} else {
45    livecheck.type      regex
46    livecheck.url       https://pypi.python.org/pypi/python-igraph/json
47    livecheck.regex     {python-igraph-(\d+(?:\.\d+)*)\.[tz]}
48}
Note: See TracBrowser for help on using the repository browser.