blob: 72e57451e71624c7f874fc97431e0640caf9d496 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
PORTNAME= pyserial
PORTVERSION= 3.5
PORTREVISION= 2
CATEGORIES= comms python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sbz@FreeBSD.org
COMMENT= Serial port encapsulation library for Python
WWW= https://github.com/pyserial/pyserial
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
USES= python:3.6+ shebangfix
SHEBANG_FILES= examples/*.py
USE_PYTHON= distutils autoplist concurrent
PORTEXAMPLES= at_protocol.py port_publisher.py rfc2217_server.py \
setup-miniterm-py2exe.py setup-rfc2217_server-py2exe.py \
setup-wxTerminal-py2exe.py tcp_serial_redirect.py \
wxSerialConfigDialog.py wxTerminal.py
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
OPTIONS_DEFINE= EXAMPLES
NO_ARCH= yes
post-install:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_SCRIPT} ${PORTEXAMPLES:S,^,${WRKSRC}/examples/,} \
${STAGEDIR}${EXAMPLESDIR}
do-test:
${SETENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} \
${PYTHON_CMD} ${WRKSRC}/test/test.py
.include <bsd.port.mk>
|