# -*- 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 # $Id$ PortSystem 1.0 PortGroup python 1.0 set _name GDAL set _n [string index ${_name} 0] name py-gdal version 2.1.0 categories-append gis platforms darwin license MIT maintainers petr openmaintainer description GDAL: Geospatial Data Abstraction Library long_description \ This Python package and extensions are a number of tools for programming \ and manipulating the GDAL Geospatial Data Abstraction Library. homepage http://www.gdal.org master_sites pypi:${_n}/${_name}/ distname ${_name}-${version} checksums md5 64084a5f114b4dffc53280e28d2ba4f3 \ sha1 ad569639a0ef4a322aec6dc23e05bdce2ae9f145 \ rmd160 f328d23024488b9bd4cc3935a0317036c122197c \ sha256 eca0fb3b94168370e06dc32c8bc74b5383e73b65ca784180c434adbba35b70d9 python.versions 27 34 35 if {${name} ne ${subport}} { depends_lib-append port:gdal \ port:py${python.version}-numpy patch { reinplace "s|../../apps/|${prefix}/bin/|" ${worksrcpath}/setup.cfg } post-destroot { set dest_doc ${destroot}${prefix}/share/doc/${subport} xinstall -m 755 -d ${dest_doc} xinstall ${worksrcpath}/README.txt ${dest_doc} copy ${worksrcpath}/samples ${dest_doc}/examples copy ${worksrcpath}/scripts ${dest_doc}/examples } livecheck.type none } else { livecheck.type regex livecheck.url https://pypi.python.org/pypi/${_name}/json livecheck.regex "\"${_name}-(\[.\\d\]+)\\.tar\\.gz\"" }