# -*- coding: utf-8; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           python 1.0
PortGroup           github 1.0

github.setup        pfnet chainer 1.1.1 v
name                py-chainer
maintainers         nomaintainer
license             MIT
supported_archs     noarch

description         A flexible framework of neural networks
long_description    ${description}

homepage            https://chainer.org/
platforms           darwin

python.versions     27 34 35 36

if {${name} ne ${subport}} {
    checksums           rmd160  d09dcb82a97bffeb14fd53ab271679c891eb95cb \
                        sha256  e68a17eea76d3de6cb29cf228ad76dea1491c3b03724000feaedf60e1a6a8edd

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

    post-destroot {
        # install additional documents
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -W ${worksrcpath} \
            LICENSE README.md \
            ${destroot}${docdir}
        # install examples
        foreach f [glob -directory ${worksrcpath}/examples *] {
            copy $f ${destroot}${docdir}/examples/[file tail $f]
        }
    }

    livecheck.type      none
}