Drop Python 2.7 support

This commit is contained in:
Sunpoet Po-Chuan Hsieh 2020-12-13 14:43:23 +00:00
parent 5755069937
commit b52c2645e0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=557932

View File

@ -14,12 +14,14 @@ LICENSE_FILE= ${WRKSRC}/LICENCE.txt
RUN_DEPENDS= ffmpeg:multimedia/ffmpeg \
${PYTHON_PKGNAMEPREFIX}decorator>=4.0.2<5.0:devel/py-decorator@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}imageio>=2.5<3.0:graphics/py-imageio@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}imageio-ffmpeg>=0.2.0:graphics/py-imageio-ffmpeg@${PY_FLAVOR} \
${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}proglog<=1.0.0:devel/py-proglog@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>=2.8.1<3.0:www/py-requests@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}tqdm>=4.11.2<5.0:misc/py-tqdm@${PY_FLAVOR} \
USES= python
USES= python:3.4+
USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
@ -32,13 +34,4 @@ IMAGEMAGICK7_DESC= Use ImageMagick 7.x as backend
IMAGEMAGICK6_RUN_DEPENDS= convert:graphics/ImageMagick6
IMAGEMAGICK7_RUN_DEPENDS= convert:graphics/ImageMagick7
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} >= 3400
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}imageio>=2.5<3.0:graphics/py-imageio@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}imageio-ffmpeg>=0.2.0:graphics/py-imageio-ffmpeg@${PY_FLAVOR}
.else
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}imageio24>=2.0<2.5:graphics/py-imageio24@${PY_FLAVOR}
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>