1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00

Use PY_TYPING and simplify Makefile

- While I'm here, sort RUN_DEPENDS

With hat:	python
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2019-08-03 20:57:37 +00:00
parent d5f5c2849b
commit 2ed87711e8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=508026

View File

@ -14,11 +14,12 @@ LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-runner>=0:devel/py-pytest-runner@${PY_FLAVOR}
RUN_DEPENDS= ${PY_ENUM34} \
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}entrypoints>=0.3.0:devel/py-entrypoints@${PY_FLAVOR} \
${PY_ENUM34} \
${PYTHON_PKGNAMEPREFIX}mccabe>=0.6.0:devel/py-mccabe@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pycodestyle>=2.0.0:devel/py-pycodestyle@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyflakes>=1.5.0:devel/py-pyflakes@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}entrypoints>=0.3.0:devel/py-entrypoints@${PY_FLAVOR}
${PY_TYPING}
USES= python
USE_PYTHON= autoplist concurrent distutils
@ -31,8 +32,4 @@ RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}configparser>0:devel/py-configparser@${PY_F
${PYTHON_PKGNAMEPREFIX}functools32>0:devel/py-functools32@${PY_FLAVOR}
.endif
.if ${PYTHON_REL} < 3400
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}typing>0:devel/py-typing@${PY_FLAVOR}
.endif
.include <bsd.port.post.mk>