mirror of
https://git.freebsd.org/ports.git
synced 2025-05-12 23:31:50 -04:00
The logic in USES=python will automatically convert this to 3.8+ by itself. Adjust two ports that only had Python 3.7 mentioned but build fine on Python 3.8 too. finance/quickfix: mark BROKEN with PYTHON libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++ -DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable -Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi -Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings -Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x -MT _quickfix_la-QuickfixPython.lo -MD -MP -MF .deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp -fPIC -DPIC -o .libs/_quickfix_la-QuickfixPython.o warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option] QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found ^~~~~~~~~~ 1 warning and 1 error generated. Reviewed by: portmgr, vishwin, yuri Differential Revision: <https://reviews.freebsd.org/D40568>
43 lines
1.2 KiB
Makefile
43 lines
1.2 KiB
Makefile
PORTNAME= websocket-client
|
|
PORTVERSION= 1.4.2
|
|
CATEGORIES= www python
|
|
MASTER_SITES= PYPI
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= alfred@FreeBSD.org
|
|
COMMENT= Websocket client for python
|
|
WWW= https://github.com/websocket-client/websocket-client
|
|
|
|
LICENSE= APACHE20
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
|
|
|
|
USES= python
|
|
USE_PYTHON= autoplist distutils
|
|
|
|
NO_ARCH= yes
|
|
|
|
OPTIONS_DEFINE= OPTIONAL TEST
|
|
OPTIONS_DEFAULT= OPTIONAL TEST
|
|
OPTIONAL_DESC= SOCKS proxy support and performance boost
|
|
TEST_DESC= Run unit tests using a local echo server
|
|
|
|
OPTIONAL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}python-socks>0:net/py-python-socks@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}wsaccel>0:www/py-wsaccel@${PY_FLAVOR}
|
|
|
|
TEST_TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}websockets>0:devel/py-websockets@${PY_FLAVOR}
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MTEST}
|
|
TEST_ENV= LOCAL_WS_SERVER_PORT=8765
|
|
.endif
|
|
|
|
do-test:
|
|
.if ${PORT_OPTIONS:MTEST}
|
|
@(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} websocket/tests/echo-server.py &)
|
|
.endif
|
|
@(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} pytest -v -ra)
|
|
|
|
.include <bsd.port.mk>
|