# -*- 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           github 1.0
PortGroup           python 1.0

name                py-matplotlib-basemap
github.setup        matplotlib basemap 1.2.0 v rel
categories-append   graphics math
license             LGPL-2.1
platforms           darwin
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

checksums           rmd160  1bc84b761419c3dba4e128edf7e053c407d9d12f \
                    sha256  6888dfa641886c58d7603cd7725f8f4c381c53589b758610380f7d7ebd89c192 \
                    size    132413362

python.versions     27 34 35 36 37

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

universal_variant   no

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-setuptools

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

    post-destroot {
        delete ${destroot}${python.pkgd}/mpl_toolkits/__init__.py
        delete ${destroot}${python.pkgd}/mpl_toolkits/__init__.pyc
    }

    test.run        yes
    test.cmd        ${python.bin} lib/mpl_toolkits/basemap/test.py
    test.target
    test.env        PYTHONPATH=[glob -nocomplain ${worksrcpath}/build/lib*]

    livecheck.type  none
}