View | Details | Raw Unified | Return to bug 213401
Collapse All | Expand All

(-)Makefile (-1 / +4 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	serial
4
PORTNAME=	serial
5
PORTVERSION=	2.7
5
PORTVERSION=	2.7
6
PORTREVISION=	1
6
PORTREVISION=	2
7
CATEGORIES=	comms python
7
CATEGORIES=	comms python
8
MASTER_SITES=	CHEESESHOP
8
MASTER_SITES=	CHEESESHOP
9
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
9
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
Lines 12-17 Link Here
12
MAINTAINER=	sbz@FreeBSD.org
12
MAINTAINER=	sbz@FreeBSD.org
13
COMMENT=	Serial port encapsulation library for Python
13
COMMENT=	Serial port encapsulation library for Python
14
14
15
LICENSE=	BSD3CLAUSE
16
LICENSE_FILE=	${WRKSRC}/LICENSE.txt
17
15
USES=			dos2unix python
18
USES=			dos2unix python
16
USE_PYTHON=		concurrent distutils py3kplist pythonprefix
19
USE_PYTHON=		concurrent distutils py3kplist pythonprefix
17
PYDISTUTILS_PKGNAME=	py${PORTNAME}
20
PYDISTUTILS_PKGNAME=	py${PORTNAME}
(-)files/patch-serial_serialposix.py (+20 lines)
Line 0 Link Here
1
--- serial/serialposix.py.orig	2016-10-12 02:38:27 UTC
2
+++ serial/serialposix.py
3
@@ -130,10 +130,15 @@ elif plat[:3] == 'bsd' or  \
4
     def device(port):
5
         return '/dev/cuad%d' % port
6
 
7
+        # set_special_baudrate() should never get called
8
     def set_special_baudrate(port, baudrate):
9
-        raise ValueError("sorry don't know how to handle non standard baud rate on this platform")
10
+        pass
11
 
12
-    baudrate_constants = {}
13
+    class ReturnBaudrate(object):
14
+        def __getitem__(self, key):
15
+            return key
16
+
17
+    baudrate_constants = ReturnBaudrate()
18
 
19
 elif plat[:6] == 'darwin':   # OS X
20
 

Return to bug 213401