mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-07 06:40:06 +00:00
fac6afa484
* 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
37 lines
1.1 KiB
Makefile
37 lines
1.1 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= gtts
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 2.2.1
|
|
CATEGORIES= audio python
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= kai@FreeBSD.org
|
|
COMMENT= Library/CLI tool to interface with Google Translate text-to-speech API
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
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 concurrent autoplist
|
|
|
|
NO_ARCH= yes
|
|
|
|
do-test:
|
|
# 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.mk>
|