mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
app-accessibility/rhvoice-core: new package, add 1.14.0
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
2
app-accessibility/rhvoice-core/Manifest
Normal file
2
app-accessibility/rhvoice-core/Manifest
Normal file
@@ -0,0 +1,2 @@
|
||||
DIST RHVoice-1.14.0-sanitizers.tar.gz 7339 BLAKE2B e600886c9afed2681ea7ad5fd9900af7d3f98a7d96291af7c9ef648be438d149e86ee143f3fa5af0dee08457008ce66be43177adcac79401ef025ddd0d8d40fe SHA512 61df4641f3dbeca38cff44336df6fcea75d02d97135a677df51a02353b5580a96dd77af268bd42944afe36a58512fd948200098ea96a41d20ec503fc33a69421
|
||||
DIST RHVoice-1.14.0.tar.gz 3181853 BLAKE2B c3c8c7437aa859898dec8747963aa23e6e16b975b58d76f9b1ade3d1c17d9d4e63c24469a670c1210f9a1501606a34b6adf52ab4c64abfddb97541cced8f82b2 SHA512 dab57df49bdb1e2c574cd10e17e5bea08144a105d8f48991cef14b80d28db98dcae29b19d69ec97fc843ee8636d53c48845a3887552d347f117339c95fa0daf1
|
||||
29
app-accessibility/rhvoice-core/metadata.xml
Normal file
29
app-accessibility/rhvoice-core/metadata.xml
Normal file
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<name>Anna</name>
|
||||
<email>cyber+gentoo@sysrq.in</email>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">RHVoice/RHVoice</remote-id>
|
||||
</upstream>
|
||||
<use>
|
||||
<flag name="speech-dispatcher">Build a speech-dispatcher middleware module</flag>
|
||||
</use>
|
||||
<longdescription lang="en">
|
||||
RHVoice is a free and open source speech synthesizer.
|
||||
|
||||
Voices are built from recordings of natural speech. They have small
|
||||
footprints, because only statistical models are stored on users'
|
||||
computers. And though the voices lack the naturalness of the
|
||||
synthesizers which generate speech by combining segments of the
|
||||
recordings themselves, they are still very intelligible and resemble
|
||||
the speakers who recorded the source material.
|
||||
|
||||
Initially, RHVoice could speak only Russian. Now it also supports
|
||||
American English, Brazilian Portuguese, Esperanto, Georgian, Ukrainian,
|
||||
Kyrgyz and Tatar. In theory, it is possible to implement support for
|
||||
other languages, if all the necessary resources can be found or created.
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
||||
88
app-accessibility/rhvoice-core/rhvoice-core-1.14.0.ebuild
Normal file
88
app-accessibility/rhvoice-core/rhvoice-core-1.14.0.ebuild
Normal file
@@ -0,0 +1,88 @@
|
||||
# Copyright 2021-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake
|
||||
|
||||
MY_PN="RHVoice"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
SANITIZERS_COMMIT="99e159ec9bc8dd362b08d18436bd40ff0648417b"
|
||||
DESCRIPTION="TTS engine with extended languages support (including Russian)"
|
||||
HOMEPAGE="
|
||||
https://rhvoice.org
|
||||
https://github.com/RHVoice/RHVoice
|
||||
"
|
||||
SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/refs/tags/${PV}.tar.gz -> ${MY_P}.tar.gz
|
||||
https://github.com/arsenm/sanitizers-cmake/archive/${SANITIZERS_COMMIT}.tar.gz -> ${MY_P}-sanitizers.tar.gz
|
||||
"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="BSD GPL-2 GPL-3+ LGPL-2.1+"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="ao dbus portaudio +pulseaudio +speech-dispatcher"
|
||||
SLOT="0"
|
||||
REQUIRED_USE="|| ( ao portaudio pulseaudio )"
|
||||
|
||||
COMMON_DEPEND="
|
||||
ao? ( media-libs/libao )
|
||||
dbus? (
|
||||
dev-libs/glib:2[dbus]
|
||||
dev-libs/libsigc++:2
|
||||
>=dev-cpp/glibmm-2.66.1:2
|
||||
)
|
||||
portaudio? ( media-libs/portaudio )
|
||||
pulseaudio? ( media-libs/libpulse )
|
||||
speech-dispatcher? ( app-accessibility/speech-dispatcher )
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
!<app-accessibility/rhvoice-1.14.0
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
dev-cpp/cli11
|
||||
dev-libs/utfcpp
|
||||
"
|
||||
|
||||
DOCS=( README.md doc/. config/dicts )
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
cd "${S}" || die
|
||||
|
||||
rmdir cmake/thirdParty/sanitizers || die
|
||||
mv "${WORKDIR}"/sanitizers-cmake-${SANITIZERS_COMMIT} cmake/thirdParty/sanitizers || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
cmake_comment_add_subdirectory '"${thirdPartyCMakeModulesDir}/CCache"'
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DRHVOICE_VERSION_FROM_GIT=${PV}
|
||||
-DWITH_CLI11=ON
|
||||
-DWITH_DATA=OFF
|
||||
|
||||
# src/CMakeLists.txt
|
||||
-DBUILD_CLIENT=OFF # deprecated, use speech-dispatcher
|
||||
-DBUILD_UTILS=OFF # fails to build because of bundled tclap
|
||||
-DBUILD_TESTS=ON # standalone cli application
|
||||
-DBUILD_SERVICE=$(usex dbus)
|
||||
-DBUILD_SPEECHDISPATCHER_MODULE=$(usex speech-dispatcher)
|
||||
|
||||
# src/audio/CMakeLists.txt
|
||||
-DWITH_LIBAO=$(usex ao)
|
||||
-DWITH_PULSE=$(usex pulseaudio)
|
||||
-DWITH_PORTAUDIO=$(usex portaudio)
|
||||
|
||||
# Hardening.cmake: don't mess with flags
|
||||
-DHARDENING_PIC=OFF
|
||||
-DHARDENING_SSE2=OFF
|
||||
-DHARDENING_COMPILE_FLAGS=
|
||||
-DHARDENING_LINK_FLAGS=
|
||||
-DHARDENING_MACRODEFS=
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
Reference in New Issue
Block a user