diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-accessibility/simon |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-accessibility/simon')
-rw-r--r-- | app-accessibility/simon/Manifest | 12 | ||||
-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-no-qtwebkit.patch | 24 | ||||
-rw-r--r-- | app-accessibility/simon/files/simon-0.4.1-opencv-include.patch | 20 | ||||
-rw-r--r-- | app-accessibility/simon/files/simon-0.4.1-sphinx.patch | 16 | ||||
-rw-r--r-- | app-accessibility/simon/metadata.xml | 12 | ||||
-rw-r--r-- | app-accessibility/simon/simon-0.4.1.ebuild | 89 | ||||
-rw-r--r-- | app-accessibility/simon/simon-0.4.90.ebuild | 63 |
9 files changed, 339 insertions, 0 deletions
diff --git a/app-accessibility/simon/Manifest b/app-accessibility/simon/Manifest new file mode 100644 index 000000000000..fb3f4d3615c1 --- /dev/null +++ b/app-accessibility/simon/Manifest @@ -0,0 +1,12 @@ +AUX simon-0.4.1-libdir.patch 504 SHA256 da728c7f99a937657e3defcd2f125e3b152180c7e35ff6528dd63dd51ba47a3d SHA512 b43dc15ab893f048d6d18e7513abc1da054c1cc872c09a3f5e9916c481f63b8940a72c8454447391aafe93b4f665a54403430669de8c6351223518012e57efb1 WHIRLPOOL 5f8576e095453dc101bddf5f6e8f664464a2e71d5708ea31ca9fcec20bdd5ecff93ca81f17d575fa1e5ca7c359cb0164aa5272764a1b70c5a5a74124e824a519 +AUX simon-0.4.1-linguas.patch 2359 SHA256 fb579c507af1d34ea4d429f0b77b9fa880ac9cae5cbbe006a8c8140e532ef92f SHA512 b58939987238655e03f292fb15222ef87e1078c6375a2a8b45caabe83f92daa9d6c02658825a80f105c355ade316dd69b56cc5dd3320f37c6c4c5f4735e071f8 WHIRLPOOL 7fa6eff0a13dbc9f7274ba8ce7644cdccdc4fe40b611c846e910d55d528e70b8295aa30e0fb3af8b6670012941ec91feba66f69de38a97a7f93693b9cd7f40bf +AUX simon-0.4.1-no-qtwebkit.patch 639 SHA256 891927d6d82325b94821ba65e4c5d05044524aa3bf5d6f0fb35fcb39e9f16590 SHA512 36140e80ab15d11d74df0518fd76aa147278e6f34bfe35c6ebd45650640aa2dd6dd18800aafa3fdf7a8d64d35f18e12791b0b2f94edb572abf0b74952ebd0003 WHIRLPOOL 555de1d3a160641e0616e512b46eec11b5e14310a018b9780324effeeea33bb180256146f5b9970d8a493a175493a6b9cce19dd696364eb015551afc844877f4 +AUX simon-0.4.1-opencv-include.patch 729 SHA256 69cc66f5ca2ad9157f6182ba4230b0b6d59890394e64d318b3157e73bc421fa2 SHA512 f84629d51a241589c9977dd2ab412dd155435a27cb5544848b6fe73d2a292bf3aef2b07ede226e5a89d616a50f50fa6d505a281118ea7f6f333e3479c423ed0a WHIRLPOOL 15a949f7cdbb3374235ab4908aa3ade16848fa0caff935bd22fe9437920ade18560e3de8f3056b633906be5c8aaaa4726c34dc5f484fa82358e867c1d12b0594 +AUX simon-0.4.1-sphinx.patch 881 SHA256 10afe6ebfa671d689e1eea9721d885c6092888c13390ca237d681eb960559df3 SHA512 93b0ff4ee18a51b868a89a4baa93a0b4f19ade6e0b3b7ed876f128eb3de480e8df8625abfb31d586cb0159092cac4e3e911cfcef47c5242c138019ddfb87f6d8 WHIRLPOOL a6c1663a946d27c904ac0456c3427039c3526447ddd69670bde5bffb45feb200b19d37ad51d444a7f188490f30299df279cacbdea0038d80b184fd479502052d +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 +EBUILD simon-0.4.1.ebuild 2129 SHA256 a4b560371f36976e5916ba12d13eaaa77bc302728a4359c553b656200d692ee6 SHA512 1321c489ebf1622e53cb27139994373cb9183fd8a39fdb6bd6548f528482651e77c0533460d4a139079ccdc27a5b3eb81f02f05f94c7c00a83eba460e60cc27a WHIRLPOOL a0c08d74537493008bb754ce35549cee37995d5fc7aec1bb6de740667ac2bea16dd04cb5850a60dce5b96859cf7efe0213d208ee7ce5771b6d7ddd5d3b63dea9 +EBUILD simon-0.4.90.ebuild 1610 SHA256 d86b9d916933578757d9eb9aa1ed4cbb1bf41b8d7fe13d9a4048875d133e8615 SHA512 1a47f2398d29b992e6900d8260f577389fac96f94461e0b4b06726f65ca4fc08061e26d6931acebed2ef9c7bf94e3cbcb9c8b3d5b7354567d5b2c9d0fa8425af WHIRLPOOL 3ea2a8338cf38111986a42b8217ecc9966eba46a85bba2d15e5766309d3c4abcbf4a87f357895e349eb6e5090931edc604501a51234b63fb42be7904c4c56453 +MISC ChangeLog 3884 SHA256 6475fca89f717ceeb8f91444b7acbb53ea8ad8c5355e5665d64ce3eae3a564b2 SHA512 baa166764a18557217ef43a672ab94d0304ee4e610a78367f1f98bef5cbeb1f4b41af2f680a71b1d1a7d7786bbb3823e169bc8771c8fc921a724dc3c8d2cc043 WHIRLPOOL 239a781e70b4f0fca6c4efa238dc44898018256068d6032b21f30ad416c4b1076f863da0240bb141d6e08aa5c3d497f10a2563a191efa87ba5238d81534795b3 +MISC ChangeLog-2015 1665 SHA256 190fb29a5103cf15b43d90f21a5614ff5058703f4e8dcba6ed600d43b9326597 SHA512 9c5fd52a816da3b906c29526bc3a3fa9b728661ee6c77f2e03677b384afc6e371aeb14fb85d768b8c4176d9e5188e2b29f618fabf43b8afa47d8c5bca2c513fd WHIRLPOOL 77b3a4ddebb29e739c219610510074b2f9f793c94052efab156a096e48f9f416bf7e5a68d5707597bff0ba88b6f5261ceb1b240ab787688c720bc93548278a59 +MISC metadata.xml 451 SHA256 275a4865dce1f31446a44f3e86757f90a9706f0f013344f5a08de8d70f596136 SHA512 eb8227475d109a54c445968c6e7ad98da678e7647547b42d04e369ad9dfe3fa8029398fe903ceff8bcb6ef61bb35298584363fb7d40fa2f7fed763d0e97f7b89 WHIRLPOOL 295a4ccfa4fab7b7276fc31b6c27c15920c8d0113cb98935dae6772c7ff30f8218abe16352c8d78f9086c36788ea21163de4ef8ca3b5b73f274b34494d280a1a 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..fae811bef6b0 --- /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 + +--- a/cmake/SimonDirs.cmake ++++ b/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-no-qtwebkit.patch b/app-accessibility/simon/files/simon-0.4.1-no-qtwebkit.patch new file mode 100644 index 000000000000..53a157be38e1 --- /dev/null +++ b/app-accessibility/simon/files/simon-0.4.1-no-qtwebkit.patch @@ -0,0 +1,24 @@ +From 81bd3d089a19f1e23383e2da7376740152540f7f Mon Sep 17 00:00:00 2001 +From: Rex Dieter <rdieter@math.unl.edu> +Date: Mon, 6 Jul 2015 09:59:56 -0500 +Subject: omit unused reference to QWebView header + +no cmake checks for QtWebKit either +--- + simon/src/simonview.cpp | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/simon/src/simonview.cpp b/simon/src/simonview.cpp +index 69673bc..7a1873d 100644 +--- a/simon/src/simonview.cpp ++++ b/simon/src/simonview.cpp +@@ -60,7 +60,6 @@ + #include <KDE/KComboBox> + #include <QDesktopServices> + #include <QTimeLine> +-#include <QWebView> + + #include <KMessageBox> + #include <KApplication> +-- +cgit v0.11.2 diff --git a/app-accessibility/simon/files/simon-0.4.1-opencv-include.patch b/app-accessibility/simon/files/simon-0.4.1-opencv-include.patch new file mode 100644 index 000000000000..b6a7d33c409f --- /dev/null +++ b/app-accessibility/simon/files/simon-0.4.1-opencv-include.patch @@ -0,0 +1,20 @@ +From: Peter Grasch <me@bedahr.org> +Date: Sat, 25 Jul 2015 08:45:03 +0000 +Subject: Adding OpenCV include directories to include path +X-Git-Url: http://quickgit.kde.org/?p=simon.git&a=commitdiff&h=b4e663e5cc36511b15ef20865c723182cd3d88c9 +--- +Adding OpenCV include directories to include path +--- + + +--- a/cmake/FindOpenCV.cmake ++++ b/cmake/FindOpenCV.cmake +@@ -61,6 +61,7 @@ + + ## Include the standard CMake script + include("${OpenCV_DIR}/OpenCVConfig.cmake") ++ include_directories(${OpenCV_INCLUDE_DIRS}) + + ## Search for a specific version + set(CVLIB_SUFFIX "${OpenCV_VERSION_MAJOR}${OpenCV_VERSION_MINOR}${OpenCV_VERSION_PATCH}") + 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..6a60622dd262 --- /dev/null +++ b/app-accessibility/simon/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>accessibility@gentoo.org</email> + <name>Gentoo Accessibility Project</name> + </maintainer> + <use> + <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.1.ebuild b/app-accessibility/simon/simon-0.4.1.ebuild new file mode 100644 index 000000000000..1fb96a7bf86a --- /dev/null +++ b/app-accessibility/simon/simon-0.4.1.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# 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="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-frameworks/kdelibs:4[plasma(+)] + media-libs/alsa-lib + x11-libs/libX11 + x11-libs/libXtst + x11-libs/qwt:6[qt4(+)] + 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 )" + +PATCHES=( + "${FILESDIR}"/${P}-libdir.patch + "${FILESDIR}"/${P}-linguas.patch + "${FILESDIR}"/${P}-sphinx.patch + "${FILESDIR}"/${P}-opencv-include.patch + "${FILESDIR}"/${P}-no-qtwebkit.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) + -DWITH_KdepimLibs=OFF + $(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.90.ebuild b/app-accessibility/simon/simon-0.4.90.ebuild new file mode 100644 index 000000000000..c5c349f0a267 --- /dev/null +++ b/app-accessibility/simon/simon-0.4.90.ebuild @@ -0,0 +1,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)" +} |