# -*- 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        walac pyusb 1.0.0
revision            1
name                py-${name}
categories-append   devel
platforms           darwin
license             BSD
maintainers         nomaintainer
description         Python library to provide easy USB device access
long_description    The PyUSB module provides Python with easy access to \
                    the host machine's Universal Serial Bus (USB) system

homepage            http://walac.github.io/pyusb/

dist_subdir         ${name}/${version}_1

checksums           rmd160  f58f9382ab087e18f14e76987c875bf25f191a79 \
                    sha256  00d543184217efe26ae317ed472d5ffd664e21ee07cdb06e83d30f9f2b0c0d1f

python.versions     27 35 36

if {${name} ne ${subport}} {
    conflicts           py${python.version}-pyusb-devel

    depends_run-append  path:lib/pkgconfig/libusb-1.0.pc:libusb

    post-destroot {
        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 644 -W ${worksrcpath} README.rst LICENSE \
                                          docs/tutorial.rst \
                                          docs/faq.rst \
            ${destroot}${prefix}/share/doc/${subport}
    }

    livecheck.type none
}