# $Id: Portfile 86997 2011-11-08 01:23:23Z ecronin@macports.org $

PortSystem          1.0
PortGroup           python26 1.0
name                py26-pyusb-devel
license             BSD
conflicts           py26-pyusb
version             1.0.0-a1
epoch               1
categories          python devel
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

platforms           darwin

homepage            http://pyusb.wiki.sourceforge.net
master_sites        sourceforge:pyusb
distname            pyusb-${version}

checksums           md5 8a995953af70bf281a6e162f3e0d8df8 \
                    sha1 bfb9a3489c434019fc31be761d951de2cf4d51cd \
                    rmd160 e0d3f8d72c109c9d51593a9e5244efcad5073ef7

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

post-destroot {
   xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
   xinstall -m 644 -W ${worksrcpath}/docs tutorial.txt \
      ${destroot}${prefix}/share/doc/${name}
}

