summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--audio/Makefile1
-rw-r--r--audio/py-gtts/Makefile43
-rw-r--r--audio/py-gtts/distinfo3
-rw-r--r--audio/py-gtts/pkg-descr13
-rw-r--r--games/py-mnemosyne/Makefile13
-rw-r--r--security/Makefile1
-rw-r--r--security/py-gtts-token/Makefile28
-rw-r--r--security/py-gtts-token/distinfo3
-rw-r--r--security/py-gtts-token/pkg-descr4
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/py-googletrans/Makefile22
-rw-r--r--textproc/py-googletrans/distinfo3
-rw-r--r--textproc/py-googletrans/pkg-descr13
13 files changed, 143 insertions, 5 deletions
diff --git a/audio/Makefile b/audio/Makefile
index 85f9f74d7364..f819fdc98622 100644
--- a/audio/Makefile
+++ b/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
diff --git a/audio/py-gtts/Makefile b/audio/py-gtts/Makefile
new file mode 100644
index 000000000000..67e0661b7bea
--- /dev/null
+++ b/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>
diff --git a/audio/py-gtts/distinfo b/audio/py-gtts/distinfo
new file mode 100644
index 000000000000..d5015035d30f
--- /dev/null
+++ b/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
diff --git a/audio/py-gtts/pkg-descr b/audio/py-gtts/pkg-descr
new file mode 100644
index 000000000000..ff462aaa8577
--- /dev/null
+++ b/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
diff --git a/games/py-mnemosyne/Makefile b/games/py-mnemosyne/Makefile
index fe3735c86fbd..0371baeb36ed 100644
--- a/games/py-mnemosyne/Makefile
+++ b/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 @@ 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>
diff --git a/security/Makefile b/security/Makefile
index ecaf17ebcc83..7aca2b803395 100644
--- a/security/Makefile
+++ b/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
diff --git a/security/py-gtts-token/Makefile b/security/py-gtts-token/Makefile
new file mode 100644
index 000000000000..f75fee4e0925
--- /dev/null
+++ b/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>
diff --git a/security/py-gtts-token/distinfo b/security/py-gtts-token/distinfo
new file mode 100644
index 000000000000..8bc8533c5f94
--- /dev/null
+++ b/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
diff --git a/security/py-gtts-token/pkg-descr b/security/py-gtts-token/pkg-descr
new file mode 100644
index 000000000000..818c008a9c5d
--- /dev/null
+++ b/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
diff --git a/textproc/Makefile b/textproc/Makefile
index da94e084074b..1b79d48c5c89 100644
--- a/textproc/Makefile
+++ b/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
diff --git a/textproc/py-googletrans/Makefile b/textproc/py-googletrans/Makefile
new file mode 100644
index 000000000000..2dfd7d01105a
--- /dev/null
+++ b/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>
diff --git a/textproc/py-googletrans/distinfo b/textproc/py-googletrans/distinfo
new file mode 100644
index 000000000000..ce1cd0ed225d
--- /dev/null
+++ b/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
diff --git a/textproc/py-googletrans/pkg-descr b/textproc/py-googletrans/pkg-descr
new file mode 100644
index 000000000000..186c4ac9188b
--- /dev/null
+++ b/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