svn commit: r399218 - in head/comms/py-serial: . files
Max Brazhnikov
makc at FreeBSD.org
Tue Oct 13 20:35:30 UTC 2015
Author: makc
Date: Tue Oct 13 20:35:29 2015
New Revision: 399218
URL: https://svnweb.freebsd.org/changeset/ports/399218
Log:
comms/py-serial:
- Use options helpers
- Fix packaging with python3
- Add patch to make tools.list_ports usable on FreeBSD (committed upstream)
PR: 202887
Approved by: sbz (maintainer timeout 5 weeks)
Added:
head/comms/py-serial/files/
head/comms/py-serial/files/patch-serial_tools_list__ports__posix.py (contents, props changed)
Modified:
head/comms/py-serial/Makefile
Modified: head/comms/py-serial/Makefile
==============================================================================
--- head/comms/py-serial/Makefile Tue Oct 13 20:34:50 2015 (r399217)
+++ head/comms/py-serial/Makefile Tue Oct 13 20:35:29 2015 (r399218)
@@ -3,6 +3,7 @@
PORTNAME= serial
PORTVERSION= 2.7
+PORTREVISION= 1
CATEGORIES= comms python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -11,18 +12,18 @@ DISTNAME= py${PORTNAME}-${PORTVERSION}
MAINTAINER= sbz at FreeBSD.org
COMMENT= Serial port encapsulation library for Python
-USES= python
-USE_PYTHON= distutils pythonprefix
+USES= dos2unix python
+USE_PYTHON= concurrent distutils py3kplist pythonprefix
PYDISTUTILS_PKGNAME= py${PORTNAME}
-
-DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
-EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
+DOS2UNIX_FILES= serial/tools/list_ports_posix.py
OPTIONS_DEFINE= DOCS EXAMPLES
-post-install:
+do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/*.txt ${STAGEDIR}${DOCSDIR}
+
+do-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}
Added: head/comms/py-serial/files/patch-serial_tools_list__ports__posix.py
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/comms/py-serial/files/patch-serial_tools_list__ports__posix.py Tue Oct 13 20:35:29 2015 (r399218)
@@ -0,0 +1,11 @@
+--- serial/tools/list_ports_posix.py.orig 2013-10-12 03:43:18 UTC
++++ serial/tools/list_ports_posix.py
+@@ -43,7 +43,7 @@ elif plat[:3] == 'bsd' or \
+ plat[:7] == 'freebsd':
+
+ def comports():
+- devices = glob.glob('/dev/cuad*')
++ devices = glob.glob('/dev/cua*[!.init][!.lock]')
+ return [(d, d, d) for d in devices]
+
+ elif plat[:6] == 'darwin': # OS X (confirmed)
More information about the svn-ports-head
mailing list