Files
macports-ports/python/py-serial/Portfile
2025-11-22 07:32:17 -05:00

57 lines
2.1 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 github 1.0
PortGroup python 1.0
github.setup pyserial pyserial 3.5 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision 1
name py-serial
categories-append comms
platforms {darwin any}
supported_archs noarch
license BSD
maintainers {fwright.net:fw @fhgwright} openmaintainer
description Python Serial Port Extension
long_description This module encapsulates the access for the serial port. \
It provides backends for standard Python running on \
Windows, Linux, BSD (possibly any POSIX compliant system) \
and Jython. The module named "serial" automatically \
selects the appropriate backend.
checksums rmd160 ee56e22c15af484b72b65d445a4fe8a2aeee0cd0 \
sha256 80125f950a620bd0a31cfa18f5eda0df77e0bed2accc2bb7a76ab650ff63afa9 \
size 155864
python.versions 27 34 35 36 37 38 39 310 311 312 313 314
if {${name} ne ${subport}} {
# py*-setuptools is needed at runtime for the included programs,
# as well as at build time, so it's a library dependency.
depends_lib-append \
port:py${python.version}-setuptools
post-destroot {
xinstall -m 0644 -W ${worksrcpath} CHANGES.rst LICENSE.txt README.rst \
${destroot}${prefix}/share/doc/${subport}
xinstall -m 0644 -W ${worksrcpath}/examples \
at_protocol.py \
port_publisher.py \
port_publisher.sh \
rfc2217_server.py \
tcp_serial_redirect.py \
wxSerialConfigDialog.py wxSerialConfigDialog.wxg \
wxTerminal.py wxTerminal.wxg \
${destroot}${prefix}/share/doc/${subport}/examples
}
livecheck.type none
}
# Only match numeric versions (not betas)
github.livecheck.regex {([0-9.]+)}