diff options
author | Julian Ospald <hasufell@gentoo.org> | 2013-03-31 18:28:32 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2013-03-31 18:28:32 +0000 |
commit | 5619fa83e2a09ba0d0db4cad6f32bcb420aa9f81 (patch) | |
tree | f00e840f517c7bbfa5ae0e6e731fadafe21b5b0f /app-accessibility | |
parent | Drop mask from rygel and cie, it is fine without Gnome 3.8. (diff) | |
download | gentoo-2-5619fa83e2a09ba0d0db4cad6f32bcb420aa9f81.tar.gz gentoo-2-5619fa83e2a09ba0d0db4cad6f32bcb420aa9f81.tar.bz2 gentoo-2-5619fa83e2a09ba0d0db4cad6f32bcb420aa9f81.zip |
initial import wrt #244945
(Portage version: 2.2.0_alpha170/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
Diffstat (limited to 'app-accessibility')
-rw-r--r-- | app-accessibility/simon/ChangeLog | 11 | ||||
-rw-r--r-- | app-accessibility/simon/Manifest | 7 | ||||
-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/metadata.xml | 14 | ||||
-rw-r--r-- | app-accessibility/simon/simon-0.4.0.ebuild | 87 |
7 files changed, 230 insertions, 0 deletions
diff --git a/app-accessibility/simon/ChangeLog b/app-accessibility/simon/ChangeLog new file mode 100644 index 000000000000..e9e3a34cf82e --- /dev/null +++ b/app-accessibility/simon/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for app-accessibility/simon +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-accessibility/simon/ChangeLog,v 1.1 2013/03/31 18:28:32 hasufell Exp $ + +*simon-0.4.0 (31 Mar 2013) + + 31 Mar 2013; Julian Ospald <hasufell@gentoo.org> +simon-0.4.0.ebuild, + +files/simon-0.4.0-libdir.patch, +files/simon-0.4.0-linguas.patch, + +files/simon-0.4.0-opencv.patch, +metadata.xml: + initial import wrt #244945 + diff --git a/app-accessibility/simon/Manifest b/app-accessibility/simon/Manifest new file mode 100644 index 000000000000..77dbe5ef790b --- /dev/null +++ b/app-accessibility/simon/Manifest @@ -0,0 +1,7 @@ +AUX simon-0.4.0-libdir.patch 524 SHA256 4d0ad4f0d0c9c12bf91b231f91d942628fe78647df2333f1d353da5c64fec619 SHA512 9c2198362aea92e322ba607b0d5a2f05894e2fd3e6d2cce9e04a3d8b949163d71fbf0d8d98697fb036b2afb2fd05d2e8c2812aa58f6ce16c3ae8128cd673791a WHIRLPOOL ab7db5d381fbfa23efd4883727c8f171fd4d552888bb1250f16c2fad2b9c7349969230191b4d8cb39926adf5a012b0d3fe2d3b5f38e068ea50fa6dd69665fe60 +AUX simon-0.4.0-linguas.patch 2285 SHA256 d4a7f040e15c9f7992c9342081703ee40eec8cc20e0a4a8774a405093c318fe5 SHA512 cb34eb756774721db564de83793b8d66a7dcd6fa6c92341f01b2e251faaa6b56f1ed25ddeeaefabfee4d787aca47f014600e6b8978430c1ba1f25bce0e0049a4 WHIRLPOOL 9a6923dbf3e0e98a457e7861214db9883d69fbf10810baf2c94edd5f8ede5f09b40741791521c231ec2af89683a3de8daf89b989b017ac581003ee9845c493ed +AUX simon-0.4.0-opencv.patch 543 SHA256 c0140d88c16347614aa9fe0417de78852805ee56ea5880c873a3a2737940c448 SHA512 95454169081099148ae2c1f9a5b57d06ab5fad8cb89a8a7e5dbfed2e0d2c4e10c6be178ab1ac7546dd04f1b9a0d20739ebd5b353378d3765cb35aac14029245e WHIRLPOOL 203db5bda8957bebfd45acb815360d2576accb8092e2668377df07acbea449c0cf8f640c2566451bd7e295dda85e23a95a5ecce236ac6c1cdfbc945c5600fd22 +DIST simon-0.4.0.tar.bz2 22139378 SHA256 c7ef35cd28ecf294ceae63f4b0c53384bcf89fc2a6e67916dc9d4116decabc12 SHA512 541c22e09bb4234871707cd73e038a5ab0c68a6cb2a28993571c434edff639e4826554f922a4a188b5c2a70ff9a0d627f53af0954431b561adeedccf9c170c85 WHIRLPOOL c2e0cc8632bf089ed14ef53cae02c51166780692222b7f3c7a3583356e9669cbbcd3222507128b35f282b49de2f10a73c42f63e28596c6e8412ff766bb3febfb +EBUILD simon-0.4.0.ebuild 1970 SHA256 3201fa9017261c2960c1c35acbc01debef565ead47827ceca90b6f9a383e1daf SHA512 f62fde16e4aa5c29b9cd8cef1599b6a0d83d33323f7433021ce645ae9ef5759acc93d69e51c16d0c09ac3cbb57b6c46614c843b7b8337976cdcb1da73ceb2623 WHIRLPOOL 79ab32a3eac09018b32eb9f3ab229b6ec7b08b1b9e7af63a6d35d4840f1f9f03815850e32d3eb60605a25dce3ac94b83d288faa830c150d8324a9ec19f5d7ad7 +MISC ChangeLog 373 SHA256 7a894f485165c58f2e0e4aca284627dd20a4765176d7c1607947854996bd82b3 SHA512 ddea7ed89633437c35d517a21235bf43c662e5bbbfe2a052f4d6183421591e3524fc073ca21fb533bdd620de1bf2cebef9b58c419b00ee33c7402ef9b6d7081d WHIRLPOOL 81e2d957fcad992a03b0ff26e383024c64f989f97cb96ad06f33b266697d1ca1a46821a7789ed47e60ea6a80c41a04a10880d1cf4f33b19770f2cc0b130038c6 +MISC metadata.xml 404 SHA256 09cc5be53a4be1fac2ae1371db8513208d7537c159fc39436ac791483a16c5a9 SHA512 4d0964d1799aa2494105c554a464ace87f1995360fd596621c1aec31c307670c433739c06414a5d5ed21d89448314b939df425af3a1b7a521381627eb1b63057 WHIRLPOOL fd330d20ea4612e0301a93d7fa685cebdf48dcc5a1f22167ec6161767532814278480165ffa52cc2397b09ea44df0a67058f4dc6fe9fdf5c6bfb0a09bfed7b72 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/metadata.xml b/app-accessibility/simon/metadata.xml new file mode 100644 index 000000000000..19c1e2d761ea --- /dev/null +++ b/app-accessibility/simon/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>accessibility</herd> + <maintainer> + <email>hasufell@gentoo.org</email> + <name>Julian Ospald</name> + </maintainer> + <use> + <flag name='kdepim'>Use <pkg>kde-base/kdepimlibs</pkg></flag> + <flag name='opencv'>Use <pkg>media-libs/opencv</pkg></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..0101bcc47edd --- /dev/null +++ b/app-accessibility/simon/simon-0.4.0.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-accessibility/simon/simon-0.4.0.ebuild,v 1.1 2013/03/31 18:28:32 hasufell Exp $ + +# 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" + +RDEPEND=" + >=app-accessibility/pocketsphinx-0.8 + >=app-accessibility/sphinxbase-0.8 + >=app-accessibility/SphinxTrain-1 + 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/akonadi:4 + kde-base/kdepimlibs:4 + ) + libsamplerate? ( media-libs/libsamplerate ) + nls? ( + kde-base/kde-l10n + virtual/libintl + ) + opencv? ( media-libs/opencv )" +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 +} + +src_configure() { + local mycmakeargs=( + -DSIMON_LIB_INSTALL_DIR=/usr/$(get_libdir) + -DBackendType=both + $(cmake-utils_use_enable nls NLS) + $(cmake-utils_use_with kdepim KdepimLibs) + $(cmake-utils_use_with libsamplerate LibSampleRate) + $(cmake-utils_use_with opencv OpenCV) + ) + + cmake-utils_src_configure +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update + + elog "optional dependencies:" + elog " kde-base/jovie (support for Jovie TTS system)" + elog " media-libs/portaudio (support for microphone input with Julius)" +} + +pkg_postrm() { + gnome2_icon_cache_update +} |