1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00

Simplify Makefile: use PY_FUTURES

It also fixes the other PYTHON_REL check.
The original "PYTHON_REL < 3300" check inside "PYTHON_REL < 3000" will never be true.

With hat:	python
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2018-02-10 19:58:51 +00:00
parent e2b2081a9d
commit 5f90712f52
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=461421

View File

@ -12,6 +12,8 @@ COMMENT= Port of the Tulip project (asyncio module, PEP 3156) on Python 2
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= ${PY_FUTURES}
USES= python
USE_PYTHON= autoplist distutils
@ -19,12 +21,9 @@ NO_ARCH= yes
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} < 3000
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}futures>0:devel/py-futures@${FLAVOR}
.if ${PYTHON_REL} < 3300
TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${FLAVOR}
.endif
.endif
do-test:
@cd ${WRKSRC} && \