# -*- 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-control
version             0.8.3
revision            0

categories-append   science
license             BSD
platforms           darwin
maintainers         nomaintainer

description         Python package for feedback control systems
long_description    \
    The Python Control Systems Library, python-control, is a python package that \
    implements basic operations for analysis and design of feedback control \
    systems.

homepage            https://python-control.readthedocs.io

checksums           rmd160  b5739feb6a43755bdd889c87c42dd31f95edbc3a \
                    sha256  1fcfdcf39f96523cb1f2cf7bf7b8ae68ec3ef8350e5c55e17e02afdb0872edbb \
                    size    249610

python.versions     27 35 36 37 38

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

    depends_lib-append \
                    port:py${python.version}-matplotlib \
                    port:py${python.version}-numpy \
                    port:py${python.version}-scipy

    depends_test-append \
                    port:py${python.version}-nose

    test.run        yes

    post-destroot {
        xinstall -d ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 0644 -W ${worksrcpath} ChangeLog LICENSE Pending \
            README.rst ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 0644 {*}[glob ${worksrcpath}/examples/*] \
            ${destroot}${prefix}/share/doc/${subport}/examples
    }

    livecheck.type  none
}
