diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-accessibility/simon | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-accessibility/simon')
-rw-r--r-- | app-accessibility/simon/Manifest | 2 | ||||
-rw-r--r-- | app-accessibility/simon/files/simon-0.4.0-libdir.patch | 16 | ||||
-rw-r--r-- | app-accessibility/simon/files/simon-0.4.0-linguas.patch | 84 | ||||
-rw-r--r-- | app-accessibility/simon/files/simon-0.4.0-opencv.patch | 11 | ||||
-rw-r--r-- | app-accessibility/simon/files/simon-0.4.0-sphinx.patch | 16 | ||||
-rw-r--r-- | app-accessibility/simon/files/simon-0.4.1-libdir.patch | 16 | ||||
-rw-r--r-- | app-accessibility/simon/files/simon-0.4.1-linguas.patch | 87 | ||||
-rw-r--r-- | app-accessibility/simon/files/simon-0.4.1-sphinx.patch | 16 | ||||
-rw-r--r-- | app-accessibility/simon/metadata.xml | 11 | ||||
-rw-r--r-- | app-accessibility/simon/simon-0.4.0.ebuild | 90 | ||||
-rw-r--r-- | app-accessibility/simon/simon-0.4.1.ebuild | 89 |
11 files changed, 438 insertions, 0 deletions
diff --git a/app-accessibility/simon/Manifest b/app-accessibility/simon/Manifest new file mode 100644 index 000000000000..d6f54033a45f --- /dev/null +++ b/app-accessibility/simon/Manifest @@ -0,0 +1,2 @@ +DIST simon-0.4.0.tar.bz2 22139378 SHA256 c7ef35cd28ecf294ceae63f4b0c53384bcf89fc2a6e67916dc9d4116decabc12 SHA512 541c22e09bb4234871707cd73e038a5ab0c68a6cb2a28993571c434edff639e4826554f922a4a188b5c2a70ff9a0d627f53af0954431b561adeedccf9c170c85 WHIRLPOOL c2e0cc8632bf089ed14ef53cae02c51166780692222b7f3c7a3583356e9669cbbcd3222507128b35f282b49de2f10a73c42f63e28596c6e8412ff766bb3febfb +DIST simon-0.4.1.tar.bz2 23856024 SHA256 8d55bc3f607a89e15efd51b844d93daf67d9967ad243f54efae324754859342d SHA512 d7349af3ec2482f18d8407891eeea7beea75630cc85aeade9f4105e3b84e82fde6284338688bbf84824d43c68de102eb34f3c21068cbe8a3307aa0586732b30d WHIRLPOOL 4c512bdfed8676cb5cfb896eacb14c66e3497abebe97a4faeb6804feb8ba36ed9101bc79a6efa573470d4a4d7eb6dfc94e3315dac488554563d35a397a066acb diff --git a/app-accessibility/simon/files/simon-0.4.0-libdir.patch b/app-accessibility/simon/files/simon-0.4.0-libdir.patch new file mode 100644 index 000000000000..18e12fccfde3 --- /dev/null +++ b/app-accessibility/simon/files/simon-0.4.0-libdir.patch @@ -0,0 +1,16 @@ +From: Julian Ospald <hasufell@gentoo.org> +Date: Fri Mar 29 22:00:19 UTC 2013 +Subject: build system + +make libdir modifiable + +--- simon-0.4.0/cmake/SimonDirs.cmake ++++ simon-0.4.0/cmake/SimonDirs.cmake +@@ -29,6 +29,6 @@ + #IF(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64") + #set(SIMON_LIB_INSTALL_DIR lib64) + #ELSE(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64") +- set(SIMON_LIB_INSTALL_DIR lib) ++ set(SIMON_LIB_INSTALL_DIR lib CACHE STRING "libdir") + #ENDIF(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64") + ENDIF(WIN32) diff --git a/app-accessibility/simon/files/simon-0.4.0-linguas.patch b/app-accessibility/simon/files/simon-0.4.0-linguas.patch new file mode 100644 index 000000000000..bf60f16c834c --- /dev/null +++ b/app-accessibility/simon/files/simon-0.4.0-linguas.patch @@ -0,0 +1,84 @@ +--- simon-0.4.0/CMakeLists.txt ++++ simon-0.4.0/CMakeLists.txt +@@ -14,6 +14,9 @@ + + set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH}) + ++# NLS ++option(ENABLE_NLS "Enable native language support" 1) ++ + find_package(KDE4 "4.4" REQUIRED) + find_package(Qt4 COMPONENTS QtCore QtDbus QtGui QtTest QtXml QtScript QtConcurrent REQUIRED) + find_package(Qwt6 REQUIRED) +@@ -143,4 +146,6 @@ + macro_display_feature_log() + + include(MacroOptionalAddSubdirectory) +-macro_optional_add_subdirectory( po ) ++if(ENABLE_NLS) ++ macro_optional_add_subdirectory( po ) ++endif(ENABLE_NLS) +--- simon-0.4.0/po/CMakeLists.txt ++++ simon-0.4.0/po/CMakeLists.txt +@@ -11,24 +11,14 @@ + if (NOT GETTEXT_MSGFMT_EXECUTABLE) + MESSAGE(FATAL_ERROR "Please install msgmerge binary") + endif (NOT GETTEXT_MSGFMT_EXECUTABLE) +-add_subdirectory(cs) +-add_subdirectory(de) +-add_subdirectory(da) +-add_subdirectory(fr) +-add_subdirectory(nl) +-add_subdirectory(uk) +-add_subdirectory(pt_BR) +-add_subdirectory(pl) +-add_subdirectory(es) +-add_subdirectory(ro) +-add_subdirectory(ca) +-add_subdirectory(sl) +-add_subdirectory(pt) +-add_subdirectory(hu) +-add_subdirectory(gl) +-add_subdirectory(sv) +-add_subdirectory(el) +-add_subdirectory(fi) +-add_subdirectory(it) +-add_subdirectory(zh_TW) +-add_subdirectory(et) ++ ++# gettext behavior ++execute_process(COMMAND sh -c "echo -n \${LINGUAS+x}" ++ OUTPUT_VARIABLE UNSETLINGUAS) ++set(langs cs de da fr nl uk pt_BR pl es ro ca sl pt hu gl sv el fi it zh_TW et) ++ ++foreach(mylang ${langs}) ++ if($ENV{LINGUAS} MATCHES "^.*${mylang}.*$" OR "${UNSETLINGUAS}" STREQUAL "") ++ add_subdirectory(${mylang}) ++ endif() ++endforeach() +--- simon-0.4.0/doc/CMakeLists.txt ++++ simon-0.4.0/doc/CMakeLists.txt +@@ -1,9 +1,15 @@ ++if(ENABLE_NLS) ++ # gettext behavior ++ execute_process(COMMAND sh -c "echo -n \${LINGUAS+x}" ++ OUTPUT_VARIABLE UNSETLINGUAS) ++set(langs pt_BR ca nl de it pt sv uk) ++ ++ foreach(mylang ${langs}) ++ if($ENV{LINGUAS} MATCHES "^.*${mylang}.*$" OR "${UNSETLINGUAS}" STREQUAL "") ++ add_subdirectory(${mylang}) ++ endif() ++ endforeach() ++endif(ENABLE_NLS) ++ ++# default doc + add_subdirectory(en_US) +-add_subdirectory(pt_BR) +-add_subdirectory(ca) +-add_subdirectory(nl) +-add_subdirectory(de) +-add_subdirectory(it) +-add_subdirectory(pt) +-add_subdirectory(sv) +-add_subdirectory(uk) diff --git a/app-accessibility/simon/files/simon-0.4.0-opencv.patch b/app-accessibility/simon/files/simon-0.4.0-opencv.patch new file mode 100644 index 000000000000..bdd4581ceafd --- /dev/null +++ b/app-accessibility/simon/files/simon-0.4.0-opencv.patch @@ -0,0 +1,11 @@ +--- simon-0.4.0/CMakeLists.txt ++++ simon-0.4.0/CMakeLists.txt +@@ -68,7 +68,7 @@ + "PocketSphinx is a small-footprint continuous speech recognition system" + "http://cmusphinx.sourceforge.net/" FALSE "" + "Required to build Pocket Sphinx backend") +-find_package(OpenCV) ++macro_optional_find_package(OpenCV) + macro_log_feature(OpenCV_FOUND "OpenCV" + "OpenCV (Open Source Computer Vision) is a library of programming functions for real time computer vision" "http://http://opencv.willowgarage.com/" + FALSE "" "Required for Simon Vision") diff --git a/app-accessibility/simon/files/simon-0.4.0-sphinx.patch b/app-accessibility/simon/files/simon-0.4.0-sphinx.patch new file mode 100644 index 000000000000..0fe8aa25efa4 --- /dev/null +++ b/app-accessibility/simon/files/simon-0.4.0-sphinx.patch @@ -0,0 +1,16 @@ +--- simon-0.4.0/CMakeLists.txt ++++ simon-0.4.0/CMakeLists.txt +@@ -59,11 +59,11 @@ + macro_optional_find_package(QAccessibilityClient) + macro_log_feature(QAccessibilityClient_FOUND "qaccessibilityclient" "KDE client-side accessibility library" "https://projects.kde.org/projects/playground/accessibility/libkdeaccessibilityclient" FALSE "" "Required to enable ATSPI plugin.") + +-find_package(Sphinxbase) ++macro_optional_find_package(Sphinxbase) + macro_log_feature(SphinxBase_LIBRARIES "Sphinxbase" + "Open source toolkit for speech recognition" "http://cmusphinx.sourceforge.net/" + FALSE "" "Required to build Sphinx backend") +-find_package(Pocketsphinx) ++macro_optional_find_package(Pocketsphinx) + macro_log_feature(POCKETSPHINX_LIBRARIES "PocketSphinx" + "PocketSphinx is a small-footprint continuous speech recognition system" + "http://cmusphinx.sourceforge.net/" FALSE "" diff --git a/app-accessibility/simon/files/simon-0.4.1-libdir.patch b/app-accessibility/simon/files/simon-0.4.1-libdir.patch new file mode 100644 index 000000000000..b65e4fcb1438 --- /dev/null +++ b/app-accessibility/simon/files/simon-0.4.1-libdir.patch @@ -0,0 +1,16 @@ +From: Julian Ospald <hasufell@gentoo.org> +Date: Fri Mar 29 22:00:19 UTC 2013 +Subject: build system + +make libdir modifiable + +--- simon-0.4.1/cmake/SimonDirs.cmake ++++ simon-0.4.1/cmake/SimonDirs.cmake +@@ -29,6 +29,6 @@ + #IF(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64") + #set(SIMON_LIB_INSTALL_DIR lib64) + #ELSE(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64") +- set(SIMON_LIB_INSTALL_DIR lib) ++ set(SIMON_LIB_INSTALL_DIR lib CACHE STRING "libdir") + #ENDIF(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64") + ENDIF(WIN32) diff --git a/app-accessibility/simon/files/simon-0.4.1-linguas.patch b/app-accessibility/simon/files/simon-0.4.1-linguas.patch new file mode 100644 index 000000000000..01f25d6550c0 --- /dev/null +++ b/app-accessibility/simon/files/simon-0.4.1-linguas.patch @@ -0,0 +1,87 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -14,6 +14,9 @@ + + set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH}) + ++# NLS ++option(ENABLE_NLS "Enable native language support" 1) ++ + find_package(KDE4 "4.4" REQUIRED) + find_package(Qt4 COMPONENTS QtCore QtDbus QtGui QtTest QtXml QtScript QtConcurrent REQUIRED) + find_package(Qwt6 REQUIRED) +@@ -143,4 +146,6 @@ + macro_display_feature_log() + + include(MacroOptionalAddSubdirectory) +-macro_optional_add_subdirectory( po ) ++if(ENABLE_NLS) ++ macro_optional_add_subdirectory( po ) ++endif(ENABLE_NLS) +--- a/doc/CMakeLists.txt ++++ b/doc/CMakeLists.txt +@@ -1,11 +1,15 @@ ++if(ENABLE_NLS) ++ # gettext behavior ++ execute_process(COMMAND sh -c "echo -n \${LINGUAS+x}" ++ OUTPUT_VARIABLE UNSETLINGUAS) ++set(langs pt_BR ca nl et de it pt es sv uk) ++ ++ foreach(mylang ${langs}) ++ if($ENV{LINGUAS} MATCHES "^.*${mylang}.*$" OR "${UNSETLINGUAS}" STREQUAL "") ++ add_subdirectory(${mylang}) ++ endif() ++ endforeach() ++endif(ENABLE_NLS) ++ ++# default doc + add_subdirectory(en_US) +-add_subdirectory(pt_BR) +-add_subdirectory(ca) +-add_subdirectory(nl) +-add_subdirectory(et) +-add_subdirectory(de) +-add_subdirectory(it) +-add_subdirectory(pt) +-add_subdirectory(es) +-add_subdirectory(sv) +-add_subdirectory(uk) +--- a/po/CMakeLists.txt ++++ b/po/CMakeLists.txt +@@ -11,25 +11,14 @@ endif (NOT GETTEXT_MSGMERGE_EXECUTABLE) + if (NOT GETTEXT_MSGFMT_EXECUTABLE) + MESSAGE(FATAL_ERROR "Please install msgmerge binary") + endif (NOT GETTEXT_MSGFMT_EXECUTABLE) +-add_subdirectory(de) +-add_subdirectory(da) +-add_subdirectory(fr) +-add_subdirectory(nl) +-add_subdirectory(uk) +-add_subdirectory(pt_BR) +-add_subdirectory(pl) +-add_subdirectory(es) +-add_subdirectory(cs) +-add_subdirectory(ro) +-add_subdirectory(ca) +-add_subdirectory(sk) +-add_subdirectory(sl) +-add_subdirectory(pt) +-add_subdirectory(gl) +-add_subdirectory(ca@valencia) +-add_subdirectory(sv) +-add_subdirectory(el) +-add_subdirectory(fi) +-add_subdirectory(it) +-add_subdirectory(zh_TW) +-add_subdirectory(et) ++ ++# gettext behavior ++execute_process(COMMAND sh -c "echo -n \${LINGUAS+x}" ++ OUTPUT_VARIABLE UNSETLINGUAS) ++set(langs ca@valencia cs de da fr nl uk pt_BR pl es ro ca sl pt gl sk sv el fi it zh_TW et) ++ ++foreach(mylang ${langs}) ++ if($ENV{LINGUAS} MATCHES "^.*${mylang}.*$" OR "${UNSETLINGUAS}" STREQUAL "") ++ add_subdirectory(${mylang}) ++ endif() ++endforeach() diff --git a/app-accessibility/simon/files/simon-0.4.1-sphinx.patch b/app-accessibility/simon/files/simon-0.4.1-sphinx.patch new file mode 100644 index 000000000000..498475c81d05 --- /dev/null +++ b/app-accessibility/simon/files/simon-0.4.1-sphinx.patch @@ -0,0 +1,16 @@ +--- simon-0.4.1/CMakeLists.txt ++++ simon-0.4.1/CMakeLists.txt +@@ -59,11 +59,11 @@ + macro_optional_find_package(QAccessibilityClient) + macro_log_feature(QAccessibilityClient_FOUND "qaccessibilityclient" "KDE client-side accessibility library" "https://projects.kde.org/projects/playground/accessibility/libkdeaccessibilityclient" FALSE "" "Required to enable ATSPI plugin.") + +-find_package(Sphinxbase) ++macro_optional_find_package(Sphinxbase) + macro_log_feature(SphinxBase_LIBRARIES "Sphinxbase" + "Open source toolkit for speech recognition" "http://cmusphinx.sourceforge.net/" + FALSE "" "Required to build Sphinx backend") +-find_package(Pocketsphinx) ++macro_optional_find_package(Pocketsphinx) + macro_log_feature(POCKETSPHINX_LIBRARIES "PocketSphinx" + "PocketSphinx is a small-footprint continuous speech recognition system" + "http://cmusphinx.sourceforge.net/" FALSE "" diff --git a/app-accessibility/simon/metadata.xml b/app-accessibility/simon/metadata.xml new file mode 100644 index 000000000000..29122bebc7e6 --- /dev/null +++ b/app-accessibility/simon/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>accessibility</herd> + <use> + <flag name='kdepim'>Use <pkg>kde-base/kdepimlibs</pkg></flag> + <flag name='opencv'>Use <pkg>media-libs/opencv</pkg></flag> + <flag name='sphinx'>Build sphinx backend (pulls <pkg>app-accessibility/julius</pkg> if disabled</flag> + </use> +</pkgmetadata> + diff --git a/app-accessibility/simon/simon-0.4.0.ebuild b/app-accessibility/simon/simon-0.4.0.ebuild new file mode 100644 index 000000000000..3a9ecade1b41 --- /dev/null +++ b/app-accessibility/simon/simon-0.4.0.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# KEEP KDE ECLASSES OUT OF HERE + +# TODO: qaccessibilityclient support (not in portage) +# https://projects.kde.org/projects/playground/accessibility/libkdeaccessibilityclient/repository +# TODO: julius + +EAPI=5 + +inherit eutils multilib gnome2-utils cmake-utils + +DESCRIPTION="Open-source speech recognition program for replacing mouse and keyboard" +HOMEPAGE="http://simon-listens.org/" +SRC_URI="mirror://kde/stable/simon/${PV}/src/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="kdepim libsamplerate nls opencv sphinx" + +RDEPEND=" + dev-qt/qtcore:4 + dev-qt/qtdbus:4 + dev-qt/qtgui:4 + dev-qt/qtscript:4 + dev-qt/qtsql:4 + kde-base/kdelibs:4 + media-libs/alsa-lib + x11-libs/libX11 + x11-libs/libXtst + x11-libs/qwt:6 + kdepim? ( kde-base/kdepimlibs:4 ) + libsamplerate? ( media-libs/libsamplerate ) + nls? ( + kde-apps/kde4-l10n + virtual/libintl + ) + 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 + nls? ( sys-devel/gettext )" + +src_prepare() { + epatch "${FILESDIR}"/${P}-libdir.patch \ + "${FILESDIR}"/${P}-linguas.patch \ + "${FILESDIR}"/${P}-opencv.patch \ + "${FILESDIR}"/${P}-sphinx.patch +} + +src_configure() { + local mycmakeargs=( + -DSIMON_LIB_INSTALL_DIR=/usr/$(get_libdir) + -DBackendType=$(usex sphinx "both" "jhtk") + $(cmake-utils_use_with sphinx Sphinxbase) + $(cmake-utils_use_with sphinx Pocketsphinx) + $(cmake-utils_use_with kdepim KdepimLibs) + $(cmake-utils_use_with libsamplerate LibSampleRate) + $(cmake-utils_use_with opencv OpenCV) + $(cmake-utils_use_enable nls NLS) + ) + + cmake-utils_src_configure +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update + + elog "optional dependencies:" + elog " kde-apps/jovie (support for Jovie TTS system)" + use sphinx && elog " app-accessibility/julius (alternative backend)" +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/app-accessibility/simon/simon-0.4.1.ebuild b/app-accessibility/simon/simon-0.4.1.ebuild new file mode 100644 index 000000000000..b2b9c344428d --- /dev/null +++ b/app-accessibility/simon/simon-0.4.1.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# KEEP KDE ECLASSES OUT OF HERE + +# TODO: qaccessibilityclient support (not in portage) +# https://projects.kde.org/projects/playground/accessibility/libkdeaccessibilityclient/repository +# TODO: julius + +EAPI=5 + +inherit eutils multilib gnome2-utils cmake-utils + +DESCRIPTION="Open-source speech recognition program for replacing mouse and keyboard" +HOMEPAGE="http://simon-listens.org/" +SRC_URI="mirror://kde/stable/simon/${PV}/src/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="kdepim libsamplerate nls opencv sphinx" + +RDEPEND=" + dev-qt/qtcore:4 + dev-qt/qtdbus:4 + dev-qt/qtgui:4 + dev-qt/qtscript:4 + dev-qt/qtsql:4 + kde-base/kdelibs:4 + media-libs/alsa-lib + x11-libs/libX11 + x11-libs/libXtst + x11-libs/qwt:6 + kdepim? ( kde-base/kdepimlibs:4 ) + libsamplerate? ( media-libs/libsamplerate ) + nls? ( + kde-apps/kde4-l10n + virtual/libintl + ) + 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 + nls? ( sys-devel/gettext )" + +src_prepare() { + epatch "${FILESDIR}"/${P}-libdir.patch \ + "${FILESDIR}"/${P}-linguas.patch \ + "${FILESDIR}"/${P}-sphinx.patch +} + +src_configure() { + local mycmakeargs=( + -DSIMON_LIB_INSTALL_DIR=/usr/$(get_libdir) + -DBackendType=$(usex sphinx "both" "jhtk") + $(cmake-utils_use_with sphinx Sphinxbase) + $(cmake-utils_use_with sphinx Pocketsphinx) + $(cmake-utils_use_with kdepim KdepimLibs) + $(cmake-utils_use_with libsamplerate LibSampleRate) + $(cmake-utils_use_with opencv OpenCV) + $(cmake-utils_use_enable nls NLS) + ) + + cmake-utils_src_configure +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update + + elog "optional dependencies:" + elog " kde-apps/jovie (support for Jovie TTS system)" + use sphinx && elog " app-accessibility/julius (alternative backend)" +} + +pkg_postrm() { + gnome2_icon_cache_update +} |