mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
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
This commit is contained in:
parent
8e49ad617a
commit
d02141c9eb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=543817
@ -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
|
||||
|
43
audio/py-gtts/Makefile
Normal file
43
audio/py-gtts/Makefile
Normal file
@ -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>
|
3
audio/py-gtts/distinfo
Normal file
3
audio/py-gtts/distinfo
Normal file
@ -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
|
13
audio/py-gtts/pkg-descr
Normal file
13
audio/py-gtts/pkg-descr
Normal file
@ -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
|
@ -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:databases/py-sqlite3@${PY_FLAVOR}
|
||||
${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>
|
||||
|
@ -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
|
||||
|
28
security/py-gtts-token/Makefile
Normal file
28
security/py-gtts-token/Makefile
Normal file
@ -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>
|
3
security/py-gtts-token/distinfo
Normal file
3
security/py-gtts-token/distinfo
Normal file
@ -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
|
4
security/py-gtts-token/pkg-descr
Normal file
4
security/py-gtts-token/pkg-descr
Normal file
@ -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
|
@ -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
|
||||
|
22
textproc/py-googletrans/Makefile
Normal file
22
textproc/py-googletrans/Makefile
Normal file
@ -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>
|
3
textproc/py-googletrans/distinfo
Normal file
3
textproc/py-googletrans/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1594055380
|
||||
SHA256 (googletrans-3.0.0.tar.gz) = 44caeea42d91ff6ead5c2d49db2b88de66c45c2fe874c8ec03eb9b4ceb3a533d
|
||||
SIZE (googletrans-3.0.0.tar.gz) = 17489
|
13
textproc/py-googletrans/pkg-descr
Normal file
13
textproc/py-googletrans/pkg-descr
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user