# -*- 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.23.0 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 default distname {Cartopy-${version}} checksums rmd160 0cd3308899a0bbad7e5211f0b40b3bc1aa1e05e5 \ sha256 231f37b35701f2ba31d94959cca75e6da04c2eea3a7f14ce1c75ee3b0eae7676 \ size 10687976 python.versions 39 310 311 312 if {${name} ne ${subport}} { if {${python.version} < 310} { version 0.21.1 revision 0 checksums rmd160 80066676fe504980d639b5b0bfe5cb5cfdc97d25 \ sha256 89d5649712c8582231c6e11825a04c85f6f0cee94dbb89e4db23eabca1cc250a \ size 10917080 patchfiles patch-pyproject.toml.diff # 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} } } else { patchfiles patch-pyproject.toml.0.23.diff # 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 LICENSE ${dest_doc} } } 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 # 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) }