# -*- 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.15.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  8b9069d58acbd77da75c03541eb544a1122b4bd8 \
                        sha256  e80adad00d3a29f1280524de6c87bb0bbb2ccf9e29a3792a1668a13ab2a01201 \
                        size    212516

python.versions         311 312 313

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}-netcdf4 \
                            port:py${python.version}-packaging

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