audio/py-gtts: Update to 2.2.1

* Make port concurrent safe as it installs scripts outside of Python's
  site-lib directory.

* Remove no longer required dependency of devel/py-twine and obsolete parts
  for Python < 3.6 after r559056 .

Changelogs since 2.1.1:

https://github.com/pndurette/gTTS/blob/v2.2.1/CHANGELOG.rst
This commit is contained in:
Kai Knoblich 2020-12-27 11:52:18 +00:00
parent 33a9c02059
commit fac6afa484
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=559351
2 changed files with 11 additions and 18 deletions

View File

@ -2,7 +2,7 @@
PORTNAME= gtts
DISTVERSIONPREFIX= v
DISTVERSION= 2.1.1
DISTVERSION= 2.2.1
CATEGORIES= audio python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -12,32 +12,25 @@ COMMENT= Library/CLI tool to interface with Google Translate text-to-speech API
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}beautifulsoup>0:www/py-beautifulsoup@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}click>0:devel/py-click@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}gtts-token>=1.1.3:security/py-gtts-token@${PY_FLAVOR} \
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}click>0:devel/py-click@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=3.9:devel/py-pytest@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}testfixtures>0:devel/py-testfixtures@${PY_FLAVOR}
USES= python:3.6+
USE_GITHUB= yes
GH_ACCOUNT= pndurette
GH_PROJECT= gTTS
USE_PYTHON= distutils autoplist
USE_PYTHON= distutils concurrent autoplist
NO_ARCH= yes
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} < 3600
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}twine1>=1.11:devel/py-twine1@${PY_FLAVOR}
.else
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}twine>=1.11:devel/py-twine@${PY_FLAVOR}
.endif
do-test:
@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -rs -v
# Comment out hardcoded pytest version requirement
@${REINPLACE_CMD} -Ee 's|(^minversion)|#\1|' ${WRKSRC}/pytest.ini
@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -rs -v
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1594610064
SHA256 (pndurette-gTTS-v2.1.1_GH0.tar.gz) = 7ba54c933aadf83811d397947a2702360188a03b3571b3caff0d618aa34c0d7c
SIZE (pndurette-gTTS-v2.1.1_GH0.tar.gz) = 33476
TIMESTAMP = 1608404182
SHA256 (pndurette-gTTS-v2.2.1_GH0.tar.gz) = a92cc3ecbff83e8c291607deedbeb73c3d1089aeeb8da11132e5357a26e89daf
SIZE (pndurette-gTTS-v2.2.1_GH0.tar.gz) = 33711