mirror of
https://git.freebsd.org/ports.git
synced 2025-05-30 09:56:43 -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>
48 lines
1.6 KiB
Makefile
48 lines
1.6 KiB
Makefile
PORTNAME= protobuf-compiler
|
|
DISTVERSION= 1.0.20
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= PYPI
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= ${PORTNAME:S/-/_/}-${DISTVERSION}
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= 0mp@FreeBSD.org
|
|
COMMENT= Compile all protobuf files and create package distributions
|
|
WWW= https://github.com/netsaj/python-protobuf-compiler
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC_tests}/LICENSE
|
|
|
|
BUILD_DEPENDS= ${_MY_DEPENDS}
|
|
RUN_DEPENDS= ${_MY_DEPENDS}
|
|
|
|
USES= python shebangfix
|
|
USE_GITHUB= nodefault
|
|
GH_TUPLE= netsaj:python-${PORTNAME}:7cb32ab8188cbfecb91034cbf7803394ed1c25b6:tests
|
|
USE_PYTHON= autoplist concurrent distutils
|
|
SHEBANG_GLOB= *.py
|
|
|
|
TEST_ENV= PYTHONPATH="${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}"
|
|
NO_ARCH= yes
|
|
TEST_WRKSRC= ${WRKSRC_tests}
|
|
|
|
_MY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}bleach>=2.1.0:www/py-bleach@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}colorama>=0.3.3:devel/py-colorama@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}grpcio-tools>=1.18.0:devel/py-grpcio-tools@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}grpcio>=1.18.0:devel/py-grpcio@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}termcolor>=1.1.0:devel/py-termcolor@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}tqdm>=4.31.1:misc/py-tqdm@${PY_FLAVOR}
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} 's|%%PYTHON_CMD%%|${PYTHON_CMD}|g' \
|
|
${WRKSRC}/protobuf_compiler/main.py
|
|
|
|
do-test:
|
|
# Loosely based on the upstream test_protopy.py.
|
|
${RM} -r ${TEST_WRKSRC}/run_test
|
|
cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} \
|
|
${PYTHON_CMD} ${STAGEDIR}${PREFIX}/bin/protopy \
|
|
-o ./run_test -d ./test -p mytesting -v 1.0.1
|
|
${TEST} -e ${TEST_WRKSRC}/run_test/mytesting-1.0.1.tar.gz
|
|
|
|
.include <bsd.port.mk>
|