forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
simon-0.4.90.ebuild
63 lines (53 loc) · 1.57 KB
/
simon-0.4.90.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
KDE_LINGUAS="ast bs ca ca@valencia cs da de el en_GB es et fa fi fr ga gl
hu ia ja kk lt mr nds nl pl pt pt_BR sk sl sv tr ug uk zh_CN zh_TW"
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)"
}