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

github.setup        labjack LabJackPython 2.0.0
name                py-LabJackPython
epoch               3
revision            0
license             MIT X11
maintainers         nomaintainer

description         The LabJack Python modules for the LabJack U3, U6, UE9 and U12.
long_description    ${description}

platforms           darwin
supported_archs     noarch

checksums           rmd160  c8bac2cbad3f4a09aec0b74030d7fd8a8286e17f \
                    sha256  b231581203c08bb6809fbf3bed33bf881c012a0583f48a6f201713b789745b42 \
                    size    136675

python.versions     27 37

if {${name} ne ${subport}} {
    depends_lib-append  port:exodriver

    post-destroot {
    set docdir ${prefix}/share/doc/${subport}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} README LICENSE \
        ChangeLog.txt ${destroot}${docdir}
    }

    livecheck.type      none
} else {
    github.livecheck.regex  {([0-9.]+)}
}