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

Last change on this file was 152370, checked in by snc@…, 13 months ago

py-shapely: uodate to 1.5.17

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 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 152370 2016-09-05 19:35:30Z ryandesign@macports.org $
3
4PortSystem      1.0
5PortGroup           python 1.0
6
7name                py-shapely
8version             1.5.17
9python.versions     27 34 35
10categories-append     devel
11platforms       darwin
12maintainers     snc openmaintainer
13license             BSD
14homepage            http://toblerity.org/shapely/
15description     Shapely is a Python package for manipulation \
16                and analysis of 2D geospatial geometries
17
18long_description \
19                Shapely is a Python package for manipulation and \
20                analysis of 2D geospatial geometries. It is based on \
21                GEOS (http://geos.refractions.net). Shapely 1.0 is not \
22                concerned with data formats or coordinate reference \
23                systems.
24
25distname            Shapely-${version}
26master_sites        pypi:S/Shapely
27
28checksums           md5     afb3feef824bde120cd0eb63caf863f4 \
29                    rmd160  31a429383612493518d87935cfa6f90024606eba \
30                    sha256  31fee47d9208078a19f40a451c0c99c085d16343e66cbd0dd5af0af6f48cfc3a
31
32if {${name} ne ${subport}} {
33    depends_lib-append      port:geos
34    depends_build-append    port:py${python.version}-cython \
35                            port:py${python.version}-setuptools
36
37    post-patch {
38            reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/shapely/geos.py
39            reinplace s|\\\"cython\\\"|"${python.prefix}/bin/cython"| ${worksrcpath}/setup.py
40    }
41
42    livecheck.type      none
43} else {
44    livecheck.type          regex
45    livecheck.url           https://pypi.python.org/pypi/Shapely/json
46    livecheck.regex         {Shapely-(\d+(?:\.\d+)*)\.[tz]}
47}
Note: See TracBrowser for help on using the repository browser.