PortSystem          1.0
PortGroup           python 1.0

name                py-visa
version             1.4
categories-append   science
platforms           darwin
supported_archs     noarch
license             MIT
maintainers         nomaintainer

description         Python binding to VISA instrument protocol
long_description    PyVISA allows dialog between a computer and\
                    various engineering instruments such as oscilloscopes,\
                    spectrum analyzers, waveform generators, etc. using\
                    the VISA Framework of National Instruments, that must be\
                    installed independently. \nWARNING: this framework is,\
                    currently, 32-bit only, so to be able to use py-visa on\
                    a 64-bit machine, you MUST install a universal Python\
                    and execute python in 32-bit mode with ‘arch -i386’.

homepage            http://pyvisa.sourceforge.net/

master_sites        https://pypi.python.org/packages/source/P/PyVISA/
distname            PyVISA-${version}

checksums           md5     5a391c8d0bca3c9d58ee1bbe573bc6b9 \
                    rmd160  6cc4aae064dbe744bb260a8f329959e50f5694eb \
                    sha256  6ff001554b206534a54bbb3f60121f9265f0dde5261726c9ee5d1aae67f8e4f0


python.versions     24 25 26 27

if {$subport != $name} {
    depends_build           port:py${python.version}-setuptools
    depends_build-append    port:py${python.version}-sphinx
    test.run                yes
    livecheck.type          none
} else {
    livecheck.type  regex
    livecheck.url   https://pypi.python.org/pypi/PyVISA
    livecheck.regex {PyVISA/([0-9.]+)"}
}
