# -*- 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 PortGroup github 1.0 github.setup SciTools cartopy 0.17.0 v name py-${github.project} revision 0 categories-append science gis graphics platforms darwin license LGPL-3 maintainers {petr @petrrr} openmaintainer description A library providing cartographic tools for python. long_description \ Cartopy is a Python package designed to make drawing maps for data \ analysis and visualisation as easy as possible. It makes use of the \ powerful PROJ.4, numpy and shapely libraries and has a simple and \ intuitive drawing interface to matplotlib for creating publication \ quality maps. homepage http://scitools.org.uk/cartopy/ checksums md5 aae81ff8179b297f920efc956c4fb6c1 \ rmd160 d0974c78da8f8d76f6c06dfde4efc40b953b5d80 \ sha256 87c792f0a5f377ae3cb068dd01f64dad0a708c277955be8f0a7645ba6a6e4bc9 \ size 9049736 python.versions 27 34 35 36 37 if {${name} ne ${subport}} { depends_build-append port:py${python.version}-setuptools \ port:py${python.version}-cython \ port:py${python.version}-numpy \ port:pkgconfig # default depends_lib-append port:proj4 \ port:geos \ port:py${python.version}-numpy \ port:py${python.version}-pyshp \ port:py${python.version}-shapely \ port:py${python.version}-six # optional (but keep port simple): plotting, epsg, ows depends_lib-append \ port:py${python.version}-gdal \ port:py${python.version}-matplotlib \ port:py${python.version}-Pillow \ port:py${python.version}-scipy \ port:py${python.version}-epsg \ port:py${python.version}-owslib # Required for post-installation testing only. depends_run-append port:py${python.version}-mock \ port:py${python.version}-pytest # Add search paths for proj4 binary and pkgconfig files to build/destroot env # Allows setup.py to identify proj4 non-standard location and build flags # https://trac.macports.org/ticket/56150 set proj4_prefix ${prefix}/lib/proj49 build.env-append PATH=${proj4_prefix}/bin:$env(PATH) \ PKG_CONFIG_PATH=${proj4_prefix}/lib/pkgconfig destroot.env-append PATH=${proj4_prefix}/bin:$env(PATH) # Adding documentation post-destroot { set dest_doc ${destroot}${prefix}/share/doc/${subport} xinstall -d ${dest_doc} xinstall -m 755 -W ${worksrcpath} \ README.md \ INSTALL \ CHANGES \ COPYING \ COPYING.LESSER \ CONTRIBUTING.md \ ${dest_doc} } livecheck.type none }