Files
macports-ports/python/py-pyusb/Portfile
2026-02-25 22:25:13 -05:00

44 lines
1.4 KiB
Tcl

# -*- 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
name py-pyusb
version 1.3.1
revision 0
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
supported_archs noarch
platforms {darwin any}
homepage https://pyusb.github.io/pyusb/
checksums rmd160 1f326514124f97beb445eb31dd58adc2cef7a9ca \
sha256 3af070b607467c1c164f49d5b0caabe8ac78dbed9298d703a8dbf9df4052d17e \
size 77281
python.versions 310 311 312 313 314
if {${name} ne ${subport}} {
depends_build-append \
port:py${python.version}-setuptools_scm
depends_run-append \
path:lib/pkgconfig/libusb-1.0.pc:libusb
post-destroot {
xinstall -d ${destroot}${prefix}/share/doc/${subport}
xinstall -m 0644 -W ${worksrcpath} README.rst LICENSE \
docs/tutorial.rst docs/faq.rst ChangeLog \
${destroot}${prefix}/share/doc/${subport}
}
}