# -*- 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
# $Id: Portfile 103179 2013-02-18 03:27:31Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-pyusb-devel
version             1.0.0a3
epoch               1
categories-append   devel
platforms           darwin
supported_archs     noarch
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://pyusb.sourceforge.net/
master_sites        sourceforge:pyusb
distname            pyusb-${version}

checksums           md5     e83e12621149a0d76410aa5cec35ad22 \
                    sha1    fee482852c3c5c8aa6d88b2ebdeedd60dd1b1dd5 \
                    rmd160  18a63b934a5eadcd1338da3994ab1694f874aebe

python.versions 25 26 27

if {${name} != ${subport}} {
    conflicts           py${python.version}-pyusb

    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 ReleaseNotes.rst LICENSE docs/tutorial.rst \
            ${destroot}${prefix}/share/doc/${subport}
    }
}
