freebsd-ports/audio/py-gtts/Makefile
Loïc Bartoletti d02141c9eb games/py-mnemosyne: Take Maintainer'ship, fix runtime error and add missing dependencies
Latest version of games/py-mnemosyne requires new dependencies. This commit adds the missing dependencies:

 - audio/py-gtts
 - security/py-gtts-token (required by audio/py-gtts)
 - textproc/py-googletrans

The games/py-mnemosyne port needs to be limited to Python 3.7+ to keep the dependency chains intact. This is because textproc/py-googletrans depends on www/py-httpx which is only for Python 3.7+.

PR:		247595
Submitted by:	kai
Reported by:	gspurki@gmail.com
Approved by:	tcberner (mentor)
MFH:		2020Q3
Differential Revision:	https://reviews.freebsd.org/D25895
2020-07-30 19:18:12 +00:00

43 lines
1.3 KiB
Makefile

# $FreeBSD$
PORTNAME= gtts
DISTVERSIONPREFIX= v
DISTVERSION= 2.1.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}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} \
${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}testfixtures>0:devel/py-testfixtures@${PY_FLAVOR}
USES= python
USE_GITHUB= yes
GH_ACCOUNT= pndurette
GH_PROJECT= gTTS
USE_PYTHON= distutils 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
.include <bsd.port.post.mk>