source: trunk/dports/python/py-pyusb/Portfile

Last change on this file was 127320, checked in by larryv@…, 3 years ago

py{25,26}-pyusb: Replace with py27-pyusb

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# -*- 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
2# $Id: Portfile 127320 2014-10-25 04:45:12Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                py-pyusb
8version             0.4.3
9revision            1
10categories-append   devel
11platforms           darwin
12license             BSD
13maintainers         nomaintainer
14description         Python library to provide easy USB device access
15long_description    The PyUSB module provides Python with easy access to \
16                    the host machine's Universal Serial Bus (USB) system
17
18homepage            http://pyusb.sourceforge.net/
19master_sites        sourceforge:pyusb
20distname            pyusb-${version}
21
22checksums           md5     a1a43bc6407caccbc22073c56439aa06 \
23                    sha1    5a6729169e320e9dfb19c6af461eca6d45242787 \
24                    rmd160  803794e073dd0f052ec9c31f0d3210751403c85b
25
26python.versions 27
27
28if {${name} ne ${subport}} {
29    conflicts           py${python.version}-pyusb-devel
30
31    depends_lib-append  path:lib/pkgconfig/libusb.pc:libusb-compat
32
33    patchfiles          setup.py.diff
34    post-patch {
35        reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py
36    }
37
38    post-destroot {
39        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
40        xinstall -m 644 -W ${worksrcpath} README LICENSE \
41            ${destroot}${prefix}/share/doc/${subport}
42        xinstall -m 755 -d ${destroot}${prefix}/share/examples/${subport}
43        eval file copy [glob ${worksrcpath}/samples/*] \
44            ${destroot}${prefix}/share/examples/${subport}
45    }
46}
Note: See TracBrowser for help on using the repository browser.