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.
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py311-gTTS listed in the above command, you can pick from the names under the Packages section.
devel/py-setuptools: convert individual consumers to ${PY_SETUPTOOLS}
Currently a no-op, but in the future outputs the correct setuptools
port depending on whether USES_PYTHON=distutils is specified.
With hat: python
PR: 270510, 270358
Revert "Mk/Uses/python.mk: Fix USE_PYTHON=pep517: always compile and install
bytecode"
Despite installer's default behaviour to compile and install bytecode,
we are not doing so going forward at stage/package time. [0] During
initial development and qualification of PEP-517 framework support,
compiling and installing bytecode at stage/package time was considered,
but was found problematic, fragile and ultimately unreliable, both
currently and historically (with USE_PYTHON=distutils), due to our
fixed plist requirement. While the living binary distribution format
(wheel) specification [1] says to compile bytecode, that is in the
pure Python package management context (pip, etc); nuance always
exists when interacting with "system" package management.
Additionally, "bytecode is an implementation detail of the CPython
interpreter. No guarantees are made that bytecode will not be added,
(Only the first 15 lines of the commit message are shown above )
Mk/Uses/python.mk: Fix USE_PYTHON=pep517: always compile and install bytecode
- While I'm here, use long options for easier reading [1][2]
- Bump PORTREVISION of dependent ports (USE_PYTHON=pep517) for package change
It fixes build_fs_violation of dependent ports in poudriere (with -t flag).
It is also the default behavior of installer [2].
from py-sphinx log:
=>> Checking for staging violations... done
=>> Error: Filesystem touched during stage (files must install to ${STAGEDIR}):
extra: usr/local/lib/python3.9/site-packages/importlib_metadata/__pycache__
=>> Cleaning up wrkdir
from installer documentation:
--compile-bytecode
Possible choices: 0, 1, 2
generate bytecode for the specified optimization level(s) (default=0, 1)
--no-compile-bytecode
don’t generate bytecode for installed modules
Default: False
With hat: python
Reference: https://pypa-build.readthedocs.io/en/stable/ [1]
https://installer.pypa.io/en/stable/cli/installer/ [2]
audio/py-gtts: Adopt/Update to 2.3.0
- Use pep517 build
- Renamed PORTNAME gtts -> gTTS to match PYPI package name case
- Added issue url on test failures
- Updated run dependencies versions
ChangeLog: https://github.com/pndurette/gTTS/releases/tag/v2.3.0
PR: 268902
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
audio/py-gtts: Update to 2.2.1
* Make port concurrent safe as it installs scripts outside of Python's
site-lib directory.
* Remove no longer required dependency of devel/py-twine and obsolete parts
for Python < 3.6 after r559056 .
Changelogs since 2.1.1:
https://github.com/pndurette/gTTS/blob/v2.2.1/CHANGELOG.rst
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