# -*- 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-spiceypy
version             6.0.0
revision            1

categories-append   science
license             MIT
maintainers         nomaintainer

description         SpiceyPy: The NASA JPL NAIF SPICE toolkit wrapper for Python
long_description    {*}${description} Note: due to cspice, this is only for the \
                    x86_64 platform

checksums           rmd160  8514d69eb150213fd5d07d70c9abe0a72030e4d9 \
                    sha256  ac27096a12b795898c3a6d1fa1f12a7e4485f480acd2e59fbd3a986cb0ade2be \
                    size    291180

python.versions     310 311 312 313 314

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

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

    build.env-append \
                    CSPICE_SHARED_LIB=${prefix}/lib/libcspice.dylib
    destroot.env-append \
                    CSPICE_SHARED_LIB=${prefix}/lib/libcspice.dylib
}
