diff options
-rw-r--r-- | app-accessibility/rhvoice/rhvoice-9999.ebuild | 73 |
1 files changed, 51 insertions, 22 deletions
diff --git a/app-accessibility/rhvoice/rhvoice-9999.ebuild b/app-accessibility/rhvoice/rhvoice-9999.ebuild index daaf84e..aeda8a6 100644 --- a/app-accessibility/rhvoice/rhvoice-9999.ebuild +++ b/app-accessibility/rhvoice/rhvoice-9999.ebuild @@ -1,41 +1,70 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -PYTHON_COMPAT=(python3_{6,7,8,9}) - -inherit python-any-r1 scons-utils eutils toolchain-funcs multilib git-r3 - -SRC_URI="" +inherit cmake git-r3 DESCRIPTION="A speech synthesizer for Russian (and similar) language" HOMEPAGE="https://github.com/Olga-Yakovleva/RHVoice" EGIT_REPO_URI="https://github.com/Olga-Yakovleva/RHVoice" -LICENSE="GPL-3" +EGIT_SUBMODULES=( + '*' + -src/third-party/cldr + -external/libs/boost/libs/'*' + -bin/msi +) +LICENSE="mage? ( GPL-3 ) !mage? ( LGPL-2.1 )" SLOT="0" -RDEPEND="" +IUSE="ao +client +data +mage pulseaudio portaudio +server +speech-dispatcher +testapp +utils" + +RDEPEND=" + dev-cpp/glibmm + dev-cpp/tclap + dev-libs/dbus-glib + dev-libs/glib + dev-libs/libsigc++ + ao? ( media-libs/libao ) + portaudio? ( media-libs/portaudio ) + pulseaudio? ( media-sound/pulseaudio ) +" DEPEND=" ${RDEPEND} - app-accessibility/flite - dev-libs/libunistring - dev-libs/expat - dev-libs/libpcre - media-sound/sox - dev-util/scons " -DOCS=(README.md NEWS doc) +DOCS=(README.md doc) + +src_prepare() { + sed -r \ + -e '/pkg_check.*dbus\)/s@dbus@dbus-1@' \ + -i src/{,bin/}CMakeLists.txt + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + "-DENABLE_MAGE=$(usex mage ON OFF)" + "-DWITH_DATA=$(usex data ON OFF)" + "-DWITH_LIBAO=$(usex ao ON OFF)" + "-DWITH_PULSE=$(usex pulseaudio ON OFF)" + "-DWITH_PORTAUDIO=$(usex portaudio ON OFF)" + + "-DBUILD_CLIENT=$(usex client ON OFF)" + "-DBUILD_SERVICE=$(usex server ON OFF)" + "-DBUILD_SPEECHDISPATCHER_MODULE=$(usex speech-dispatcher ON OFF)" + "-DBUILD_TESTS=$(usex testapp ON OFF)" + "-DBUILD_UTILS=$(usex utils ON OFF)" -# TODO: multilib support (just in case) + #"-DWITH_CLI11=ON" -src_compile() { - escons DESTDIR="${D}" prefix=/usr sysconfdir=/etc libdir="/usr/$(get_libdir)" + "-Denable_xp_compat=OFF" + "-Dcommon_doc_dir=/usr/share/doc/${PF}" \ + "-DSPEECH_DISPATCHER_MODULES_DIR=/usr/$(get_libdir)/speech-dispatcher-modules" + ) + cmake_src_configure } src_install() { - escons DESTDIR="${D}" prefix=/usr sysconfdir=/etc libdir="/usr/$(get_libdir)" install - einstalldocs - dosym "/usr/bin/sd_${PN}" "/usr/$(get_libdir)/speech-dispatcher-modules/sd_${PN}" + cmake_src_install } |