app-accessibility/simon: Drop KDE_LINGUAS
authorAndreas Sturmlechner <asturm@gentoo.org>
Sat, 2 Dec 2017 21:12:16 +0000 (22:12 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sat, 2 Dec 2017 21:57:36 +0000 (22:57 +0100)
Package-Manager: Portage-2.3.16, Repoman-2.3.6

app-accessibility/simon/Manifest
app-accessibility/simon/simon-0.4.90-r1.ebuild [new file with mode: 0644]

index 7c5ea4ef0228cf1e0c6e14fe50fc30f7ff2aac2d..f79e4d6645bdc534623d098efa423adc0799af86 100644 (file)
@@ -1,2 +1,2 @@
 DIST simon-0.4.1.tar.bz2 23856024 SHA256 8d55bc3f607a89e15efd51b844d93daf67d9967ad243f54efae324754859342d SHA512 d7349af3ec2482f18d8407891eeea7beea75630cc85aeade9f4105e3b84e82fde6284338688bbf84824d43c68de102eb34f3c21068cbe8a3307aa0586732b30d WHIRLPOOL 4c512bdfed8676cb5cfb896eacb14c66e3497abebe97a4faeb6804feb8ba36ed9101bc79a6efa573470d4a4d7eb6dfc94e3315dac488554563d35a397a066acb
-DIST simon-0.4.90.tar.xz 25257276 SHA256 e3a947c3b0b3f033cce43e2e7a5df86e0e8beec0442b2c19397f69f39a33307b SHA512 88b225e6d0168b87241649019376c8726fb3cc96ccbb985fd3dac5f5b67ed2d84de2756537300d7944797bceb7e340cdaf1c5aed731c1a7e2873d284ca3f94c1 WHIRLPOOL dca0174065a8c06269a02fdfdd6133e10e3f944ab2574259d1330b6210db5ddc381bd0f19f7566e225c0a73b3e2ba716e6fccbcf938e9a89f94cfbfba177f7c4
+DIST simon-0.4.90.tar.xz 25257276 BLAKE2B d5f78c721dc55387db415a740b00831471d6325d3aa2a0282e476132d2c7e378c4b024500527fd54a4073e972494e6ecc6f094022b5651b163d78ff6fcb20fcf SHA512 88b225e6d0168b87241649019376c8726fb3cc96ccbb985fd3dac5f5b67ed2d84de2756537300d7944797bceb7e340cdaf1c5aed731c1a7e2873d284ca3f94c1
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 (file)
index 0000000..7233bee
--- /dev/null
@@ -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)"
+}