diff options
Diffstat (limited to 'app-accessibility/simon/simon-0.4.90-r1.ebuild')
-rw-r--r-- | app-accessibility/simon/simon-0.4.90-r1.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/app-accessibility/simon/simon-0.4.90-r1.ebuild b/app-accessibility/simon/simon-0.4.90-r1.ebuild new file mode 100644 index 000000000000..7233beeb2d23 --- /dev/null +++ b/app-accessibility/simon/simon-0.4.90-r1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +SQL_REQUIRED="always" +inherit kde4-base + +DESCRIPTION="Open-source speech recognition program for replacing mouse and keyboard" +HOMEPAGE="http://simon-listens.org/" +SRC_URI="mirror://kde/unstable/simon/${PV}/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="libsamplerate opencv sphinx" + +RDEPEND=" + media-libs/alsa-lib + x11-libs/libX11 + x11-libs/libXtst + x11-libs/qwt:6[qt4] + libsamplerate? ( media-libs/libsamplerate ) + opencv? ( media-libs/opencv ) + sphinx? ( + >=app-accessibility/pocketsphinx-0.8 + >=app-accessibility/sphinxbase-0.8 + >=app-accessibility/SphinxTrain-1 + ) + !sphinx? ( app-accessibility/julius ) +" +DEPEND="${RDEPEND} + sys-devel/bison + sys-devel/flex + virtual/pkgconfig +" + +PATCHES=( "${FILESDIR}"/${PN}-0.4.1-libdir.patch ) + +src_configure() { + local mycmakeargs=( + -DSIMON_LIB_INSTALL_DIR=/usr/$(get_libdir) + -DWITH_KdepimLibs=OFF + -DUSE_PLASMA=OFF + -DWITH_LibSampleRate=$(usex libsamplerate) + -DWITH_OpenCV=$(usex opencv) + -DBackendType=$(usex sphinx "both" "jhtk") + $(cmake-utils_use_find_package sphinx Sphinxbase) + $(cmake-utils_use_find_package sphinx Pocketsphinx) + ) + + kde4-base_src_configure +} + +pkg_postinst() { + kde4-base_pkg_postinst + + elog "Optional dependencies:" + elog " kde-apps/jovie (support for Jovie TTS system)" + use sphinx && elog " app-accessibility/julius (alternative backend)" +} |