# -*- 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-matplotlib-basemap
python.rootname     basemap
version             2.0.0
revision            0

categories-append   graphics math
license             MIT
maintainers         nomaintainer

description         matplotlib toolkit for plotting data on map projections
long_description    Matplotlib basemap is a matplotlib toolkit python library \
                    for plotting data on map projections

homepage            https://github.com/matplotlib/basemap

checksums           rmd160  5da872afedbdbd3f692d00cede9ce659b450ab2d \
                    sha256  923a643a26db6e1704fb7ca45a7636fb190dbc123ad8d23401057a8f5b884bd8 \
                    size    150239

python.versions     313

compiler.c_standard 1999

build.env-append    GEOS_DIR=${prefix}
destroot.env-append GEOS_DIR=${prefix}

if {${name} ne ${subport}} {
    patchfiles      patch-pyproject.toml.diff

    depends_build-append \
                    port:py${python.version}-cython

    depends_lib-append \
                    port:geos \
                    port:py${python.version}-basemap-data \
                    port:py${python.version}-matplotlib \
                    port:py${python.version}-numpy \
                    port:py${python.version}-packaging \
                    port:py${python.version}-pyproj \
                    port:py${python.version}-pyshp

    test.run        yes
}
