# -*- 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: Portfile 148976 2016-05-24 07:48:05Z raimue@macports.org $ PortSystem 1.0 PortGroup python 1.0 set _name pyshp set _n [string index ${_name} 0] name py-${_name} version 1.2.3 categories-append gis platforms darwin supported_archs noarch license MIT maintainers petr openmaintainer description Python Shapefile Library long_description PyShp library provides read and write support for the \ ESRI shapefile format in pure Python. This format is a \ popular Geographic Information System vector data format \ created by ESRI. You can read and write shp, shx, and dbf \ files with all types of geometry. Everything in the \ public ESRI shapefile specification is implemented. homepage http://code.google.com/${_n}/${_name}/ distname ${_name}-${version} master_sites pypi:${_n}/${_name} checksums md5 f857099a57f93830e0c72a31e9c506a8 \ rmd160 47b64bca853f1d0e3ac5300e40cae588e3b57587 \ sha256 e18cc19659dadc5ddaa891eb780a6958094da0cf105a1efe0f67e75b4fa1cdf9 python.versions 27 34 35 if {${name} ne ${subport}} { depends_build-append port:py${python.version}-setuptools # Adding documentation post-destroot { set dest_doc ${destroot}${prefix}/share/doc/${subport} xinstall -d ${dest_doc} xinstall -m 755 -W ${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\]+)\\${extract.suffix}\"" }