Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/krita/, media-gfx/krita/files/
Date: Wed, 29 Aug 2018 16:48:10
Message-Id: 1535561268.bac6717f669476b6de842bb51a3cfa65c4e944c0.asturm@gentoo
1 commit: bac6717f669476b6de842bb51a3cfa65c4e944c0
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 29 16:26:41 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 29 16:47:48 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bac6717f
7
8 media-gfx/krita: Use patch, not KDE_TEST=forceoptional-recursive
9
10 Package-Manager: Portage-2.3.48, Repoman-2.3.10
11
12 .../krita/files/krita-4.0.3-tests-optional.patch | 324 +++++++++++++++++++++
13 media-gfx/krita/krita-4.0.3.ebuild | 7 +-
14 2 files changed, 329 insertions(+), 2 deletions(-)
15
16 diff --git a/media-gfx/krita/files/krita-4.0.3-tests-optional.patch b/media-gfx/krita/files/krita-4.0.3-tests-optional.patch
17 new file mode 100644
18 index 00000000000..c9e3ddc2aea
19 --- /dev/null
20 +++ b/media-gfx/krita/files/krita-4.0.3-tests-optional.patch
21 @@ -0,0 +1,324 @@
22 +Autogenerated by KDE_TEST=forceoptional-recursive and edited.
23 +
24 +--- a/plugins/paintops/libpaintop/CMakeLists.txt 2018-08-29 18:17:38.843385842 +0200
25 ++++ b/plugins/paintops/libpaintop/CMakeLists.txt 2018-08-29 18:17:38.846385865 +0200
26 +@@ -104,4 +104,6 @@
27 + install(TARGETS kritalibpaintop ${INSTALL_TARGETS_DEFAULT_ARGS})
28 +
29 +
30 ++if(BUILD_TESTING)
31 + add_subdirectory(tests)
32 ++endif()
33 +--- a/plugins/paintops/defaultpaintops/CMakeLists.txt 2018-08-29 18:17:38.851385903 +0200
34 ++++ b/plugins/paintops/defaultpaintops/CMakeLists.txt 2018-08-29 18:17:38.854385926 +0200
35 +@@ -1,4 +1,6 @@
36 ++if(BUILD_TESTING)
37 + add_subdirectory(brush/tests)
38 ++endif()
39 +
40 + include_directories(brush
41 + duplicate
42 +--- a/plugins/impex/libkra/CMakeLists.txt 2018-08-29 18:17:38.858385956 +0200
43 ++++ b/plugins/impex/libkra/CMakeLists.txt 2018-08-29 18:17:38.861385978 +0200
44 +@@ -1,4 +1,6 @@
45 ++if(BUILD_TESTING)
46 + add_subdirectory(tests)
47 ++endif()
48 +
49 + set(kritalibkra_LIB_SRCS
50 + kis_colorize_dom_utils.cpp
51 +--- a/plugins/impex/exr/CMakeLists.txt 2018-08-29 18:17:38.866386016 +0200
52 ++++ b/plugins/impex/exr/CMakeLists.txt 2018-08-29 18:17:38.869386039 +0200
53 +@@ -1,4 +1,6 @@
54 ++if(BUILD_TESTING)
55 + add_subdirectory(tests)
56 ++endif()
57 +
58 + include_directories(SYSTEM ${OPENEXR_INCLUDE_DIR} )
59 +
60 +--- a/plugins/impex/svg/CMakeLists.txt 2018-08-29 18:17:38.874386077 +0200
61 ++++ b/plugins/impex/svg/CMakeLists.txt 2018-08-29 18:17:38.878386107 +0200
62 +@@ -1,4 +1,6 @@
63 ++if(BUILD_TESTING)
64 + add_subdirectory(tests)
65 ++endif()
66 +
67 + set(kritasvgimport_SOURCES
68 + kis_svg_import.cc
69 +--- a/plugins/impex/jpeg/CMakeLists.txt 2018-08-29 18:17:38.883386145 +0200
70 ++++ b/plugins/impex/jpeg/CMakeLists.txt 2018-08-29 18:17:38.887386175 +0200
71 +@@ -1,4 +1,6 @@
72 ++if(BUILD_TESTING)
73 + add_subdirectory(tests)
74 ++endif()
75 +
76 + set(ICCJPEG_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/lcms")
77 +
78 +--- a/plugins/impex/heightmap/CMakeLists.txt 2018-08-29 18:17:38.892386213 +0200
79 ++++ b/plugins/impex/heightmap/CMakeLists.txt 2018-08-29 18:17:38.896386243 +0200
80 +@@ -1,4 +1,6 @@
81 ++if(BUILD_TESTING)
82 + add_subdirectory(tests)
83 ++endif()
84 +
85 + include_directories( ${CMAKE_CURRENT_SOURCE_DIR} )
86 +
87 +--- a/plugins/impex/psd/CMakeLists.txt 2018-08-29 18:17:38.901386281 +0200
88 ++++ b/plugins/impex/psd/CMakeLists.txt 2018-08-29 18:17:38.904386304 +0200
89 +@@ -1,5 +1,7 @@
90 + if (NOT MSVC AND NOT APPLE)
91 +- add_subdirectory(tests)
92 ++ if(BUILD_TESTING)
93 ++ add_subdirectory(tests)
94 ++ endif()
95 + endif()
96 +
97 + configure_file(config_psd.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config_psd.h)
98 +--- a/plugins/impex/ppm/CMakeLists.txt 2018-08-29 18:17:38.909386342 +0200
99 ++++ b/plugins/impex/ppm/CMakeLists.txt 2018-08-29 18:17:38.913386372 +0200
100 +@@ -1,4 +1,6 @@
101 ++if(BUILD_TESTING)
102 + add_subdirectory(tests)
103 ++endif()
104 +
105 + include_directories( ${CMAKE_CURRENT_SOURCE_DIR} )
106 +
107 +--- a/plugins/impex/png/CMakeLists.txt 2018-08-29 18:17:38.918386410 +0200
108 ++++ b/plugins/impex/png/CMakeLists.txt 2018-08-29 18:17:38.922386440 +0200
109 +@@ -1,4 +1,6 @@
110 ++if(BUILD_TESTING)
111 + add_subdirectory(tests)
112 ++endif()
113 +
114 + set(kritapngimport_SOURCES
115 + kis_png_import.cc
116 +--- a/plugins/impex/csv/CMakeLists.txt 2018-08-29 18:17:38.927386478 +0200
117 ++++ b/plugins/impex/csv/CMakeLists.txt 2018-08-29 18:17:38.931386508 +0200
118 +@@ -1,4 +1,6 @@
119 ++if(BUILD_TESTING)
120 + add_subdirectory(tests)
121 ++endif()
122 +
123 + # import
124 +
125 +--- a/plugins/impex/xcf/CMakeLists.txt 2018-08-29 18:17:38.936386546 +0200
126 ++++ b/plugins/impex/xcf/CMakeLists.txt 2018-08-29 18:17:38.940386576 +0200
127 +@@ -1,4 +1,6 @@
128 ++if(BUILD_TESTING)
129 + add_subdirectory(tests)
130 ++endif()
131 +
132 + set(XCFTOOLS_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/xcftools")
133 +
134 +--- a/plugins/impex/tiff/CMakeLists.txt 2018-08-29 18:17:38.944386606 +0200
135 ++++ b/plugins/impex/tiff/CMakeLists.txt 2018-08-29 18:17:38.947386630 +0200
136 +@@ -1,4 +1,6 @@
137 ++if(BUILD_TESTING)
138 + add_subdirectory(tests)
139 ++endif()
140 +
141 + set(libkritatiffconverter_LIB_SRCS
142 + kis_tiff_converter.cc
143 +--- a/plugins/extensions/qmic/CMakeLists.txt 2018-08-29 18:17:38.952386667 +0200
144 ++++ b/plugins/extensions/qmic/CMakeLists.txt 2018-08-29 18:17:38.955386690 +0200
145 +@@ -20,4 +20,6 @@
146 + target_link_libraries(kritaqmic kritaui)
147 + install(TARGETS kritaqmic DESTINATION ${KRITA_PLUGIN_INSTALL_DIR})
148 +
149 ++if(BUILD_TESTING)
150 + add_subdirectory(tests)
151 ++endif()
152 +--- a/plugins/filters/CMakeLists.txt 2018-08-29 18:17:38.959386720 +0200
153 ++++ b/plugins/filters/CMakeLists.txt 2018-08-29 18:17:38.963386750 +0200
154 +@@ -1,4 +1,6 @@
155 ++if(BUILD_TESTING)
156 + add_subdirectory( tests )
157 ++endif()
158 + add_subdirectory( blur )
159 + add_subdirectory( colors )
160 + add_subdirectory( colorsfilters )
161 +--- a/plugins/filters/unsharp/CMakeLists.txt 2018-08-29 18:17:38.968386788 +0200
162 ++++ b/plugins/filters/unsharp/CMakeLists.txt 2018-08-29 18:17:38.971386811 +0200
163 +@@ -1,4 +1,6 @@
164 ++if(BUILD_TESTING)
165 + add_subdirectory( tests )
166 ++endif()
167 +
168 + set(kritaunsharpfilter_SOURCES
169 + unsharp.cpp
170 +--- a/plugins/tools/basictools/CMakeLists.txt 2018-08-29 18:17:38.976386849 +0200
171 ++++ b/plugins/tools/basictools/CMakeLists.txt 2018-08-29 18:17:38.980386879 +0200
172 +@@ -1,5 +1,7 @@
173 + if (NOT APPLE)
174 +- add_subdirectory(tests)
175 ++ if(BUILD_TESTING)
176 ++ add_subdirectory(tests)
177 ++ endif()
178 + endif ()
179 +
180 + set(kritadefaulttools_SOURCES
181 +--- a/plugins/tools/tool_transform2/CMakeLists.txt 2018-08-29 18:17:38.985386917 +0200
182 ++++ b/plugins/tools/tool_transform2/CMakeLists.txt 2018-08-29 18:17:38.989386947 +0200
183 +@@ -1,5 +1,7 @@
184 + if (NOT WIN32 AND NOT APPLE)
185 +- add_subdirectory(tests)
186 ++ if(BUILD_TESTING)
187 ++ add_subdirectory(tests)
188 ++ endif()
189 + endif()
190 +
191 + set(kritatooltransform_SOURCES
192 +--- a/plugins/color/lcms2engine/CMakeLists.txt 2018-08-29 18:17:38.994386985 +0200
193 ++++ b/plugins/color/lcms2engine/CMakeLists.txt 2018-08-29 18:17:38.998387015 +0200
194 +@@ -1,6 +1,8 @@
195 + project( lcmsengine )
196 +
197 ++if(BUILD_TESTING)
198 + add_subdirectory(tests)
199 ++endif()
200 +
201 + include_directories(SYSTEM
202 + ${LCMS2_INCLUDE_DIR}
203 +--- a/plugins/dockers/defaultdockers/CMakeLists.txt 2018-08-29 18:17:39.003387053 +0200
204 ++++ b/plugins/dockers/defaultdockers/CMakeLists.txt 2018-08-29 18:17:39.007387084 +0200
205 +@@ -1,4 +1,6 @@
206 ++if(BUILD_TESTING)
207 + add_subdirectory( tests )
208 ++endif()
209 +
210 + set(kritadefaultdockers_SOURCES
211 + kis_layer_box.cpp
212 +--- a/plugins/dockers/animation/CMakeLists.txt 2018-08-29 18:17:39.012387121 +0200
213 ++++ b/plugins/dockers/animation/CMakeLists.txt 2018-08-29 18:17:39.016387151 +0200
214 +@@ -1,5 +1,7 @@
215 + if (NOT WIN32 AND NOT APPLE)
216 +- add_subdirectory(tests)
217 ++ if(BUILD_TESTING)
218 ++ add_subdirectory(tests)
219 ++ endif()
220 + endif()
221 +
222 + set(KRITA_ANIMATIONDOCKER_SOURCES
223 +--- a/plugins/dockers/lut/CMakeLists.txt 2018-08-29 18:17:39.021387189 +0200
224 ++++ b/plugins/dockers/lut/CMakeLists.txt 2018-08-29 18:17:39.025387220 +0200
225 +@@ -1,4 +1,6 @@
226 ++if(BUILD_TESTING)
227 + add_subdirectory(tests)
228 ++endif()
229 +
230 + include_directories(SYSTEM
231 + ${OCIO_INCLUDE_DIR}
232 +--- a/libs/store/CMakeLists.txt 2018-08-29 18:17:39.030387258 +0200
233 ++++ b/libs/store/CMakeLists.txt 2018-08-29 18:17:39.033387280 +0200
234 +@@ -1,4 +1,6 @@
235 ++if(BUILD_TESTING)
236 + add_subdirectory(tests)
237 ++endif()
238 +
239 + set(kritastore_LIB_SRCS
240 + KoDirectoryStore.cpp
241 +--- a/libs/flake/CMakeLists.txt 2018-08-29 18:17:39.038387318 +0200
242 ++++ b/libs/flake/CMakeLists.txt 2018-08-29 18:17:39.042387349 +0200
243 +@@ -9,7 +9,9 @@
244 + )
245 +
246 + add_subdirectory(styles)
247 ++if(BUILD_TESTING)
248 + add_subdirectory(tests)
249 ++endif()
250 +
251 + set(kritaflake_SRCS
252 + KoGradientHelper.cpp
253 +--- a/libs/widgetutils/CMakeLists.txt 2018-08-29 18:17:39.046387379 +0200
254 ++++ b/libs/widgetutils/CMakeLists.txt 2018-08-29 18:17:39.049387401 +0200
255 +@@ -1,4 +1,6 @@
256 ++if(BUILD_TESTING)
257 + add_subdirectory(tests)
258 ++endif()
259 +
260 + configure_file(xmlgui/config-xmlgui.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-xmlgui.h )
261 +
262 +--- a/libs/odf/CMakeLists.txt 2018-08-29 18:17:39.054387439 +0200
263 ++++ b/libs/odf/CMakeLists.txt 2018-08-29 18:17:39.058387469 +0200
264 +@@ -1,4 +1,6 @@
265 ++if(BUILD_TESTING)
266 + add_subdirectory( tests )
267 ++endif()
268 +
269 + set(kritaodf_LIB_SRCS
270 + KoOdf.cpp
271 +--- a/libs/pigment/CMakeLists.txt 2018-08-29 18:17:39.062387500 +0200
272 ++++ b/libs/pigment/CMakeLists.txt 2018-08-29 18:17:39.067387538 +0200
273 +@@ -31,7 +31,9 @@
274 + message("${__per_arch_factory_objs}")
275 + endif()
276 +
277 ++if(BUILD_TESTING)
278 + add_subdirectory(tests)
279 ++endif()
280 + add_subdirectory(benchmarks)
281 +
282 + set(kritapigment_SRCS
283 +--- a/libs/widgets/CMakeLists.txt 2018-08-29 18:17:39.073387583 +0200
284 ++++ b/libs/widgets/CMakeLists.txt 2018-08-29 18:17:39.078387621 +0200
285 +@@ -1,4 +1,6 @@
286 ++if(BUILD_TESTING)
287 + add_subdirectory( tests )
288 ++endif()
289 +
290 + include_directories(${CMAKE_CURRENT_BINARY_DIR})
291 +
292 +--- a/libs/ui/CMakeLists.txt 2018-08-29 18:17:39.084387666 +0200
293 ++++ b/libs/ui/CMakeLists.txt 2018-08-29 18:17:39.088387697 +0200
294 +@@ -8,7 +8,9 @@
295 + ${OCIO_INCLUDE_DIR}
296 + )
297 +
298 ++if(BUILD_TESTING)
299 + add_subdirectory( tests )
300 ++endif()
301 +
302 + if (APPLE)
303 + find_library(FOUNDATION_LIBRARY Foundation)
304 +--- a/libs/image/CMakeLists.txt 2018-08-29 18:17:39.092387727 +0200
305 ++++ b/libs/image/CMakeLists.txt 2018-08-29 18:17:39.096387757 +0200
306 +@@ -1,4 +1,6 @@
307 ++if(BUILD_TESTING)
308 + add_subdirectory( tests )
309 ++endif()
310 +
311 + add_subdirectory( tiles3 )
312 +
313 +--- a/libs/image/tiles3/CMakeLists.txt 2018-08-29 18:17:39.101387795 +0200
314 ++++ b/libs/image/tiles3/CMakeLists.txt 2018-08-29 18:17:39.105387825 +0200
315 +@@ -1 +1,3 @@
316 ++if(BUILD_TESTING)
317 + add_subdirectory(tests)
318 ++endif()
319 +--- a/libs/global/CMakeLists.txt 2018-08-29 18:17:39.110387863 +0200
320 ++++ b/libs/global/CMakeLists.txt 2018-08-29 18:17:39.113387886 +0200
321 +@@ -1,4 +1,6 @@
322 ++if(BUILD_TESTING)
323 + add_subdirectory( tests )
324 ++endif()
325 +
326 + include(CheckFunctionExists)
327 + check_function_exists(backtrace HAVE_BACKTRACE)
328 +--- a/libs/brush/CMakeLists.txt 2018-08-29 18:17:39.117387916 +0200
329 ++++ b/libs/brush/CMakeLists.txt 2018-08-29 18:17:39.121387946 +0200
330 +@@ -1,4 +1,6 @@
331 ++if(BUILD_TESTING)
332 + add_subdirectory( tests )
333 ++endif()
334 +
335 + include_directories(SYSTEM
336 + ${EIGEN3_INCLUDE_DIR}
337 +--- a/libs/libkis/CMakeLists.txt 2018-08-29 18:17:39.126387984 +0200
338 ++++ b/libs/libkis/CMakeLists.txt 2018-08-29 18:17:39.131388022 +0200
339 +@@ -46,4 +46,6 @@
340 + install(TARGETS kritalibkis ${INSTALL_TARGETS_DEFAULT_ARGS})
341 +
342 +
343 ++if(BUILD_TESTING)
344 + add_subdirectory(tests)
345 ++endif()
346
347 diff --git a/media-gfx/krita/krita-4.0.3.ebuild b/media-gfx/krita/krita-4.0.3.ebuild
348 index fd16ae05438..72fdccfb662 100644
349 --- a/media-gfx/krita/krita-4.0.3.ebuild
350 +++ b/media-gfx/krita/krita-4.0.3.ebuild
351 @@ -3,7 +3,7 @@
352
353 EAPI=6
354
355 -KDE_TEST="forceoptional-recursive"
356 +KDE_TEST="forceoptional"
357 VIRTUALX_REQUIRED="test"
358 PYTHON_COMPAT=( python3_{4,5,6} )
359 inherit kde5 python-single-r1
360 @@ -86,7 +86,10 @@ RDEPEND="${COMMON_DEPEND}
361 # bug 630508
362 RESTRICT+=" test"
363
364 -PATCHES=( "${FILESDIR}/${P}-libraw-0.19.patch" )
365 +PATCHES=(
366 + "${FILESDIR}/${P}-tests-optional.patch"
367 + "${FILESDIR}/${P}-libraw-0.19.patch"
368 +)
369
370 pkg_setup() {
371 use python && python-single-r1_pkg_setup