# -*- 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-pygmt
version                 0.18.0
revision                0

categories-append       science
platforms               {darwin any}
supported_archs         noarch
license                 BSD
maintainers             nomaintainer

description             Python interface for the Generic Mapping Tools
long_description        PyGMT is a library for processing geospatial and geophysical data \
                        and making publication-quality maps and figures. It provides a Pythonic \
                        interface for the Generic Mapping Tools (GMT), a command-line program \
                        widely used across the Earth, Ocean, and Planetary sciences and beyond.

homepage                https://pygmt.org/

checksums               rmd160  0dd757c56e67ecbf72a0ad02f6d5b38a3b1d27ab \
                        sha256  9b285ed422c760cc043106205cf6d67085442ecbb86aaecdaabedd8507aae740 \
                        size    238671

python.versions         312 313 314

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

    depends_run-append  port:gmt6 \
                        port:py${python.version}-numpy \
                        port:py${python.version}-pandas \
                        port:py${python.version}-xarray \
                        port:py${python.version}-packaging

    notes "
        Consider setting the GMT_LIBRARY_PATH environment variable\
        to the correct location of gmt6 before using ${name}.\
    "
}
