# -*- 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-gsl
python.rootname         pygsl
version                 2.6.3
revision                0

categories-append       science
license                 GPL-2+
maintainers             nomaintainer

description             Python interface to the GNU Scientific Library
long_description        Python interface to the GSL, the GNU Scientfic \
                        Library. Variants for the use of different \
                        array-objects supported by pygsl are provided.

homepage                https://github.com/pygsl/pygsl

checksums               rmd160  7c650d27c3de90a3a7b9a979acd66b90c487867b \
                        sha256  6576d5eb4b852543d8a58555f90d3df89bc17ba8045c0fe1aaac46d1193dc952 \
                        size    1184096

python.versions         310 311 312 313 314
python.pep517_backend   meson

if {${name} ne ${subport}} {
    patchfiles-append   patch-src_gslwrap_interpolation2d.i.diff

    depends_build-append \
                        port:swig \
                        port:swig-python \
                        path:bin/pkg-config:pkgconfig

    depends_lib-append  port:gsl \
                        port:py${python.version}-numpy

    test.run            yes
    test.env-append     PYTHONPATH=${destroot}${python.pkgd}
}
