# -*- 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 name py-cartopy version 0.21.1 revision 0 categories-append science gis graphics license LGPL-3 maintainers {petr @petrrr} openmaintainer description A cartographic python library with matplotlib support long_description Cartopy is a Python package designed for geospatial data \ processing in order to produce maps and other geospatial \ data analyses.\ Cartopy makes use of the powerful PROJ.8, NumPy and Shapely \ libraries and includes a programmatic interface built on top \ of Matplotlib for the creation of publication quality maps. homepage https://scitools.org.uk/cartopy/docs/latest distname Cartopy-${version} checksums rmd160 80066676fe504980d639b5b0bfe5cb5cfdc97d25 \ sha256 89d5649712c8582231c6e11825a04c85f6f0cee94dbb89e4db23eabca1cc250a \ size 10917080 python.versions 38 39 310 311 if {${name} ne ${subport}} { depends_build-append port:py${python.version}-setuptools \ port:py${python.version}-setuptools_scm \ port:py${python.version}-setuptools_scm_git_archive \ path:bin/cython-${python.branch}:py${python.version}-cython \ port:py${python.version}-pythran \ port:pkgconfig # default depends_lib-append port:proj8 \ port:geos \ port:py${python.version}-numpy \ port:py${python.version}-pyshp \ port:py${python.version}-shapely \ # 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 patchfiles patch-pyproject.toml.diff # Add search paths for proj8 binary and pkgconfig files to build/destroot env # Allows setup.py to identify proj8 non-standard location and build flags # https://trac.macports.org/ticket/56150 set proj8_prefix ${prefix}/lib/proj8 build.env-append PATH=${proj8_prefix}/bin:$env(PATH) \ PKG_CONFIG_PATH=${proj8_prefix}/lib/pkgconfig destroot.env-append PATH=${proj8_prefix}/bin:$env(PATH) # Adding documentation post-destroot { set dest_doc ${destroot}${prefix}/share/doc/${subport} xinstall -d ${dest_doc} xinstall -m 0644 -W ${worksrcpath} README.md INSTALL \ CHANGES COPYING COPYING.LESSER ${dest_doc} } }