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

Last change on this file was 149440, checked in by petr@…, 17 months ago

py-gdal: upgrade to 2.1.0, fixes #51589.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 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 149440 2016-06-20 18:07:51Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7set _name           GDAL
8set _n              [string index ${_name} 0]
9
10name                py-gdal
11version             2.1.0
12categories-append   gis
13platforms           darwin
14license             MIT
15maintainers         petr openmaintainer
16
17description         GDAL: Geospatial Data Abstraction Library
18long_description \
19    This Python package and extensions are a number of tools for programming \
20    and manipulating the GDAL Geospatial Data Abstraction Library.
21
22homepage            http://www.gdal.org
23master_sites        pypi:${_n}/${_name}/
24distname            ${_name}-${version}
25
26checksums           md5     64084a5f114b4dffc53280e28d2ba4f3 \
27                    sha1    ad569639a0ef4a322aec6dc23e05bdce2ae9f145 \
28                    rmd160  f328d23024488b9bd4cc3935a0317036c122197c \
29                    sha256  eca0fb3b94168370e06dc32c8bc74b5383e73b65ca784180c434adbba35b70d9     
30
31python.versions     27 34 35
32
33if {${name} ne ${subport}} {
34    depends_lib-append     port:gdal \
35                           port:py${python.version}-numpy
36    patch {
37        reinplace "s|../../apps/|${prefix}/bin/|" ${worksrcpath}/setup.cfg
38    }
39
40    post-destroot {
41        set dest_doc ${destroot}${prefix}/share/doc/${subport}
42        xinstall -m 755 -d ${dest_doc}
43
44        xinstall ${worksrcpath}/README.txt ${dest_doc}
45
46        copy ${worksrcpath}/samples  ${dest_doc}/examples
47        copy ${worksrcpath}/scripts  ${dest_doc}/examples
48    }
49
50    livecheck.type  none
51} else {
52    livecheck.type  regex
53    livecheck.url   https://pypi.python.org/pypi/${_name}/json
54    livecheck.regex "\"${_name}-(\[.\\d\]+)\\.tar\\.gz\""
55}
Note: See TracBrowser for help on using the repository browser.