Import py-serial:
This python module provides access to the serial port, with backends for standard Python running on Windows, Linux, BSD (possibly any POSIX compilant system), Jython and IronPython. The module named "serial" automatically selects the appropriate backend. Port by MAINTAINER (Daniel Gruber <daniel at tydirium dot org>) with tweaks from me.
This commit is contained in:
parent
c866a577c1
commit
28b939db80
46
devel/py-serial/Makefile
Normal file
46
devel/py-serial/Makefile
Normal file
@ -0,0 +1,46 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2009/06/05 04:29:22 wcmaier Exp $
|
||||
|
||||
COMMENT = serial interface class for Python
|
||||
|
||||
MODPY_EGG_VERSION = 2.4
|
||||
DISTNAME = pyserial-${MODPY_EGG_VERSION}
|
||||
PKGNAME = ${DISTNAME:S/py/py-/}
|
||||
|
||||
CATEGORIES = devel
|
||||
|
||||
HOMEPAGE = http://pyserial.wiki.sourceforge.net/pySerial
|
||||
|
||||
MAINTAINER = Daniel Gruber <daniel@tydirium.org>
|
||||
|
||||
# Python license
|
||||
PERMIT_PACKAGE_FTP = Yes
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
PERMIT_DISTFILES_FTP = Yes
|
||||
PERMIT_DISTFILES_CDROM =Yes
|
||||
|
||||
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=pyserial/}
|
||||
|
||||
MODULES = lang/python
|
||||
MODPY_SETUPTOOLS = Yes
|
||||
|
||||
DOCSDIR = ${PREFIX}/share/doc/py-serial
|
||||
EXAMPLESDIR = ${PREFIX}/share/examples/py-serial
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README.txt ${WRKSRC}/LICENSE.txt ${DOCSDIR}
|
||||
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/examples/*.py ${EXAMPLESDIR}
|
||||
|
||||
# NOTE: tests require a serial setup; see ${WRKSRC}/examples/test.py
|
||||
# for more information
|
||||
do-regress:
|
||||
cd ${WRKSRC} && \
|
||||
for _test in ${WRKSRC}/examples/test*; do \
|
||||
PYTHONPATH=. ${MODPY_BIN} $${_test}; \
|
||||
done
|
||||
.for _test in ${WRKSRC}/examples/test*
|
||||
cd ${WRKSRC} && ${MODPY_BIN} ${_test}
|
||||
.endfor
|
||||
|
||||
.include <bsd.port.mk>
|
5
devel/py-serial/distinfo
Normal file
5
devel/py-serial/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (pyserial-2.4.tar.gz) = 7sGd9Z/XW6WhNpkol/jkaA==
|
||||
RMD160 (pyserial-2.4.tar.gz) = x5TLxL8AZijiipHJdb+JeZTewJU=
|
||||
SHA1 (pyserial-2.4.tar.gz) = lTZDRzaqktoX/QXu0mDv04ZP+b0=
|
||||
SHA256 (pyserial-2.4.tar.gz) = a2qePS/Vl4ySyEPgEJkYpLysSB7srjFiVEgcDg9+c8g=
|
||||
SIZE (pyserial-2.4.tar.gz) = 44723
|
12
devel/py-serial/patches/patch-serialposix_py
Normal file
12
devel/py-serial/patches/patch-serialposix_py
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-serialposix_py,v 1.1.1.1 2009/06/05 04:29:22 wcmaier Exp $
|
||||
--- serial/serialposix.py.orig Wed Apr 1 14:52:46 2009
|
||||
+++ serial/serialposix.py Wed Apr 1 14:52:57 2009
|
||||
@@ -35,7 +35,7 @@ elif plat == 'cygwin': #cywin/win32 (confirmed)
|
||||
def device(port):
|
||||
return '/dev/com%d' % (port + 1)
|
||||
|
||||
-elif plat == 'openbsd3': #BSD (confirmed)
|
||||
+elif plat == 'openbsd4': #BSD (confirmed)
|
||||
def device(port):
|
||||
return '/dev/ttyp%d' % port
|
||||
|
6
devel/py-serial/pkg/DESCR
Normal file
6
devel/py-serial/pkg/DESCR
Normal file
@ -0,0 +1,6 @@
|
||||
This python module provides access to the serial port, with backends for
|
||||
standard Python running on Windows, Linux, BSD (possibly any POSIX
|
||||
compilant system), Jython and IronPython. The module named "serial"
|
||||
automatically selects the appropriate backend.
|
||||
|
||||
For usage instructions see ${PREFIX}/share/doc/py-serial/README.txt
|
37
devel/py-serial/pkg/PLIST
Normal file
37
devel/py-serial/pkg/PLIST
Normal file
@ -0,0 +1,37 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/06/05 04:29:22 wcmaier Exp $
|
||||
lib/python${MODPY_VERSION}/site-packages/pyserial-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
|
||||
lib/python${MODPY_VERSION}/site-packages/pyserial-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
|
||||
lib/python${MODPY_VERSION}/site-packages/pyserial-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/pyserial-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/pyserial-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/serial/
|
||||
lib/python${MODPY_VERSION}/site-packages/serial/__init__.py
|
||||
lib/python${MODPY_VERSION}/site-packages/serial/__init__.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/serial/serialcli.py
|
||||
lib/python${MODPY_VERSION}/site-packages/serial/serialcli.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/serial/serialjava.py
|
||||
lib/python${MODPY_VERSION}/site-packages/serial/serialjava.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/serial/serialposix.py
|
||||
lib/python${MODPY_VERSION}/site-packages/serial/serialposix.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/serial/serialutil.py
|
||||
lib/python${MODPY_VERSION}/site-packages/serial/serialutil.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/serial/serialwin32.py
|
||||
lib/python${MODPY_VERSION}/site-packages/serial/serialwin32.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/serial/sermsdos.py
|
||||
lib/python${MODPY_VERSION}/site-packages/serial/sermsdos.pyc
|
||||
share/doc/py-serial/
|
||||
share/doc/py-serial/LICENSE.txt
|
||||
share/doc/py-serial/README.txt
|
||||
share/examples/py-serial/
|
||||
share/examples/py-serial/enhancedserial.py
|
||||
share/examples/py-serial/miniterm.py
|
||||
share/examples/py-serial/scan.py
|
||||
share/examples/py-serial/scanwin32.py
|
||||
share/examples/py-serial/setup-miniterm-py2exe.py
|
||||
share/examples/py-serial/setup_demo.py
|
||||
share/examples/py-serial/tcp_serial_redirect.py
|
||||
share/examples/py-serial/test.py
|
||||
share/examples/py-serial/test_advanced.py
|
||||
share/examples/py-serial/test_high_load.py
|
||||
share/examples/py-serial/wxSerialConfigDialog.py
|
||||
share/examples/py-serial/wxTerminal.py
|
Loading…
Reference in New Issue
Block a user