diff options
author | Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in> | 2021-12-07 09:16:53 +0500 |
---|---|---|
committer | Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in> | 2021-12-07 09:19:49 +0500 |
commit | f30051c43841ba749a08f9b3e460f077818fdc7a (patch) | |
tree | 105c52668eb328bc929eb0a879eba71da6306527 /app-accessibility | |
parent | dev-python/build: initial import (diff) | |
download | guru-f30051c43841ba749a08f9b3e460f077818fdc7a.tar.gz guru-f30051c43841ba749a08f9b3e460f077818fdc7a.tar.bz2 guru-f30051c43841ba749a08f9b3e460f077818fdc7a.zip |
app-accessibility/rhvoice: add 1.6.0
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
Diffstat (limited to 'app-accessibility')
-rw-r--r-- | app-accessibility/rhvoice/Manifest | 1 | ||||
-rw-r--r-- | app-accessibility/rhvoice/rhvoice-1.6.0.ebuild | 126 |
2 files changed, 127 insertions, 0 deletions
diff --git a/app-accessibility/rhvoice/Manifest b/app-accessibility/rhvoice/Manifest index 79881ad96..13d2330eb 100644 --- a/app-accessibility/rhvoice/Manifest +++ b/app-accessibility/rhvoice/Manifest @@ -1 +1,2 @@ DIST rhvoice-1.4.2-release.tar.gz 252269229 BLAKE2B 0f5564dcb986eec49bead04b46afe7e5caf8a186cdd23f3c9727ee9e6bdeb4b326d6b9cec3f9cdde78d01286d16f05aad840f67aa44b22ce05b7db85d04f2144 SHA512 edee8fa79fa0f3eecd2bca6a6c4846876cce2fc7b843a481357b536a42485f9524fc64e9e8a6766cbe46bcc2ef9ad0375cab16ad35722895db5697e14234a8de +DIST rhvoice-1.6.0.tar.gz 307395200 BLAKE2B b31110d15dddb4d1607c8b3a24a551876f0612840eb0d668546bbde1929259c84a0188059e1470b90049e6d410c85116d46b0d1059aa3712bae464d8c8cdca48 SHA512 320a773a647af3bd3f6eac21003c7db790c65849baa87f7cc5c2bee874d0ad8074c21ed0962851dd2e0721ecd6b0f52f03a876788e6609275516fe2d1e46905d diff --git a/app-accessibility/rhvoice/rhvoice-1.6.0.ebuild b/app-accessibility/rhvoice/rhvoice-1.6.0.ebuild new file mode 100644 index 000000000..2918efd80 --- /dev/null +++ b/app-accessibility/rhvoice/rhvoice-1.6.0.ebuild @@ -0,0 +1,126 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CMAKE_REMOVE_MODULES_LIST=( VersionFromGit ) +inherit cmake + +DESCRIPTION="TTS engine with extended languages support (including Russian)" +HOMEPAGE="https://rhvoice.su https://github.com/RHVoice/RHVoice" +SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.gz" + +AGPL_LANGS=( mk ) +CC_SA_LANGS=( pt-BR ) +CC_NC_LANGS=( en eo ky ru uk ) +NC_LANGS=( ka tt ) +LANGS=( + "${AGPL_LANGS[@]}" + "${CC_SA_LANGS[@]}" + "${CC_NC_LANGS[@]}" + "${LGPL2_LANGS[@]}" + "${NC_LANGS[@]}" + sq # LGPL-2.1+ +) + +LICENSE="BSD GPL-2 GPL-3+ LGPL-2.1+ + $(printf 'l10n_%s? ( AGPL-3 )\n' "${AGPL_LANGS[@]}") + $(printf 'l10n_%s? ( CC-BY-SA-4.0 )\n' "${CC_SA_LANGS[@]}") + $(printf 'l10n_%s? ( CC-BY-NC-ND-4.0 )\n' "${CC_NC_LANGS[@]}") + $(printf 'l10n_%s? ( free-noncomm )\n' "${NC_LANGS[@]}") +" +KEYWORDS="~amd64 ~x86" +IUSE="$(printf 'l10n_%s ' ${LANGS[@]}) ao cli portaudio +pulseaudio +server +speech-dispatcher" +SLOT="0" +REQUIRED_USE="|| ( ao portaudio pulseaudio )" + +DEPEND=" + ao? ( media-libs/libao ) + portaudio? ( media-libs/portaudio ) + pulseaudio? ( media-sound/pulseaudio ) + server? ( + dev-libs/glib:2[dbus] + dev-libs/libsigc++:2 + >=dev-cpp/glibmm-2.66.1:2 + ) + speech-dispatcher? ( app-accessibility/speech-dispatcher ) +" +RDEPEND="${DEPEND} + !dev-libs/hts_engine +" +# TODO: readd dev-libs/rapidxml in ::guru +BDEPEND=" + dev-cpp/cli11 + dev-libs/utfcpp +" +REQUIRED_USE="|| ( ao portaudio pulseaudio )" + +DOCS=( README.md doc config/dicts ) + +delete_voices() { + for voice in "$@"; do + rm -r "data/voices/${voice}" || die + done +} + +src_prepare() { + cmake_src_prepare + + sed "s|/lib/speech-dispatcher-modules|/$(get_libdir)/speech-dispatcher-modules|" \ + -i src/sd_module/CMakeLists.txt || die + + # fix dbus service install path + sed "s|/systemd/system||" \ + -i src/service/CMakeLists.txt || die + + #sed -e "/set(RAPIDXML_INCLUDE_DIR/d" \ + # -i src/third-party/CMakeLists.txt || die + sed "/set(UTF8_INCLUDE_DIR/d" -i src/CMakeLists.txt || die + + # fix build failure + sed 's/ "RHVoice_question_match"//' \ + -i src/third-party/mage/CMakeLists.txt || die + + sed -e "/include(VersionFromGit)/d" \ + -e "/getVersionFromGit/d" \ + -i CMakeLists.txt || die + + use l10n_en || delete_voices alan bdl clb evgeniy-eng lubov slt + use l10n_eo || delete_voices spomenka + use l10n_ka || delete_voices natia + use l10n_ky || delete_voices azamat nazgul + use l10n_mk || delete_voices kiko + use l10n_ru || delete_voices aleksandr aleksandr-hq anna arina artemiy \ + elena evgeniy-rus irina mikhail pavel tatiana victoria yuriy + use l10n_sq || delete-voices hana + use l10n_tt || delete_voices talgat + use l10n_uk || delete_voices anatol marianna natalia volodymyr + use l10n_pt-BR || delete_voices Leticia-F123 +} + +src_configure() { + local mycmakeargs=( + -Dcommon_doc_dir=/usr/share/doc/${PF} + -DRHVOICE_VERSION=${PV} + -DRHVOICE_VERSION_MAJOR=$(ver_cut 1) + -DWITH_CLI11=ON + # src/CMakeLists.txt + -DBUILD_CLIENT=OFF # deprecated + -DBUILD_UTILS=OFF # fails to build because of bundled tclap + -DBUILD_TESTS=$(usex cli) + -DBUILD_SERVICE=$(usex server) + -DBUILD_SPEECHDISPATCHER_MODULE=$(usex speech-dispatcher) + # src/audio/CMakeLists.txt + -DWITH_LIBAO=$(usex ao) + -DWITH_PULSE=$(usex pulseaudio) + -DWITH_PORTAUDIO=$(usex portaudio) + # src/third-party/CMakeLists.txt + #-DRAPIDXML_INCLUDE_DIR=/usr/include/rapidxml + -DUTF8_INCLUDE_DIR=/usr/include/utf8cpp + # Hardening.cmake: don't mess with flags + -DHARDENING_COMPILE_FLAGS= + -DHARDENING_LINK_FLAGS= + ) + + cmake_src_configure +} |