# -*- 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        deepmind sonnet 2.0.0 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name                py-dm-${github.project}
revision            0

platforms           {darwin any}
supported_archs     noarch
license             Apache-2
maintainers         nomaintainer

description         Sonnet is a library for building neural networks in TensorFlow.
long_description    Sonnet is a library built on top of TensorFlow 2\
                    designed to provide simple, composable\
                    abstractions for machine learning research.

homepage            https://github.com/deepmind/sonnet

checksums           rmd160  1df18217856c512efc6d788d3285bcc97b9ea2b3 \
                    sha256  4de05c9a5fd05e7adc1d5b2ceafe0ea8b0de7b6fd377471df5432b73dd912864 \
                    size    8665120

python.versions     39

if {${name} ne ${subport}} {
    depends_lib-append \
                    path:${python.pkgd}/tensorflow:py${python.version}-tensorflow

    test.run        yes

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