source: trunk/dports/python/py-rtree/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.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-rtree
8version             0.8.2
9revision            0
10categories-append   devel
11platforms           darwin
12license             LGPL
13supported_archs     noarch
14
15python.versions     27 34
16
17maintainers         stromnov openmaintainer
18
19description         R-Tree spatial index for Python GIS
20
21long_description    Rtree is a Python library that uses ctypes and an  \
22                    internally built C API to wrap libspatialindex and \
23                    provide very flexible spatial indexing.
24
25homepage            http://trac.gispython.org/lab/wiki/Rtree
26master_sites        pypi:R/Rtree/
27
28distname            Rtree-${version}
29
30checksums           rmd160  48852349c92ac97e85fc2586969584fc540e819c \
31                    sha256  064ecd9791fe170a8492f4ae75b0cbe8e62b5392f136a159a24d1b70c86d3c3f
32
33if {${name} ne ${subport}} {
34    depends_lib-append  port:spatialindex
35
36    depends_build-append \
37                        port:py${python.version}-setuptools
38
39    patchfiles          patch-rtree_core.py.diff
40
41    post-patch {
42        reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/rtree/core.py
43    }
44
45    livecheck.type      none
46} else {
47    livecheck.type      regex
48    livecheck.url       https://pypi.python.org/pypi/rtree/json
49    livecheck.regex     {Rtree-(\d+(?:\.\d+)*).[tz]}
50}
Note: See TracBrowser for help on using the repository browser.