Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/musescore/files/, media-sound/musescore/
Date: Tue, 29 Nov 2016 08:29:40
Message-Id: 1480407524.cf4d82c159f7ca1c2bd49fbb4ba92ea2d9449cb2.soap@gentoo
1 commit: cf4d82c159f7ca1c2bd49fbb4ba92ea2d9449cb2
2 Author: Gergely Nagy <ngg <AT> ngg <DOT> hu>
3 AuthorDate: Sun Nov 27 21:35:28 2016 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 29 08:18:44 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf4d82c1
7
8 media-sound/musescore: Version bump and dependency fixes.
9
10 * Bumped version to 2.0.3
11 * Added missing dependency to dev-qt/designer
12 * Removed audiofile dependency (it can only build its own variant)
13 * media-libs/libsndfile is always needed
14 * Added alsa USE flag
15 * Fixed CMAKE args for using portaudio and pulseaudio
16 * Rebased patch on the new version
17 Closes: https://github.com/gentoo/gentoo/pull/2937
18
19 media-sound/musescore/Manifest | 1 +
20 .../files/musescore-2.0.3-fix-buildsystem.patch | 479 +++++++++++++++++++++
21 media-sound/musescore/musescore-2.0.3.ebuild | 62 +++
22 3 files changed, 542 insertions(+)
23
24 diff --git a/media-sound/musescore/Manifest b/media-sound/musescore/Manifest
25 index c7586ad..6d795c3 100644
26 --- a/media-sound/musescore/Manifest
27 +++ b/media-sound/musescore/Manifest
28 @@ -2,3 +2,4 @@ DIST mscore-1.1.tar.bz2 82410619 SHA256 d160b4dabbee5bbe7c0ba6e653e90fd36fae07ab
29 DIST mscore-1.2.tar.bz2 85739954 SHA256 e7f6c6cd705381a4583db267acbfed2dc9ce3985b20ed5407cd9cfe208d74d81 SHA512 aa92520b34d597db9fcf3c0121a56ceb7bfd8008ec5520cb318129da1c127426b0b789aab9d4754526d22c00307cc730d3c1b5a23e4252d5c5ca9e2b6cd95a38 WHIRLPOOL 6abcd260e908a045b43d210d274911cb87acacc1707638bc625aae817ad3791b13b079b6eaf44fb8b600031e7492eae86d88a6d6cb923c6badcdfe1b89314734
30 DIST mscore-1.3.tar.bz2 94704857 SHA256 a0b60cc892ac0266c58fc6392be72c0a21c3aa7fd0b6e4f1dddad1c8b36be683 SHA512 65369cc62f401c059c3452ada8a8861b6dd36df54313f4039f1a8a96771a37926bb40240df88d150b99cee7bc8a4ee8963a4fdb5a162defc8be660810cbc49b4 WHIRLPOOL 89a91da5607ce8163b74f6a787b57f15ef615a32ede154f943a3d87e78f348b145d14e89c487797df1bff577085b36d5e21c6ffb2daf044cf48b01f350538be1
31 DIST musescore-2.0.2.tar.gz 44528670 SHA256 92f35403d1cb87bdb080a18bc37b2023a998ed9a26e7f50a5b6d30dbc3c1db45 SHA512 aeb5f0c696a3c0796604c687cb3ea7303dd3536da71cf1b1e71f909cd5caa0864a879ffb19931f6ab0dc6fff854c9f2e05a64905e186b417fa954b73e3e9f08c WHIRLPOOL 87c5e64f721deec1389fcb5ae3d21536586a4ec8d3419d0f88cd2dca7cb6bab0e5df283de1253fd7407f7d6f0a8cf8a95bdd6c1877923193f7d3ea24167631a6
32 +DIST musescore-2.0.3.tar.gz 49958474 SHA256 66c613f27fcc07252e856a51ed1162a9921f3d11ac130260763e2178b7098b01 SHA512 4cd1301036781a54fba06870cc6a3235919ca702ccbe45dcfd74b1d3a1173fa124cca7bcec2fdfb080fb7e3eaf870ba1879ea6738c764836b2f7cae6f7c2d3c1 WHIRLPOOL bf31de08858404e7ccd5cf78c3433bb4e799a3bc020582953bbc83b7abe6075847352fb8f30f9be795cfc69c57dc856d05d1602bbd194c4dbed90d2ba2254ad2
33
34 diff --git a/media-sound/musescore/files/musescore-2.0.3-fix-buildsystem.patch b/media-sound/musescore/files/musescore-2.0.3-fix-buildsystem.patch
35 new file mode 100644
36 index 00000000..0fb52db
37 --- /dev/null
38 +++ b/media-sound/musescore/files/musescore-2.0.3-fix-buildsystem.patch
39 @@ -0,0 +1,479 @@
40 +diff --git a/CMakeLists.txt b/CMakeLists.txt
41 +index 2c4fe57..b7a5cde 100644
42 +--- a/CMakeLists.txt
43 ++++ b/CMakeLists.txt
44 +@@ -147,23 +147,13 @@ if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
45 + endif()
46 + endif ("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
47 +
48 +-if (APPLE)
49 +- set(CMAKE_CXX_FLAGS_DEBUG "-std=c++11 -fPIC -stdlib=libc++ -g -Wno-inconsistent-missing-override")
50 +- set(CMAKE_CXX_FLAGS_RELEASE "-std=c++11 -fPIC -stdlib=libc++ -O2 -DNDEBUG -DQT_NO_DEBUG -Wno-inconsistent-missing-override")
51 +-else (APPLE)
52 +- if (MINGW)
53 +- # -mno-ms-bitfields see #22048
54 +- set(CMAKE_CXX_FLAGS_DEBUG "-std=c++11 -mno-ms-bitfields -g")
55 +- set(CMAKE_CXX_FLAGS_RELEASE "-std=c++11 -mno-ms-bitfields -O2 -DNDEBUG -DQT_NO_DEBUG")
56 +- set(CMAKE_EXE_LINKER_FLAGS "-Wl,--large-address-aware")
57 +- else (MINGW)
58 +- set(CMAKE_CXX_FLAGS_DEBUG "-std=c++11 -fPIC -fPIE -g")
59 +- set(CMAKE_CXX_FLAGS_RELEASE "-std=c++11 -fPIC -O2 -DNDEBUG -DQT_NO_DEBUG")
60 +- endif (MINGW)
61 +-endif(APPLE)
62 ++set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -fPIE -DNDEBUG -DQT_NO_DEBUG")
63 ++set(CMAKE_CXX_STANDARD 11)
64 ++set(CMAKE_CXX_STANDARD_REQUIRED ON)
65 ++set(CMAKE_CXX_EXTENSIONS OFF)
66 +
67 + set(CMAKE_INCLUDE_CURRENT_DIR TRUE)
68 +-set(CMAKE_BUILD_WITH_INSTALL_RPATH ON) # Call CMake with option -DCMAKE_SKIP_RPATH to not set RPATH (Debian packaging requirement)
69 ++set(CMAKE_BUILD_WITH_INSTALL_RPATH OFF) # Call CMake with option -DCMAKE_SKIP_RPATH to not set RPATH (Debian packaging requirement)
70 + set(CMAKE_SKIP_RULE_DEPENDENCY TRUE)
71 +
72 + # The Mscore version number.
73 +@@ -450,7 +440,6 @@ if (NOT MINGW AND NOT APPLE)
74 + # set library search path for runtime linker to load the same
75 + # qt libraries as we used at compile time
76 + #
77 +- SET(CMAKE_INSTALL_RPATH "${_qt5Core_install_prefix}/lib") # ignored if CMAKE_SKIP_RPATH="TRUE"
78 + string(TOUPPER "mscore${MSCORE_INSTALL_SUFFIX}" MAN_MSCORE_UPPER) # Command name shown in uppercase in man pages by convention
79 + if (${MSCORE_INSTALL_SUFFIX} MATCHES "portable") # Note: "-portable-anything" would match
80 + # Build portable AppImage as per https://github.com/probonopd/AppImageKit
81 +@@ -554,11 +543,7 @@ add_custom_command(
82 + DEPENDS ${PROJECT_SOURCE_DIR}/all.h
83 + WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
84 + )
85 +-if (MINGW)
86 +- set(BUILD_PCH false)
87 +-else (MINGW)
88 +- set(BUILD_PCH true)
89 +-endif(MINGW)
90 ++set(BUILD_PCH false)
91 +
92 + precompiled_header(QT_INCLUDES all ${BUILD_PCH})
93 +
94 +diff --git a/aeolus/CMakeLists.txt b/aeolus/CMakeLists.txt
95 +index 7962e87..a23aef3 100644
96 +--- a/aeolus/CMakeLists.txt
97 ++++ b/aeolus/CMakeLists.txt
98 +@@ -43,7 +43,7 @@ add_library (aeolus STATIC
99 + set_target_properties (
100 + aeolus
101 + PROPERTIES
102 +- COMPILE_FLAGS "${PCH_INCLUDE} -g -Wall -Wextra -Winvalid-pch"
103 ++ COMPILE_FLAGS "${PCH_INCLUDE} -Wall -Wextra -Winvalid-pch"
104 + )
105 +
106 + install(DIRECTORY
107 +diff --git a/audiofile/CMakeLists.txt b/audiofile/CMakeLists.txt
108 +index 5b1dd48..0d28df8 100644
109 +--- a/audiofile/CMakeLists.txt
110 ++++ b/audiofile/CMakeLists.txt
111 +@@ -26,7 +26,7 @@ add_library (audiofile STATIC
112 + set_target_properties (
113 + audiofile
114 + PROPERTIES
115 +- COMPILE_FLAGS "${PCH_INCLUDE} -g -Wall -Wextra -Winvalid-pch"
116 ++ COMPILE_FLAGS "${PCH_INCLUDE} -Wall -Wextra -Winvalid-pch"
117 + )
118 +
119 + xcode_pch(audiofile all)
120 +diff --git a/awl/CMakeLists.txt b/awl/CMakeLists.txt
121 +index 9589cce..f4172ed 100644
122 +--- a/awl/CMakeLists.txt
123 ++++ b/awl/CMakeLists.txt
124 +@@ -43,7 +43,7 @@ add_library (
125 + set_target_properties (
126 + awl
127 + PROPERTIES
128 +- COMPILE_FLAGS "${PCH_INCLUDE} -g -Wall -Wextra -Winvalid-pch"
129 ++ COMPILE_FLAGS "${PCH_INCLUDE} -Wall -Wextra -Winvalid-pch"
130 + )
131 +
132 + xcode_pch(awl all)
133 +diff --git a/build/CreatePrecompiledHeader.cmake b/build/CreatePrecompiledHeader.cmake
134 +index 6cb671a..3d4aae3 100644
135 +--- a/build/CreatePrecompiledHeader.cmake
136 ++++ b/build/CreatePrecompiledHeader.cmake
137 +@@ -36,7 +36,7 @@ macro( precompiled_header includes header_name build_pch)
138 + set (PCH ${PROJECT_BINARY_DIR}/${header_name}.h.gch)
139 + add_custom_command(
140 + OUTPUT ${PROJECT_BINARY_DIR}/${header_name}.h.gch
141 +- COMMAND ${CMAKE_CXX_COMPILER} -x c++-header -g ${compile_flags} -o ${header_name}.h.gch ${header_name}.h
142 ++ COMMAND ${CMAKE_CXX_COMPILER} -x c++-header ${compile_flags} -o ${header_name}.h.gch ${header_name}.h
143 + DEPENDS ${PROJECT_BINARY_DIR}/${header_name}.h
144 + WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
145 + VERBATIM
146 +diff --git a/bww2mxml/CMakeLists.txt b/bww2mxml/CMakeLists.txt
147 +index d6b7794..acec8b5 100644
148 +--- a/bww2mxml/CMakeLists.txt
149 ++++ b/bww2mxml/CMakeLists.txt
150 +@@ -49,7 +49,7 @@ if (NOT MINGW AND NOT APPLE)
151 + set_target_properties (
152 + bww2mxml
153 + PROPERTIES
154 +- COMPILE_FLAGS "-x c++ -include ${PROJECT_BINARY_DIR}/all.h -g -Wall -Wextra -Winvalid-pch"
155 ++ COMPILE_FLAGS "-x c++ -include ${PROJECT_BINARY_DIR}/all.h -Wall -Wextra -Winvalid-pch"
156 + )
157 +
158 + target_link_libraries(bww2mxml
159 +diff --git a/effects/CMakeLists.txt b/effects/CMakeLists.txt
160 +index a695f1d..cf94cae 100644
161 +--- a/effects/CMakeLists.txt
162 ++++ b/effects/CMakeLists.txt
163 +@@ -44,7 +44,7 @@ add_library (effects STATIC
164 + set_target_properties (
165 + effects
166 + PROPERTIES
167 +- COMPILE_FLAGS "${PCH_INCLUDE} -g -Wall -Wextra -Winvalid-pch"
168 ++ COMPILE_FLAGS "${PCH_INCLUDE} -Wall -Wextra -Winvalid-pch"
169 + )
170 +
171 + xcode_pch(effects all)
172 +diff --git a/fluid/CMakeLists.txt b/fluid/CMakeLists.txt
173 +index 1dc8d2f..3fede66 100644
174 +--- a/fluid/CMakeLists.txt
175 ++++ b/fluid/CMakeLists.txt
176 +@@ -45,7 +45,7 @@ add_library (fluid STATIC
177 + set_target_properties (
178 + fluid
179 + PROPERTIES
180 +- COMPILE_FLAGS "${PCH_INCLUDE} -g -Wall -Wextra -Winvalid-pch"
181 ++ COMPILE_FLAGS "${PCH_INCLUDE} -Wall -Wextra -Winvalid-pch"
182 + )
183 +
184 + xcode_pch(fluid all)
185 +diff --git a/fonttools/CMakeLists.txt b/fonttools/CMakeLists.txt
186 +index 74a525b..f318f4c 100644
187 +--- a/fonttools/CMakeLists.txt
188 ++++ b/fonttools/CMakeLists.txt
189 +@@ -19,5 +19,5 @@ add_executable(
190 + )
191 +
192 + target_link_libraries(genft ${QT_LIBRARIES} -lfreetype)
193 +-set_target_properties(genft PROPERTIES COMPILE_FLAGS "-I/usr/include/freetype2 -g -Wall -Wextra -Winvalid-pch")
194 ++set_target_properties(genft PROPERTIES COMPILE_FLAGS "-I/usr/include/freetype2 -Wall -Wextra -Winvalid-pch")
195 +
196 +diff --git a/libmscore/CMakeLists.txt b/libmscore/CMakeLists.txt
197 +index 446d413..5d871a8 100644
198 +--- a/libmscore/CMakeLists.txt
199 ++++ b/libmscore/CMakeLists.txt
200 +@@ -71,8 +71,8 @@ add_library (
201 + set_target_properties (
202 + libmscore
203 + PROPERTIES
204 +- COMPILE_FLAGS "-g ${PCH_INCLUDE} -Wall -Wextra -Winvalid-pch"
205 +-# COMPILE_FLAGS "-g ${PCH_INCLUDE} -Wall -Wextra -Winvalid-pch -Woverloaded-virtual"
206 ++ COMPILE_FLAGS "${PCH_INCLUDE} -Wall -Wextra -Winvalid-pch"
207 ++# COMPILE_FLAGS "${PCH_INCLUDE} -Wall -Wextra -Winvalid-pch -Woverloaded-virtual"
208 + )
209 +
210 + xcode_pch(libmscore all)
211 +diff --git a/manual/CMakeLists.txt b/manual/CMakeLists.txt
212 +index cf6edca..ceffd73 100644
213 +--- a/manual/CMakeLists.txt
214 ++++ b/manual/CMakeLists.txt
215 +@@ -36,13 +36,13 @@ if(APPLE)
216 + set_target_properties (
217 + genManual
218 + PROPERTIES
219 +- COMPILE_FLAGS "-include all.h -D TESTROOT=\\\\\"${PROJECT_SOURCE_DIR}\\\\\" -g -Wall -Wextra"
220 ++ COMPILE_FLAGS "-include all.h -D TESTROOT=\\\\\"${PROJECT_SOURCE_DIR}\\\\\" -Wall -Wextra"
221 + )
222 + else(APPLE)
223 + set_target_properties (
224 + genManual
225 + PROPERTIES
226 +- COMPILE_FLAGS "-include all.h -D TESTROOT=\\\"${PROJECT_SOURCE_DIR}\\\" -g -Wall -Wextra"
227 ++ COMPILE_FLAGS "-include all.h -D TESTROOT=\\\"${PROJECT_SOURCE_DIR}\\\" -Wall -Wextra"
228 + )
229 + endif(APPLE)
230 +
231 +diff --git a/midi/CMakeLists.txt b/midi/CMakeLists.txt
232 +index 05fbb83..ea95480 100644
233 +--- a/midi/CMakeLists.txt
234 ++++ b/midi/CMakeLists.txt
235 +@@ -27,7 +27,7 @@ add_library (midi STATIC
236 + set_target_properties (
237 + midi
238 + PROPERTIES
239 +- COMPILE_FLAGS "${PCH_INCLUDE} -g -Wall -Wextra -Winvalid-pch"
240 ++ COMPILE_FLAGS "${PCH_INCLUDE} -Wall -Wextra -Winvalid-pch"
241 + )
242 +
243 + xcode_pch(midi all)
244 +diff --git a/miditools/CMakeLists.txt b/miditools/CMakeLists.txt
245 +index 6df79c4..f8145e0 100644
246 +--- a/miditools/CMakeLists.txt
247 ++++ b/miditools/CMakeLists.txt
248 +@@ -13,7 +13,7 @@
249 + add_executable (smf2xml smf2xml.cpp xmlwriter.cpp midifile.cpp)
250 +
251 + set_target_properties(smf2xml
252 +- PROPERTIES COMPILE_FLAGS "-g -Wall -Wextra"
253 ++ PROPERTIES COMPILE_FLAGS "-Wall -Wextra"
254 + )
255 + target_link_libraries(smf2xml
256 + ${QT_LIBRARIES}
257 +@@ -23,7 +23,7 @@ add_executable (xml2smf xml2smf.cpp xmlreader.cpp midifile.cpp)
258 +
259 + set_target_properties (
260 + xml2smf
261 +- PROPERTIES COMPILE_FLAGS "-g -Wall -Wextra"
262 ++ PROPERTIES COMPILE_FLAGS "-Wall -Wextra"
263 + )
264 + target_link_libraries(xml2smf
265 + ${QT_LIBRARIES}
266 +diff --git a/mscore/CMakeLists.txt b/mscore/CMakeLists.txt
267 +index 3592012..b50e2bc 100644
268 +--- a/mscore/CMakeLists.txt
269 ++++ b/mscore/CMakeLists.txt
270 +@@ -370,7 +370,7 @@ if (MINGW)
271 + if(CMAKE_BUILD_TYPE MATCHES "DEBUG")
272 + set_target_properties( mscore
273 + PROPERTIES
274 +- COMPILE_FLAGS "${PCH_INCLUDE} -g -Wall -Wextra -Winvalid-pch ${QT_DEFINITIONS} -DQT_SVG_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB"
275 ++ COMPILE_FLAGS "${PCH_INCLUDE} -Wall -Wextra -Winvalid-pch ${QT_DEFINITIONS} -DQT_SVG_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB"
276 + LINK_FLAGS "${PROJECT_BINARY_DIR}/resfile.o -mwindows -mconsole -L ${CROSSQT}/lib"
277 + )
278 + else(CMAKE_BUILD_TYPE MATCHES "DEBUG")
279 +@@ -493,7 +493,7 @@ else (MINGW)
280 + set_target_properties (
281 + mscore
282 + PROPERTIES
283 +- COMPILE_FLAGS "${PCH_INCLUDE} -g -Wall -Wno-overloaded-virtual -Winvalid-pch"
284 ++ COMPILE_FLAGS "${PCH_INCLUDE} -Wall -Wno-overloaded-virtual -Winvalid-pch"
285 + )
286 +
287 + if (OMR)
288 +diff --git a/mstyle/CMakeLists.txt b/mstyle/CMakeLists.txt
289 +index e60d901..d3ba643 100644
290 +--- a/mstyle/CMakeLists.txt
291 ++++ b/mstyle/CMakeLists.txt
292 +@@ -49,7 +49,7 @@ add_library (
293 + set_target_properties (
294 + mstyle
295 + PROPERTIES
296 +- COMPILE_FLAGS "${PCH_INCLUDE} -g -Wall -Wextra -Winvalid-pch"
297 ++ COMPILE_FLAGS "${PCH_INCLUDE} -Wall -Wextra -Winvalid-pch"
298 + )
299 +
300 + xcode_pch(mstyle all)
301 +diff --git a/mtest/CMakeLists.txt b/mtest/CMakeLists.txt
302 +index 55072b0..cab1a18 100644
303 +--- a/mtest/CMakeLists.txt
304 ++++ b/mtest/CMakeLists.txt
305 +@@ -113,20 +113,10 @@ target_link_libraries(
306 +
307 + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}")
308 +
309 +-if (APPLE)
310 +- set(CMAKE_CXX_FLAGS_DEBUG "-std=c++0x -fPIC -stdlib=libc++ -g -Wno-inconsistent-missing-override")
311 +- set(CMAKE_CXX_FLAGS_RELEASE "-std=c++0x -fPIC -stdlib=libc++ -O2 -DNDEBUG -DQT_NO_DEBUG -Wno-inconsistent-missing-override")
312 +-else (APPLE)
313 +- if (MINGW)
314 +- # -mno-ms-bitfields see #22048
315 +- set(CMAKE_CXX_FLAGS_DEBUG "-std=gnu++0x -mno-ms-bitfields -g")
316 +- set(CMAKE_CXX_FLAGS_RELEASE "-std=gnu++0x -mno-ms-bitfields -O2 -DNDEBUG -DQT_NO_DEBUG")
317 +- else (MINGW)
318 +- set(CMAKE_CXX_FLAGS_DEBUG "-std=gnu++0x -fPIC -fPIE -g")
319 +- set(CMAKE_CXX_FLAGS_RELEASE "-std=gnu++0x -fPIC -O2 -DNDEBUG -DQT_NO_DEBUG")
320 +- endif (MINGW)
321 +-endif(APPLE)
322 +-
323 ++set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -fPIE -DNDEBUG -DQT_NO_DEBUG")
324 ++set(CMAKE_CXX_STANDARD 11)
325 ++set(CMAKE_CXX_STANDARD_REQUIRED ON)
326 ++set(CMAKE_CXX_EXTENSIONS OFF)
327 +
328 + string(REPLACE ";" ";-I" INC "${QT_INCLUDES}")
329 +
330 +@@ -134,17 +124,17 @@ if (APPLE)
331 + set_target_properties (
332 + testutils
333 + PROPERTIES
334 +- COMPILE_FLAGS "-include all.h -D TESTROOT=\\\\\"${PROJECT_SOURCE_DIR}\\\\\" -g -Wall -Wextra"
335 ++ COMPILE_FLAGS "-include all.h -D TESTROOT=\\\\\"${PROJECT_SOURCE_DIR}\\\\\" -Wall -Wextra"
336 + )
337 + else (APPLE)
338 + set_target_properties (
339 + testutils
340 + PROPERTIES
341 +- COMPILE_FLAGS "-include all.h -D TESTROOT=\\\"${PROJECT_SOURCE_DIR}\\\" -g -Wall -Wextra"
342 ++ COMPILE_FLAGS "-include all.h -D TESTROOT=\\\"${PROJECT_SOURCE_DIR}\\\" -Wall -Wextra"
343 + )
344 + endif(APPLE)
345 +
346 +-# COMPILE_FLAGS "-include all.h -I ${INC} -D TESTROOT=\\\"${PROJECT_SOURCE_DIR}\\\" -g -Wall -Wextra"
347 ++# COMPILE_FLAGS "-include all.h -I ${INC} -D TESTROOT=\\\"${PROJECT_SOURCE_DIR}\\\" -Wall -Wextra"
348 +
349 + add_custom_target(report
350 + COMMAND ant -f ${PROJECT_SOURCE_DIR}/mtest/build.xml -Droot.dir=${PROJECT_BINARY_DIR}/mtest report
351 +diff --git a/mtest/cmake.inc b/mtest/cmake.inc
352 +index 0fa9aa8..9ef0177 100644
353 +--- a/mtest/cmake.inc
354 ++++ b/mtest/cmake.inc
355 +@@ -57,16 +57,16 @@ set_target_properties (
356 + ${TARGET}
357 + PROPERTIES
358 + AUTOMOC true
359 +- COMPILE_FLAGS "-include all.h -D QT_GUI_LIB -D TESTROOT=\\\\\"${PROJECT_SOURCE_DIR}\\\\\" -g -Wall -Wextra"
360 +- LINK_FLAGS "-g -stdlib=libc++"
361 ++ COMPILE_FLAGS "-include all.h -D QT_GUI_LIB -D TESTROOT=\\\\\"${PROJECT_SOURCE_DIR}\\\\\" -Wall -Wextra"
362 ++ LINK_FLAGS "-stdlib=libc++"
363 + )
364 + else(APPLE)
365 + set_target_properties (
366 + ${TARGET}
367 + PROPERTIES
368 + AUTOMOC true
369 +- COMPILE_FLAGS "-include all.h -D QT_GUI_LIB -D TESTROOT=\\\"${PROJECT_SOURCE_DIR}\\\" -g -Wall -Wextra"
370 +- LINK_FLAGS "-g"
371 ++ COMPILE_FLAGS "-include all.h -D QT_GUI_LIB -D TESTROOT=\\\"${PROJECT_SOURCE_DIR}\\\" -Wall -Wextra"
372 ++ LINK_FLAGS ""
373 + )
374 + endif(APPLE)
375 +
376 +diff --git a/omr/CMakeLists.txt b/omr/CMakeLists.txt
377 +index 88615e5..d719e89 100644
378 +--- a/omr/CMakeLists.txt
379 ++++ b/omr/CMakeLists.txt
380 +@@ -42,7 +42,7 @@ add_library (
381 + set_target_properties (
382 + omr
383 + PROPERTIES
384 +- COMPILE_FLAGS "${PCH_INCLUDE} -g -Wall -Wextra -Winvalid-pch"
385 ++ COMPILE_FLAGS "${PCH_INCLUDE} -Wall -Wextra -Winvalid-pch"
386 + )
387 +
388 + xcode_pch(omr all)
389 +diff --git a/synthesizer/CMakeLists.txt b/synthesizer/CMakeLists.txt
390 +index 0520920..e9bd15b 100644
391 +--- a/synthesizer/CMakeLists.txt
392 ++++ b/synthesizer/CMakeLists.txt
393 +@@ -29,7 +29,7 @@ add_library (synthesizer STATIC
394 + set_target_properties (
395 + synthesizer
396 + PROPERTIES
397 +- COMPILE_FLAGS "${PCH_INCLUDE} -g -Wall -Wextra -Winvalid-pch"
398 ++ COMPILE_FLAGS "${PCH_INCLUDE} -Wall -Wextra -Winvalid-pch"
399 + )
400 +
401 + xcode_pch(synthesizer all)
402 +diff --git a/thirdparty/beatroot/CMakeLists.txt b/thirdparty/beatroot/CMakeLists.txt
403 +index ae905c7..9b039e8 100644
404 +--- a/thirdparty/beatroot/CMakeLists.txt
405 ++++ b/thirdparty/beatroot/CMakeLists.txt
406 +@@ -14,7 +14,7 @@ add_library (
407 +
408 + set_target_properties( beatroot
409 + PROPERTIES
410 +- COMPILE_FLAGS "${PCH_INCLUDE} -g -Wall -Wextra -Winvalid-pch"
411 ++ COMPILE_FLAGS "${PCH_INCLUDE} -Wall -Wextra -Winvalid-pch"
412 + )
413 +
414 + xcode_pch(beatroot all)
415 +diff --git a/thirdparty/diff/CMakeLists.txt b/thirdparty/diff/CMakeLists.txt
416 +index d0155b2..35bd6ac 100644
417 +--- a/thirdparty/diff/CMakeLists.txt
418 ++++ b/thirdparty/diff/CMakeLists.txt
419 +@@ -36,7 +36,7 @@ add_library(diff_match_patch STATIC
420 + set_target_properties (
421 + diff_match_patch
422 + PROPERTIES
423 +- COMPILE_FLAGS "${PCH_INCLUDE} -g -Wall -Wextra -Winvalid-pch"
424 ++ COMPILE_FLAGS "${PCH_INCLUDE} -Wall -Wextra -Winvalid-pch"
425 + )
426 +
427 + xcode_pch(diff_match_patch all)
428 +diff --git a/thirdparty/kQOAuth/CMakeLists.txt b/thirdparty/kQOAuth/CMakeLists.txt
429 +index 9beb6b1..f7ec1c5 100644
430 +--- a/thirdparty/kQOAuth/CMakeLists.txt
431 ++++ b/thirdparty/kQOAuth/CMakeLists.txt
432 +@@ -40,7 +40,7 @@ add_library(kqoauth STATIC
433 + set_target_properties (
434 + kqoauth
435 + PROPERTIES
436 +- COMPILE_FLAGS "${PCH_INCLUDE} -I ${PROJECT_SOURCE_DIR}/thirdparty/openssl/include -g -Wall -Wextra -Winvalid-pch"
437 ++ COMPILE_FLAGS "${PCH_INCLUDE} -I ${PROJECT_SOURCE_DIR}/thirdparty/openssl/include -Wall -Wextra -Winvalid-pch"
438 + )
439 +
440 + xcode_pch(kqoauth all)
441 +diff --git a/thirdparty/ofqf/CMakeLists.txt b/thirdparty/ofqf/CMakeLists.txt
442 +index fc39a0a..8c11f07 100644
443 +--- a/thirdparty/ofqf/CMakeLists.txt
444 ++++ b/thirdparty/ofqf/CMakeLists.txt
445 +@@ -36,7 +36,7 @@ add_library(ofqf STATIC
446 + set_target_properties (
447 + ofqf
448 + PROPERTIES
449 +- COMPILE_FLAGS "${PCH_INCLUDE} -g -Wall -Wextra -Winvalid-pch"
450 ++ COMPILE_FLAGS "${PCH_INCLUDE} -Wall -Wextra -Winvalid-pch"
451 + )
452 +
453 + xcode_pch(ofqf all)
454 +diff --git a/thirdparty/qzip/CMakeLists.txt b/thirdparty/qzip/CMakeLists.txt
455 +index 77b1997..417017e 100644
456 +--- a/thirdparty/qzip/CMakeLists.txt
457 ++++ b/thirdparty/qzip/CMakeLists.txt
458 +@@ -29,7 +29,7 @@ add_library(qzip STATIC
459 + set_target_properties (
460 + qzip
461 + PROPERTIES
462 +- COMPILE_FLAGS "${PCH_INCLUDE} -g -Wall -Wextra -Winvalid-pch"
463 ++ COMPILE_FLAGS "${PCH_INCLUDE} -Wall -Wextra -Winvalid-pch"
464 + )
465 +
466 + xcode_pch(qzip all)
467 +diff --git a/thirdparty/rtf2html/CMakeLists.txt b/thirdparty/rtf2html/CMakeLists.txt
468 +index 230339b..6c94a06 100644
469 +--- a/thirdparty/rtf2html/CMakeLists.txt
470 ++++ b/thirdparty/rtf2html/CMakeLists.txt
471 +@@ -37,7 +37,7 @@ add_library (
472 +
473 + set_target_properties( rtf2html
474 + PROPERTIES
475 +- COMPILE_FLAGS "${PCH_INCLUDE} -g -Wall -Wextra -Winvalid-pch"
476 ++ COMPILE_FLAGS "${PCH_INCLUDE} -Wall -Wextra -Winvalid-pch"
477 + )
478 +
479 + xcode_pch(rtf2html all)
480 +diff --git a/thirdparty/singleapp/src/CMakeLists.txt b/thirdparty/singleapp/src/CMakeLists.txt
481 +index 2504b01..936fa3f 100644
482 +--- a/thirdparty/singleapp/src/CMakeLists.txt
483 ++++ b/thirdparty/singleapp/src/CMakeLists.txt
484 +@@ -31,7 +31,7 @@ add_library (
485 + set_target_properties (
486 + qtsingleapp
487 + PROPERTIES
488 +- COMPILE_FLAGS "${PCH_INCLUDE} -g -Wall -Wextra -Winvalid-pch"
489 ++ COMPILE_FLAGS "${PCH_INCLUDE} -Wall -Wextra -Winvalid-pch"
490 + )
491 +
492 + xcode_pch(qtsingleapp all)
493 +diff --git a/thirdparty/xmlstream/CMakeLists.txt b/thirdparty/xmlstream/CMakeLists.txt
494 +index 5991e09..7f1268e 100644
495 +--- a/thirdparty/xmlstream/CMakeLists.txt
496 ++++ b/thirdparty/xmlstream/CMakeLists.txt
497 +@@ -29,7 +29,7 @@ add_library(xmlstream STATIC
498 + set_target_properties (
499 + xmlstream
500 + PROPERTIES
501 +- COMPILE_FLAGS "${PCH_INCLUDE} -g -Wall -Wextra -Winvalid-pch"
502 ++ COMPILE_FLAGS "${PCH_INCLUDE} -Wall -Wextra -Winvalid-pch"
503 + )
504 +
505 + xcode_pch(xmlstream all)
506 +diff --git a/zerberus/CMakeLists.txt b/zerberus/CMakeLists.txt
507 +index c0db571..58d8ddf 100644
508 +--- a/zerberus/CMakeLists.txt
509 ++++ b/zerberus/CMakeLists.txt
510 +@@ -31,7 +31,7 @@ add_library (zerberus STATIC
511 + set_target_properties (
512 + zerberus
513 + PROPERTIES
514 +- COMPILE_FLAGS "${PCH_INCLUDE} -g -Wall -Wextra -Winvalid-pch"
515 ++ COMPILE_FLAGS "${PCH_INCLUDE} -Wall -Wextra -Winvalid-pch"
516 + )
517 +
518 + xcode_pch(zerberus all)
519
520 diff --git a/media-sound/musescore/musescore-2.0.3.ebuild b/media-sound/musescore/musescore-2.0.3.ebuild
521 new file mode 100644
522 index 00000000..ab54ba6
523 --- /dev/null
524 +++ b/media-sound/musescore/musescore-2.0.3.ebuild
525 @@ -0,0 +1,62 @@
526 +# Copyright 1999-2016 Gentoo Foundation
527 +# Distributed under the terms of the GNU General Public License v2
528 +# $Id$
529 +
530 +EAPI=6
531 +
532 +inherit cmake-utils
533 +
534 +DESCRIPTION="WYSIWYG Music Score Typesetter"
535 +HOMEPAGE="http://musescore.org/"
536 +SRC_URI="https://github.com/musescore/MuseScore/archive/v${PV}.tar.gz -> ${P}.tar.gz"
537 +
538 +LICENSE="GPL-2"
539 +SLOT="0"
540 +KEYWORDS="~amd64 ~x86"
541 +IUSE="alsa debug jack mp3 portaudio pulseaudio"
542 +
543 +RDEPEND="
544 + dev-qt/designer:5
545 + dev-qt/qtconcurrent:5
546 + dev-qt/qtcore:5
547 + dev-qt/qtdeclarative:5
548 + dev-qt/qtgui:5
549 + dev-qt/qthelp:5
550 + dev-qt/qtprintsupport:5
551 + dev-qt/qtsvg:5
552 + dev-qt/qtwebkit:5
553 + dev-qt/qtxmlpatterns:5
554 + >=media-libs/freetype-2.5.2
555 + media-libs/libsndfile
556 + sys-libs/zlib
557 + alsa? ( >=media-libs/alsa-lib-1.0.0 )
558 + jack? ( media-sound/jack-audio-connection-kit )
559 + mp3? ( media-sound/lame )
560 + portaudio? ( media-libs/portaudio )
561 + pulseaudio? ( media-sound/pulseaudio )
562 + "
563 +DEPEND="${RDEPEND}
564 + dev-qt/linguist-tools:5
565 + virtual/pkgconfig
566 + "
567 +PATCHES=(
568 + "${FILESDIR}/${PN}-2.0.3-fix-buildsystem.patch"
569 +)
570 +S="${WORKDIR}/MuseScore-${PV}"
571 +
572 +src_configure() {
573 + local mycmakeargs=(
574 + -DBUILD_ALSA="$(usex alsa)"
575 + -DBUILD_JACK="$(usex jack)"
576 + -DBUILD_LAME="$(usex mp3)"
577 + -DBUILD_PORTAUDIO="$(usex portaudio)"
578 + -DBUILD_PULSEAUDIO="$(usex pulseaudio)"
579 + )
580 + cmake-utils_src_configure
581 +}
582 +
583 +src_compile() {
584 + cd "${BUILD_DIR}" || die
585 + cmake-utils_src_make -j1 lrelease manpages
586 + cmake-utils_src_compile
587 +}