# -*- 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

set     package     control
name                py-${package}
version             0.6.6
categories-append   science
license             BSD
platforms           darwin

# other versions untested
python.versions     27 34 35 36

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            http://python-control.sourceforge.net
master_sites        pypi:c/${package}/

distname            ${package}-${version}

checksums           rmd160  245b3f2e0cc7250013f25f14d18daa0996a24616 \
                    sha256  a078ce14574866dbdda3de5eef35ef1980f759c3e77831ea7bd500067fdb8aea

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

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

livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     "${package}-(\\d+(?:\\.\\d+)*)\\.\[tz]"