# -*- 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-pyorick
version             1.4
platforms           darwin
license             BSD
maintainers         {thibaut @paumard} openmaintainer

description         python connection to yorick

long_description    The pyorick package starts yorick as a subprocess \
                    and provides an interface between python and yorick \
                    interpreted code. Features: exec or eval arbitrary \
                    yorick code strings\; get or set yorick variables\; \
                    call yorick functions or subroutines with python \
                    arguments\; get or set slices of large yorick arrays\; \
                    terminal mode to interact with yorick by keyboard \
                    through python. Most of the data is exchanged via \
                    binary pipes between the two interpreters. Yorick runs \
                    in a request-reply mode. Python prints anything yorick \
                    sends to stdout or stderr except prompts.

homepage            https://github.com/dhmunro/pyorick
master_sites        pypi:p/pyorick
distname            pyorick-${version}

checksums           rmd160  563ca3a68e452a48e0f1a1dd7290dfda04f01647 \
                    sha256  a03167e874a45201ce479b7153fd9447981418c53d175931e01cf874cdcf4f72

python.versions     27 35 36 37

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

    depends_run-append  port:py${python.version}-numpy \
                        port:yorick

    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${master_sites}
}
