Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F137925744
D25895.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
8 KB
Referenced Files
None
Subscribers
None
D25895.diff
View Options
Index: head/audio/Makefile
===================================================================
--- head/audio/Makefile
+++ head/audio/Makefile
@@ -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
Index: head/audio/py-gtts/Makefile
===================================================================
--- head/audio/py-gtts/Makefile
+++ head/audio/py-gtts/Makefile
@@ -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>
Index: head/audio/py-gtts/distinfo
===================================================================
--- head/audio/py-gtts/distinfo
+++ head/audio/py-gtts/distinfo
@@ -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
Index: head/audio/py-gtts/pkg-descr
===================================================================
--- head/audio/py-gtts/pkg-descr
+++ head/audio/py-gtts/pkg-descr
@@ -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
Index: head/games/py-mnemosyne/Makefile
===================================================================
--- head/games/py-mnemosyne/Makefile
+++ head/games/py-mnemosyne/Makefile
@@ -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 @@
${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>
Index: head/security/Makefile
===================================================================
--- head/security/Makefile
+++ head/security/Makefile
@@ -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
Index: head/security/py-gtts-token/Makefile
===================================================================
--- head/security/py-gtts-token/Makefile
+++ head/security/py-gtts-token/Makefile
@@ -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>
Index: head/security/py-gtts-token/distinfo
===================================================================
--- head/security/py-gtts-token/distinfo
+++ head/security/py-gtts-token/distinfo
@@ -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
Index: head/security/py-gtts-token/pkg-descr
===================================================================
--- head/security/py-gtts-token/pkg-descr
+++ head/security/py-gtts-token/pkg-descr
@@ -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
Index: head/textproc/Makefile
===================================================================
--- head/textproc/Makefile
+++ head/textproc/Makefile
@@ -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
Index: head/textproc/py-googletrans/Makefile
===================================================================
--- head/textproc/py-googletrans/Makefile
+++ head/textproc/py-googletrans/Makefile
@@ -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>
Index: head/textproc/py-googletrans/distinfo
===================================================================
--- head/textproc/py-googletrans/distinfo
+++ head/textproc/py-googletrans/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1594055380
+SHA256 (googletrans-3.0.0.tar.gz) = 44caeea42d91ff6ead5c2d49db2b88de66c45c2fe874c8ec03eb9b4ceb3a533d
+SIZE (googletrans-3.0.0.tar.gz) = 17489
Index: head/textproc/py-googletrans/pkg-descr
===================================================================
--- head/textproc/py-googletrans/pkg-descr
+++ head/textproc/py-googletrans/pkg-descr
@@ -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
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 28, 7:58 AM (8 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26277991
Default Alt Text
D25895.diff (8 KB)
Attached To
Mode
D25895: games/py-mnemosyne: fix runtime error
Attached
Detach File
Event Timeline
Log In to Comment