# -*- 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-coremltools
version             5.2.0
license             BSD
maintainers         nomaintainer
supported_archs     arm64 i386 x86_64

description         Community Tools for Core ML
long_description    Core ML is an Apple framework that allows \
                    developers to easily integrate machine learning \
                    (ML) models into apps. Core ML is available on \
                    iOS, iPadOS, watchOS, macOS, and tvOS. Core ML \
                    introduces a public file format (.mlmodel) for a \
                    broad set of ML methods including deep neural \
                    networks (convolutional and recurrent), tree \
                    ensembles (boosted trees, random forest, decision \
                    trees), and generalized linear models. Core ML \
                    models can be directly integrated into apps within \
                    Xcode.

homepage            https://github.com/apple/coremltools

checksums           rmd160  55c3cac1f899491788414e4f469f6f0f3f33f364 \
                    sha256  89666293ec6eed83ea39d68904416103a30abc8e6d8bfae610ed55e1a8599263 \
                    size    936369

python.versions     310

if {${name} ne ${subport}} {
    depends_build-append \
                    path:bin/cmake:cmake \
                    port:py${python.version}-setuptools

    depends_run-append \
                    port:py${python.version}-numpy \
                    port:py${python.version}-protobuf3 \
                    port:py${python.version}-sympy \
                    port:py${python.version}-tqdm \
                    port:py${python.version}-packaging

    compiler.cxx_standard   2017
}
