# -*- 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           github 1.0
PortGroup           python 1.0

github.setup        microsoft onnxconverter-common 1.8.0
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            0
name                py-${github.project}
categories-append   science
supported_archs     noarch
platforms           {darwin any}
license             MIT
maintainers         nomaintainer

description         ONNX Converter and Optimization Tools

long_description    The onnxconverter-common package provides common \
                    functions and utilities for use in converters from \
                    various AI frameworks to ONNX. It also enables the \
                    different converters to work together to convert a \
                    model from mixed frameworks, like a scikit-learn \
                    pipeline embedding a xgboost model.

checksums           rmd160  f33f65c3ded353955fc1cf82b1b93507d7e1cc71 \
                    sha256  087f1784cae04d242cfc37e56fe1f3d717ef5c6b88b97ad00c3d43866d4395e5 \
                    size    57309766

python.versions     39 310

if {${name} ne ${subport}} {
    depends_run-append \
                    port:py${python.version}-numpy \
                    port:py${python.version}-onnx \
                    port:py${python.version}-protobuf3

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} LICENSE README.md \
            ${destroot}${docdir}
    }
}