# -*- 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-skyfield-data
python.rootname     skyfield_data
version             7.0.0
revision            0

categories          python
license             MIT
maintainers         {mps @Schamschula} openmaintainer
description         Data files for py-skyfield
long_description    {*}${description}
homepage            https://github.com/brunobord/skyfield-data

supported_archs     noarch
platforms           {darwin any}

checksums           rmd160  6b11840d4efc3187e26ea0364e4beded893b57ea \
                    sha256  df3b4f0f5b5b57e5adf5a0a5d30d73ca23dd4066ee666da3222d7bd63d580bbd \
                    size    16984524

python.versions     310 311 312 313 314

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

    notes "
Use the loader class to load a local copy of the bsp files. For example

from skyfield.api import Loader
load = Loader('${frameworks_dir}/Python.framework/Versions/${python.branch}/lib/python${python.branch}/site-packages/skyfield_data/data')
    "
}
