FreeBSD Bugzilla – Attachment 160702 Details for
Bug 202887
comms/py-serial: modernize port, add patch to improve list_ports
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
py-serial.diff (text/plain), 2.16 KB, created by
Max Brazhnikov
on 2015-09-04 08:39:33 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Max Brazhnikov
Created:
2015-09-04 08:39:33 UTC
Size:
2.16 KB
patch
obsolete
>Index: comms/py-serial/Makefile >=================================================================== >--- comms/py-serial/Makefile (revision 395955) >+++ comms/py-serial/Makefile (working copy) >@@ -3,6 +3,7 @@ > > PORTNAME= serial > PORTVERSION= 2.7 >+PORTREVISION= 1 > CATEGORIES= comms python > MASTER_SITES= CHEESESHOP > PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} >@@ -11,18 +12,18 @@ > MAINTAINER= sbz@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} >+DOS2UNIX_FILES= serial/tools/list_ports_posix.py > >-DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} >-EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME} >- > 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} > >Index: comms/py-serial/files/patch-serial_tools_list__ports__posix.py >=================================================================== >--- comms/py-serial/files/patch-serial_tools_list__ports__posix.py (revision 0) >+++ comms/py-serial/files/patch-serial_tools_list__ports__posix.py (working copy) >@@ -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) > >Property changes on: comms/py-serial/files/patch-serial_tools_list__ports__posix.py >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 202887
: 160702