# -*- 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 PortSystem 1.0 PortGroup python 1.0 set _name GDAL set _n [string index ${_name} 0] name py-gdal version 2.2.3 categories-append gis platforms darwin license MIT maintainers {petr @petrrr} 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 dcc9ffedb3d99cdf16b9686f4798b0e1 \ rmd160 1203d524d402cca00c7ed599c33613cd89b50171 \ sha256 561a952394bc1d9291179a8677eb6f5dafbf3e361c851f3dbb59db604c9b8e8b python.versions 27 34 35 36 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} } livecheck.type none } else { livecheck.type regex livecheck.url https://pypi.python.org/pypi/${_name}/json livecheck.regex "\"${_name}-(\[.\\d\]+)\\.tar\\.gz\"" }