summaryrefslogtreecommitdiff
path: root/textproc/py-autopep8/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/py-autopep8/Makefile')
-rw-r--r--textproc/py-autopep8/Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/textproc/py-autopep8/Makefile b/textproc/py-autopep8/Makefile
index ae61f8cde0fb..5424697d035a 100644
--- a/textproc/py-autopep8/Makefile
+++ b/textproc/py-autopep8/Makefile
@@ -1,5 +1,5 @@
PORTNAME= autopep8
-PORTVERSION= 2.0.0
+PORTVERSION= 2.0.1
CATEGORIES= textproc python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -11,12 +11,17 @@ WWW= https://github.com/hhatto/autopep8
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pycodestyle>=2.9.1:devel/py-pycodestyle@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}tomli>=0:textproc/py-tomli@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pycodestyle>=2.10.0:devel/py-pycodestyle@${PY_FLAVOR}
USES= python:3.6+
USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 31100
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}tomli>=0:textproc/py-tomli@${PY_FLAVOR}
+.endif
+
+.include <bsd.port.post.mk>