Date: Thu, 30 Jul 2020 19:18:12 +0000 (UTC) From: =?UTF-8?Q?Lo=c3=afc_Bartoletti?= <lbartoletti@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r543817 - in head: audio audio/py-gtts games/py-mnemosyne security security/py-gtts-token textproc textproc/py-googletrans Message-ID: <202007301918.06UJIC0q031814@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: lbartoletti Date: Thu Jul 30 19:18:12 2020 New Revision: 543817 URL: https://svnweb.freebsd.org/changeset/ports/543817 Log: 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 Added: head/audio/py-gtts/ head/audio/py-gtts/Makefile (contents, props changed) head/audio/py-gtts/distinfo (contents, props changed) head/audio/py-gtts/pkg-descr (contents, props changed) head/security/py-gtts-token/ head/security/py-gtts-token/Makefile (contents, props changed) head/security/py-gtts-token/distinfo (contents, props changed) head/security/py-gtts-token/pkg-descr (contents, props changed) head/textproc/py-googletrans/ head/textproc/py-googletrans/Makefile (contents, props changed) head/textproc/py-googletrans/distinfo (contents, props changed) head/textproc/py-googletrans/pkg-descr (contents, props changed) Modified: head/audio/Makefile head/games/py-mnemosyne/Makefile head/security/Makefile head/textproc/Makefile Modified: head/audio/Makefile ============================================================================== --- head/audio/Makefile Thu Jul 30 18:59:48 2020 (r543816) +++ head/audio/Makefile Thu Jul 30 19:18:12 2020 (r543817) @@ -660,6 +660,7 @@ SUBDIR += py-fmoo-audiotools SUBDIR += py-gmusicapi SUBDIR += py-gmusicproxy + SUBDIR += py-gtts SUBDIR += py-hsaudiotag SUBDIR += py-karaoke SUBDIR += py-mpd Added: head/audio/py-gtts/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/py-gtts/Makefile Thu Jul 30 19:18:12 2020 (r543817) @@ -0,0 +1,43 @@ +# $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> Added: head/audio/py-gtts/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/py-gtts/distinfo Thu Jul 30 19:18:12 2020 (r543817) @@ -0,0 +1,3 @@ +TIMESTAMP = 1594610064 +SHA256 (pndurette-gTTS-v2.1.1_GH0.tar.gz) = 7ba54c933aadf83811d397947a2702360188a03b3571b3caff0d618aa34c0d7c +SIZE (pndurette-gTTS-v2.1.1_GH0.tar.gz) = 33476 Added: head/audio/py-gtts/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/py-gtts/pkg-descr Thu Jul 30 19:18:12 2020 (r543817) @@ -0,0 +1,13 @@ +gTTS (Google Text-to-Speech), a Python library and CLI tool to interface with +Google Translate's text-to-speech API. Write spoken mp3 data to a file, a +file-like object (bytestring) for further audio manipulation, or stdout. + +Or simply pre-generate Google Translate TTS request URLs to feed to an external +program. + +Customizable speech-specific sentence tokenizer that allows for unlimited +lengths of text to be read, all while keeping proper intonation, abbreviations, +decimals and more; Customizable text pre-processors which can, for example, +provide pronunciation corrections; Automatic retrieval of supported languages. + +WWW: https://github.com/pndurette/gTTS Modified: head/games/py-mnemosyne/Makefile ============================================================================== --- head/games/py-mnemosyne/Makefile Thu Jul 30 18:59:48 2020 (r543816) +++ head/games/py-mnemosyne/Makefile Thu Jul 30 19:18:12 2020 (r543817) @@ -3,13 +3,14 @@ PORTNAME= mnemosyne PORTVERSION= 2.7.1 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= games python MASTER_SITES= SF/mnemosyne-proj/${PORTNAME}/${PORTNAME}-${DISTVERSION} PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= Mnemosyne-${DISTVERSION} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= lbartoletti@FreeBSD.org COMMENT= Flash-card tool which optimises your learning process LICENSE= LGPL3 @@ -19,15 +20,17 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:database ${PY_PILLOW} \ ${PYTHON_PKGNAMEPREFIX}matplotlib>=0:math/py-matplotlib@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}webob>=1.4:www/py-webob@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}cheroot>=0:www/py-cheroot@${PY_FLAVOR} + ${PYTHON_PKGNAMEPREFIX}cheroot>=0:www/py-cheroot@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}googletrans>=0:textproc/py-googletrans@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}gtts>=0:audio/py-gtts@${PY_FLAVOR} -USES= pyqt:5 python:3.5+ +USES= pyqt:5 python:3.7+ #due textproc/py-googletrans USE_PYQT= gui_run network_run printsupport_run sip_run sql_run webengine_run -USE_PYTHON= distutils autoplist +USE_PYTHON= autoplist concurrent distutils NO_ARCH= yes post-patch: - @${REINPLACE_CMD} -e 's|\(share/\)icons|\1pixmaps|' ${WRKSRC}/setup.py + @${REINPLACE_CMD} -e 's|icons|pixmaps|' ${WRKSRC}/setup.py .include <bsd.port.mk> Modified: head/security/Makefile ============================================================================== --- head/security/Makefile Thu Jul 30 18:59:48 2020 (r543816) +++ head/security/Makefile Thu Jul 30 19:18:12 2020 (r543817) @@ -895,6 +895,7 @@ SUBDIR += py-gpgme SUBDIR += py-gpsoauth SUBDIR += py-gssapi + SUBDIR += py-gtts-token SUBDIR += py-halberd SUBDIR += py-hkdf SUBDIR += py-htpasswd Added: head/security/py-gtts-token/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/py-gtts-token/Makefile Thu Jul 30 19:18:12 2020 (r543817) @@ -0,0 +1,28 @@ +# $FreeBSD$ + +PORTNAME= gtts-token +DISTVERSIONPREFIX= v +DISTVERSION= 1.1.3 +CATEGORIES= security python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= kai@FreeBSD.org +COMMENT= Calculates a token to run the Google Translate text to speech + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} + +USES= python +USE_GITHUB= yes +GH_ACCOUNT= Boudewijn26 +GH_PROJECT= gTTS-token +USE_PYTHON= distutils autoplist + +NO_ARCH= yes + +do-test: + @cd ${WRKSRC} && ${PYTHON_CMD} -m unittest discover -v -s gtts_token/tests + +.include <bsd.port.mk> Added: head/security/py-gtts-token/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/py-gtts-token/distinfo Thu Jul 30 19:18:12 2020 (r543817) @@ -0,0 +1,3 @@ +TIMESTAMP = 1594276526 +SHA256 (Boudewijn26-gTTS-token-v1.1.3_GH0.tar.gz) = c0593de172ca8abd8c0fc408269818da2933f35f37b3a3a894666f91ccdc87eb +SIZE (Boudewijn26-gTTS-token-v1.1.3_GH0.tar.gz) = 4751 Added: head/security/py-gtts-token/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/py-gtts-token/pkg-descr Thu Jul 30 19:18:12 2020 (r543817) @@ -0,0 +1,4 @@ +Google Translate requires a tk param when making a request to its translate +API. This project provides an implementation for that algorithm in Python. + +WWW: https://github.com/boudewijn26/gTTS-token Modified: head/textproc/Makefile ============================================================================== --- head/textproc/Makefile Thu Jul 30 18:59:48 2020 (r543816) +++ head/textproc/Makefile Thu Jul 30 19:18:12 2020 (r543817) @@ -1260,6 +1260,7 @@ SUBDIR += py-genshi SUBDIR += py-gensim SUBDIR += py-gfm + SUBDIR += py-googletrans SUBDIR += py-grako SUBDIR += py-guess-language SUBDIR += py-hexdump Added: head/textproc/py-googletrans/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/py-googletrans/Makefile Thu Jul 30 19:18:12 2020 (r543817) @@ -0,0 +1,22 @@ +# $FreeBSD$ + +PORTNAME= googletrans +DISTVERSION= 3.0.0 +CATEGORIES= textproc python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= kai@FreeBSD.org +COMMENT= Free Google Translate API that translates totally free of charge + +LICENSE= MIT +# LICENSE_FILE isn't packaged in the sdist, yet + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}httpx==0.13.3:www/py-httpx@${PY_FLAVOR} + +USES= python:3.7+ # due www/py-httpx that requires 3.7+ +USE_PYTHON= distutils autoplist + +NO_ARCH= yes + +.include <bsd.port.mk> Added: head/textproc/py-googletrans/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/py-googletrans/distinfo Thu Jul 30 19:18:12 2020 (r543817) @@ -0,0 +1,3 @@ +TIMESTAMP = 1594055380 +SHA256 (googletrans-3.0.0.tar.gz) = 44caeea42d91ff6ead5c2d49db2b88de66c45c2fe874c8ec03eb9b4ceb3a533d +SIZE (googletrans-3.0.0.tar.gz) = 17489 Added: head/textproc/py-googletrans/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/py-googletrans/pkg-descr Thu Jul 30 19:18:12 2020 (r543817) @@ -0,0 +1,13 @@ +Googletrans is a free and unlimited Python library that implemented the +Google Translate API. This uses the Google Translate Ajax API to make calls to +such methods as detect and translate. + +Features: + +* Fast and reliable - it uses the same servers that translate.google.com uses +* Auto language detection +* Bulk translations +* Customizable service URL +* HTTP/2 support + +WWW: https://github.com/ssut/py-googletrans
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202007301918.06UJIC0q031814>