View | Details | Raw Unified | Return to bug 247595 | Differences between
and this patch

Collapse All | Expand All

(-)audio/Makefile (+1 lines)
Lines 658-663 Link Here
658
    SUBDIR += py-fmoo-audiotools
658
    SUBDIR += py-fmoo-audiotools
659
    SUBDIR += py-gmusicapi
659
    SUBDIR += py-gmusicapi
660
    SUBDIR += py-gmusicproxy
660
    SUBDIR += py-gmusicproxy
661
    SUBDIR += py-gtts
661
    SUBDIR += py-hsaudiotag
662
    SUBDIR += py-hsaudiotag
662
    SUBDIR += py-karaoke
663
    SUBDIR += py-karaoke
663
    SUBDIR += py-mpd
664
    SUBDIR += py-mpd
(-)audio/py-gtts/Makefile (+43 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
PORTNAME=	gtts
4
DISTVERSIONPREFIX=	v
5
DISTVERSION=	2.1.1
6
CATEGORIES=	audio python
7
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
8
9
MAINTAINER=	kai@FreeBSD.org
10
COMMENT=	Library/CLI tool to interface with Google Translate text-to-speech API
11
12
LICENSE=	MIT
13
LICENSE_FILE=	${WRKSRC}/LICENSE
14
15
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}beautifulsoup>0:www/py-beautifulsoup@${PY_FLAVOR} \
16
		${PYTHON_PKGNAMEPREFIX}click>0:devel/py-click@${PY_FLAVOR} \
17
		${PYTHON_PKGNAMEPREFIX}gtts-token>=1.1.3:security/py-gtts-token@${PY_FLAVOR} \
18
		${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} \
19
		${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR}
20
TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>=3.9:devel/py-pytest@${PY_FLAVOR} \
21
		${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR} \
22
		${PYTHON_PKGNAMEPREFIX}testfixtures>0:devel/py-testfixtures@${PY_FLAVOR}
23
24
USES=		python
25
USE_GITHUB=	yes
26
GH_ACCOUNT=	pndurette
27
GH_PROJECT=	gTTS
28
USE_PYTHON=	distutils autoplist
29
30
NO_ARCH=	yes
31
32
.include <bsd.port.pre.mk>
33
34
.if ${PYTHON_REL} < 3600
35
BUILD_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}twine1>=1.11:devel/py-twine1@${PY_FLAVOR}
36
.else
37
BUILD_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}twine>=1.11:devel/py-twine@${PY_FLAVOR}
38
.endif
39
40
do-test:
41
	@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -rs -v
42
43
.include <bsd.port.post.mk>
(-)audio/py-gtts/distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1594610064
2
SHA256 (pndurette-gTTS-v2.1.1_GH0.tar.gz) = 7ba54c933aadf83811d397947a2702360188a03b3571b3caff0d618aa34c0d7c
3
SIZE (pndurette-gTTS-v2.1.1_GH0.tar.gz) = 33476
(-)audio/py-gtts/pkg-descr (+13 lines)
Line 0 Link Here
1
gTTS (Google Text-to-Speech), a Python library and CLI tool to interface with
2
Google Translate's text-to-speech API. Write spoken mp3 data to a file, a
3
file-like object (bytestring) for further audio manipulation, or stdout.
4
5
Or simply pre-generate Google Translate TTS request URLs to feed to an external
6
program.
7
8
Customizable speech-specific sentence tokenizer that allows for unlimited
9
lengths of text to be read, all while keeping proper intonation, abbreviations,
10
decimals and more; Customizable text pre-processors which can, for example,
11
provide pronunciation corrections; Automatic retrieval of supported languages.
12
13
WWW: https://github.com/pndurette/gTTS
(-)games/py-mnemosyne/Makefile (-2 / +5 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	mnemosyne
4
PORTNAME=	mnemosyne
5
PORTVERSION=		2.7.1
5
PORTVERSION=		2.7.1
6
PORTREVISION=	1
6
PORTEPOCH=	1
7
PORTEPOCH=	1
7
CATEGORIES=	games python
8
CATEGORIES=	games python
8
MASTER_SITES=	SF/mnemosyne-proj/${PORTNAME}/${PORTNAME}-${DISTVERSION}
9
MASTER_SITES=	SF/mnemosyne-proj/${PORTNAME}/${PORTNAME}-${DISTVERSION}
Lines 19-27 Link Here
19
		${PY_PILLOW} \
20
		${PY_PILLOW} \
20
		${PYTHON_PKGNAMEPREFIX}matplotlib>=0:math/py-matplotlib@${PY_FLAVOR} \
21
		${PYTHON_PKGNAMEPREFIX}matplotlib>=0:math/py-matplotlib@${PY_FLAVOR} \
21
		${PYTHON_PKGNAMEPREFIX}webob>=1.4:www/py-webob@${PY_FLAVOR} \
22
		${PYTHON_PKGNAMEPREFIX}webob>=1.4:www/py-webob@${PY_FLAVOR} \
22
		${PYTHON_PKGNAMEPREFIX}cheroot>=0:www/py-cheroot@${PY_FLAVOR}
23
		${PYTHON_PKGNAMEPREFIX}cheroot>=0:www/py-cheroot@${PY_FLAVOR} \
24
		${PYTHON_PKGNAMEPREFIX}googletrans>=0:textproc/py-googletrans@${PY_FLAVOR} \
25
		${PYTHON_PKGNAMEPREFIX}gtts>=0:audio/py-gtts@${PY_FLAVOR}
23
26
24
USES=		pyqt:5 python:3.5+
27
USES=		pyqt:5 python:3.7+ #due textproc/py-googletrans
25
USE_PYQT=	gui_run network_run printsupport_run sip_run sql_run webengine_run
28
USE_PYQT=	gui_run network_run printsupport_run sip_run sql_run webengine_run
26
USE_PYTHON=	distutils autoplist
29
USE_PYTHON=	distutils autoplist
27
30
(-)security/Makefile (+1 lines)
Lines 894-899 Link Here
894
    SUBDIR += py-gpgme
894
    SUBDIR += py-gpgme
895
    SUBDIR += py-gpsoauth
895
    SUBDIR += py-gpsoauth
896
    SUBDIR += py-gssapi
896
    SUBDIR += py-gssapi
897
    SUBDIR += py-gtts-token
897
    SUBDIR += py-halberd
898
    SUBDIR += py-halberd
898
    SUBDIR += py-hkdf
899
    SUBDIR += py-hkdf
899
    SUBDIR += py-htpasswd
900
    SUBDIR += py-htpasswd
(-)security/py-gtts-token/Makefile (+28 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
PORTNAME=	gtts-token
4
DISTVERSIONPREFIX=	v
5
DISTVERSION=	1.1.3
6
CATEGORIES=	security python
7
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
8
9
MAINTAINER=	kai@FreeBSD.org
10
COMMENT=	Calculates a token to run the Google Translate text to speech
11
12
LICENSE=	MIT
13
LICENSE_FILE=	${WRKSRC}/LICENSE
14
15
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR}
16
17
USES=		python
18
USE_GITHUB=	yes
19
GH_ACCOUNT=	Boudewijn26
20
GH_PROJECT=	gTTS-token
21
USE_PYTHON=	distutils autoplist
22
23
NO_ARCH=	yes
24
25
do-test:
26
	@cd ${WRKSRC} && ${PYTHON_CMD} -m unittest discover -v -s gtts_token/tests
27
28
.include <bsd.port.mk>
(-)security/py-gtts-token/distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1594276526
2
SHA256 (Boudewijn26-gTTS-token-v1.1.3_GH0.tar.gz) = c0593de172ca8abd8c0fc408269818da2933f35f37b3a3a894666f91ccdc87eb
3
SIZE (Boudewijn26-gTTS-token-v1.1.3_GH0.tar.gz) = 4751
(-)security/py-gtts-token/pkg-descr (+4 lines)
Line 0 Link Here
1
Google Translate requires a tk param when making a request to its translate
2
API.  This project provides an implementation for that algorithm in Python.
3
4
WWW: https://github.com/boudewijn26/gTTS-token
(-)textproc/Makefile (+1 lines)
Lines 1259-1264 Link Here
1259
    SUBDIR += py-genshi
1259
    SUBDIR += py-genshi
1260
    SUBDIR += py-gensim
1260
    SUBDIR += py-gensim
1261
    SUBDIR += py-gfm
1261
    SUBDIR += py-gfm
1262
    SUBDIR += py-googletrans
1262
    SUBDIR += py-grako
1263
    SUBDIR += py-grako
1263
    SUBDIR += py-guess-language
1264
    SUBDIR += py-guess-language
1264
    SUBDIR += py-hexdump
1265
    SUBDIR += py-hexdump
(-)textproc/py-googletrans/Makefile (+22 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
PORTNAME=	googletrans
4
DISTVERSION=	3.0.0
5
CATEGORIES=	textproc python
6
MASTER_SITES=	CHEESESHOP
7
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
8
9
MAINTAINER=	kai@FreeBSD.org
10
COMMENT=	Free Google Translate API that translates totally free of charge
11
12
LICENSE=	MIT
13
# LICENSE_FILE isn't packaged in the sdist, yet
14
15
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}httpx=0.13.3:www/py-httpx@${PY_FLAVOR}
16
17
USES=		python:3.7+ # due www/py-httpx that requires 3.7+
18
USE_PYTHON=	distutils autoplist
19
20
NO_ARCH=	yes
21
22
.include <bsd.port.mk>
(-)textproc/py-googletrans/distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1594055380
2
SHA256 (googletrans-3.0.0.tar.gz) = 44caeea42d91ff6ead5c2d49db2b88de66c45c2fe874c8ec03eb9b4ceb3a533d
3
SIZE (googletrans-3.0.0.tar.gz) = 17489
(-)textproc/py-googletrans/pkg-descr (+13 lines)
Line 0 Link Here
1
Googletrans is a free and unlimited Python library that implemented the
2
Google Translate API.  This uses the Google Translate Ajax API to make calls to
3
such methods as detect and translate.
4
5
Features:
6
7
* Fast and reliable - it uses the same servers that translate.google.com uses
8
* Auto language detection
9
* Bulk translations
10
* Customizable service URL
11
* HTTP/2 support
12
13
WWW: https://github.com/ssut/py-googletrans

Return to bug 247595