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

github.setup        ioflo ioflo 1.7.5 v
name                py-ioflo
revision            0
categories-append   lang
platforms           darwin
maintainers         nomaintainer
license             Apache-2
supported_archs     noarch

description         ioflo is a framework and DSL for building reasoning \
                    automation systems.

long_description    IoFlo is a magically powerful open interoperable software \
                    framework that enables non experts to intelligently \
                    automate their own programmable world. IoFlo has its roots \
                    in the research and development of autonomous underwater \
                    vehicles, autonomic ships, and automated buildings. These \
                    are cool applications that can be scarily complex. That \
                    complexity was the prime motivation for IoFlo and its \
                    ancestors, to make programming autonomous/autonomic systems \
                    easy even for people without PhDs.

homepage            https://ioflo.com

python.versions     27 34 35 36

checksums           rmd160  09015d0008b4297bb4235514bc0fac9a39f75ab8 \
                    sha256  b638a211c9c5e0c26f6c48a26591e93a9ef8ce0dea301b891fe3fc83bc911201 \
                    size    838442

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

    depends_lib-append  port:py${python.version}-setuptools

    depends_run         port:ioflo_select

    post-destroot {
        delete ${destroot}${prefix}/bin/ioflo[string range ${python.version} 0 end-1]-${python.branch}
        delete ${destroot}${prefix}/bin/ioflo${python.branch}-${python.branch}
    }

    select.group        ${python.rootname}
    select.file         ${filespath}/${python.rootname}${python.version}

    notes "
    To make the Python ${python.branch} version of ioflo the one that is run \
    when you execute the commands without a version suffix, e.g. 'ioflo', run:

    sudo port select --set ${select.group} [file tail ${select.file}]
    "

    livecheck.type      none
}