Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Oct 2015 20:35:29 +0000 (UTC)
From:      Max Brazhnikov <makc@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r399218 - in head/comms/py-serial: . files
Message-ID:  <201510132035.t9DKZTmC058632@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510132035.t9DKZTmC058632>