1 |
hasufell 13/03/31 18:28:32 |
2 |
|
3 |
Added: simon-0.4.0-opencv.patch simon-0.4.0-linguas.patch |
4 |
simon-0.4.0-libdir.patch |
5 |
Log: |
6 |
initial import wrt #244945 |
7 |
|
8 |
(Portage version: 2.2.0_alpha170/cvs/Linux x86_64, signed Manifest commit with key E73C35B3) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 app-accessibility/simon/files/simon-0.4.0-opencv.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-accessibility/simon/files/simon-0.4.0-opencv.patch?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-accessibility/simon/files/simon-0.4.0-opencv.patch?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: simon-0.4.0-opencv.patch |
17 |
=================================================================== |
18 |
--- simon-0.4.0/CMakeLists.txt |
19 |
+++ simon-0.4.0/CMakeLists.txt |
20 |
@@ -68,7 +68,7 @@ |
21 |
"PocketSphinx is a small-footprint continuous speech recognition system" |
22 |
"http://cmusphinx.sourceforge.net/" FALSE "" |
23 |
"Required to build Pocket Sphinx backend") |
24 |
-find_package(OpenCV) |
25 |
+macro_optional_find_package(OpenCV) |
26 |
macro_log_feature(OpenCV_FOUND "OpenCV" |
27 |
"OpenCV (Open Source Computer Vision) is a library of programming functions for real time computer vision" "http://http://opencv.willowgarage.com/" |
28 |
FALSE "" "Required for Simon Vision") |
29 |
|
30 |
|
31 |
|
32 |
1.1 app-accessibility/simon/files/simon-0.4.0-linguas.patch |
33 |
|
34 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-accessibility/simon/files/simon-0.4.0-linguas.patch?rev=1.1&view=markup |
35 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-accessibility/simon/files/simon-0.4.0-linguas.patch?rev=1.1&content-type=text/plain |
36 |
|
37 |
Index: simon-0.4.0-linguas.patch |
38 |
=================================================================== |
39 |
--- simon-0.4.0/CMakeLists.txt |
40 |
+++ simon-0.4.0/CMakeLists.txt |
41 |
@@ -14,6 +14,9 @@ |
42 |
|
43 |
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH}) |
44 |
|
45 |
+# NLS |
46 |
+option(ENABLE_NLS "Enable native language support" 1) |
47 |
+ |
48 |
find_package(KDE4 "4.4" REQUIRED) |
49 |
find_package(Qt4 COMPONENTS QtCore QtDbus QtGui QtTest QtXml QtScript QtConcurrent REQUIRED) |
50 |
find_package(Qwt6 REQUIRED) |
51 |
@@ -143,4 +146,6 @@ |
52 |
macro_display_feature_log() |
53 |
|
54 |
include(MacroOptionalAddSubdirectory) |
55 |
-macro_optional_add_subdirectory( po ) |
56 |
+if(ENABLE_NLS) |
57 |
+ macro_optional_add_subdirectory( po ) |
58 |
+endif(ENABLE_NLS) |
59 |
--- simon-0.4.0/po/CMakeLists.txt |
60 |
+++ simon-0.4.0/po/CMakeLists.txt |
61 |
@@ -11,24 +11,14 @@ |
62 |
if (NOT GETTEXT_MSGFMT_EXECUTABLE) |
63 |
MESSAGE(FATAL_ERROR "Please install msgmerge binary") |
64 |
endif (NOT GETTEXT_MSGFMT_EXECUTABLE) |
65 |
-add_subdirectory(cs) |
66 |
-add_subdirectory(de) |
67 |
-add_subdirectory(da) |
68 |
-add_subdirectory(fr) |
69 |
-add_subdirectory(nl) |
70 |
-add_subdirectory(uk) |
71 |
-add_subdirectory(pt_BR) |
72 |
-add_subdirectory(pl) |
73 |
-add_subdirectory(es) |
74 |
-add_subdirectory(ro) |
75 |
-add_subdirectory(ca) |
76 |
-add_subdirectory(sl) |
77 |
-add_subdirectory(pt) |
78 |
-add_subdirectory(hu) |
79 |
-add_subdirectory(gl) |
80 |
-add_subdirectory(sv) |
81 |
-add_subdirectory(el) |
82 |
-add_subdirectory(fi) |
83 |
-add_subdirectory(it) |
84 |
-add_subdirectory(zh_TW) |
85 |
-add_subdirectory(et) |
86 |
+ |
87 |
+# gettext behavior |
88 |
+execute_process(COMMAND sh -c "echo -n \${LINGUAS+x}" |
89 |
+ OUTPUT_VARIABLE UNSETLINGUAS) |
90 |
+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) |
91 |
+ |
92 |
+foreach(mylang ${langs}) |
93 |
+ if($ENV{LINGUAS} MATCHES "^.*${mylang}.*$" OR "${UNSETLINGUAS}" STREQUAL "") |
94 |
+ add_subdirectory(${mylang}) |
95 |
+ endif() |
96 |
+endforeach() |
97 |
--- simon-0.4.0/doc/CMakeLists.txt |
98 |
+++ simon-0.4.0/doc/CMakeLists.txt |
99 |
@@ -1,9 +1,15 @@ |
100 |
+if(ENABLE_NLS) |
101 |
+ # gettext behavior |
102 |
+ execute_process(COMMAND sh -c "echo -n \${LINGUAS+x}" |
103 |
+ OUTPUT_VARIABLE UNSETLINGUAS) |
104 |
+set(langs pt_BR ca nl de it pt sv uk) |
105 |
+ |
106 |
+ foreach(mylang ${langs}) |
107 |
+ if($ENV{LINGUAS} MATCHES "^.*${mylang}.*$" OR "${UNSETLINGUAS}" STREQUAL "") |
108 |
+ add_subdirectory(${mylang}) |
109 |
+ endif() |
110 |
+ endforeach() |
111 |
+endif(ENABLE_NLS) |
112 |
+ |
113 |
+# default doc |
114 |
add_subdirectory(en_US) |
115 |
-add_subdirectory(pt_BR) |
116 |
-add_subdirectory(ca) |
117 |
-add_subdirectory(nl) |
118 |
-add_subdirectory(de) |
119 |
-add_subdirectory(it) |
120 |
-add_subdirectory(pt) |
121 |
-add_subdirectory(sv) |
122 |
-add_subdirectory(uk) |
123 |
|
124 |
|
125 |
|
126 |
1.1 app-accessibility/simon/files/simon-0.4.0-libdir.patch |
127 |
|
128 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-accessibility/simon/files/simon-0.4.0-libdir.patch?rev=1.1&view=markup |
129 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-accessibility/simon/files/simon-0.4.0-libdir.patch?rev=1.1&content-type=text/plain |
130 |
|
131 |
Index: simon-0.4.0-libdir.patch |
132 |
=================================================================== |
133 |
From: Julian Ospald <hasufell@g.o> |
134 |
Date: Fri Mar 29 22:00:19 UTC 2013 |
135 |
Subject: build system |
136 |
|
137 |
make libdir modifiable |
138 |
|
139 |
--- simon-0.4.0/cmake/SimonDirs.cmake |
140 |
+++ simon-0.4.0/cmake/SimonDirs.cmake |
141 |
@@ -29,6 +29,6 @@ |
142 |
#IF(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64") |
143 |
#set(SIMON_LIB_INSTALL_DIR lib64) |
144 |
#ELSE(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64") |
145 |
- set(SIMON_LIB_INSTALL_DIR lib) |
146 |
+ set(SIMON_LIB_INSTALL_DIR lib CACHE STRING "libdir") |
147 |
#ENDIF(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64") |
148 |
ENDIF(WIN32) |