pkgsrc/comms/py-serial/Makefile

45 lines
1.5 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.7 2017/07/31 13:11:27 adam Exp $
DISTNAME= pyserial-3.4
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/^py//}
CATEGORIES= comms python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pyserial/}
MAINTAINER= tsarna@NetBSD.org
HOMEPAGE= https://github.com/pyserial/pyserial
COMMENT= Python Serial Port Extension
LICENSE= modified-bsd
Update to 2.7. Fix PKGNAME. Version 2.7 2013-10-17 --------------------------- - Win32: setRTS and setDTR can be called before the port is opened and it will set the initial state on port open. - Posix: add platform specific method: outWaiting (already present for Win32) - Posix: rename flowControl to setXON to match name on Win32, add flowControlOut function - rfc2217: zero polls value (baudrate, data size, stop bits, parity) (Erik Lundh) - Posix: [Patch pyserial:28] Accept any speed on Linux [update] - Posix: [Patch pyserial:29] PosixSerial.read() should "ignore" errno.EINTR - OSX: [Patch pyserial:27] Scan by VendorID/Product ID for USB Serial devices - Ensure working with bytes in write() calls Bugfixes: - [Bug 3540332] SerialException not returned - [Bug pyserial:145] Error in socket_connection.py - [Bug pyserial:135] reading from socket with timeout=None causes TypeError - [Bug pyserial:130] setup.py should not append py3k to package name - [Bug pyserial:117] no error on lost conn w/socket:// Bugfixes (posix): - [Patch 3462364] Fix: NameError: global name 'base' is not defined - list_ports and device() for BSD updated (Anders Langworthy) - [Bug 3518380] python3.2 -m serial.tools.list_ports error - [Bug pyserial:137] Patch to add non-standard baudrates to Cygwin - [Bug pyserial:141] open: Pass errno from IOError to SerialException - [Bug pyserial:125] Undefined 'base' on list_ports_posix.py, function usb_lsusb - [Bug pyserial:151] Serial.write() without a timeout uses 100% CPU on POSIX - [Patch pyserial:30] [PATCH 1/1] serial.Serial() should not raise IOError. Bugfixes (win32): - [Bug 3444941] ctypes.WinError() unicode error - [Bug 3550043] on Windows in tools global name 'GetLastError' is not defined - [Bug pyserial:146] flush() does nothing in windows (despite docs) - [Bug pyserial:144] com0com ports ignored due to missing "friendly name" - [Bug pyserial:152] Cannot configure port, some setting was wrong. Can leave port handle open but port not accessible
2014-01-19 10:49:55 +01:00
CONFLICTS+= ${PYPKGPREFIX}-pyserial-[0-9]*
USE_LANGUAGES= # none
REPLACE_PYTHON+= serial/__init__.py
REPLACE_PYTHON+= serial/rfc2217.py
REPLACE_PYTHON+= serial/serialcli.py
REPLACE_PYTHON+= serial/serialjava.py
REPLACE_PYTHON+= serial/serialposix.py
REPLACE_PYTHON+= serial/serialutil.py
REPLACE_PYTHON+= serial/serialwin32.py
REPLACE_PYTHON+= serial/sermsdos.py
REPLACE_PYTHON+= serial/tools/__init__.py
REPLACE_PYTHON+= serial/tools/list_ports.py
Update to 2.7. Fix PKGNAME. Version 2.7 2013-10-17 --------------------------- - Win32: setRTS and setDTR can be called before the port is opened and it will set the initial state on port open. - Posix: add platform specific method: outWaiting (already present for Win32) - Posix: rename flowControl to setXON to match name on Win32, add flowControlOut function - rfc2217: zero polls value (baudrate, data size, stop bits, parity) (Erik Lundh) - Posix: [Patch pyserial:28] Accept any speed on Linux [update] - Posix: [Patch pyserial:29] PosixSerial.read() should "ignore" errno.EINTR - OSX: [Patch pyserial:27] Scan by VendorID/Product ID for USB Serial devices - Ensure working with bytes in write() calls Bugfixes: - [Bug 3540332] SerialException not returned - [Bug pyserial:145] Error in socket_connection.py - [Bug pyserial:135] reading from socket with timeout=None causes TypeError - [Bug pyserial:130] setup.py should not append py3k to package name - [Bug pyserial:117] no error on lost conn w/socket:// Bugfixes (posix): - [Patch 3462364] Fix: NameError: global name 'base' is not defined - list_ports and device() for BSD updated (Anders Langworthy) - [Bug 3518380] python3.2 -m serial.tools.list_ports error - [Bug pyserial:137] Patch to add non-standard baudrates to Cygwin - [Bug pyserial:141] open: Pass errno from IOError to SerialException - [Bug pyserial:125] Undefined 'base' on list_ports_posix.py, function usb_lsusb - [Bug pyserial:151] Serial.write() without a timeout uses 100% CPU on POSIX - [Patch pyserial:30] [PATCH 1/1] serial.Serial() should not raise IOError. Bugfixes (win32): - [Bug 3444941] ctypes.WinError() unicode error - [Bug 3550043] on Windows in tools global name 'GetLastError' is not defined - [Bug pyserial:146] flush() does nothing in windows (despite docs) - [Bug pyserial:144] com0com ports ignored due to missing "friendly name" - [Bug pyserial:152] Cannot configure port, some setting was wrong. Can leave port handle open but port not accessible
2014-01-19 10:49:55 +01:00
REPLACE_PYTHON+= serial/tools/list_ports_linux.py
REPLACE_PYTHON+= serial/tools/list_ports_osx.py
REPLACE_PYTHON+= serial/tools/list_ports_posix.py
REPLACE_PYTHON+= serial/tools/list_ports_windows.py
REPLACE_PYTHON+= serial/tools/miniterm.py
REPLACE_PYTHON+= serial/urlhandler/__init__.py
REPLACE_PYTHON+= serial/urlhandler/protocol_hwgrep.py
REPLACE_PYTHON+= serial/urlhandler/protocol_loop.py
REPLACE_PYTHON+= serial/urlhandler/protocol_rfc2217.py
REPLACE_PYTHON+= serial/urlhandler/protocol_socket.py
REPLACE_PYTHON+= serial/win32.py
post-install:
cd ${DESTDIR}${PREFIX}/bin && ${MV} miniterm.py miniterm${PYVERSSUFFIX} || ${TRUE}
.include "../../lang/python/application.mk"
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"