git: 7b3368d2c2db - main - devel/py-Products.PloneLanguageTool: Fix build with setuptools 58.0.0+
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 25 Mar 2022 13:49:51 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=7b3368d2c2dbab550a33e1f46c5a83f4e5a6a3a9 commit 7b3368d2c2dbab550a33e1f46c5a83f4e5a6a3a9 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2022-03-25 13:32:11 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2022-03-25 13:38:07 +0000 devel/py-Products.PloneLanguageTool: Fix build with setuptools 58.0.0+ - Bump PORTREVISION for package change The isTranslatable method is deprecated and it causes SyntaxError. byte-compiling /wrkdirs/usr/ports/devel/py-Products.PloneLanguageTool/work-py38/stage/usr/local/lib/python3.8/site-packages/Products/PloneLanguageTool/skins/LanguageTool/isTranslatable.py to isTranslatable.cpython-38.pyc writing byte-compilation script '/tmp/tmpiy55_zr9.py' /usr/local/bin/python3.8 /tmp/tmpiy55_zr9.py File "/usr/local/lib/python3.8/site-packages/Products/PloneLanguageTool/skins/LanguageTool/isTranslatable.py", line 11 SyntaxError: 'return' outside function With hat: python --- devel/py-Products.PloneLanguageTool/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/devel/py-Products.PloneLanguageTool/Makefile b/devel/py-Products.PloneLanguageTool/Makefile index ac545369e1b8..0ff2f9f0960a 100644 --- a/devel/py-Products.PloneLanguageTool/Makefile +++ b/devel/py-Products.PloneLanguageTool/Makefile @@ -1,6 +1,6 @@ PORTNAME= Products.PloneLanguageTool PORTVERSION= 3.2.7 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel python zope MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -15,4 +15,7 @@ NO_ARCH= yes USES= python:3.6+ zip USE_PYTHON= autoplist distutils +post-patch: + @${RM} ${WRKSRC}/Products/PloneLanguageTool/skins/LanguageTool/isTranslatable.py + .include <bsd.port.mk>