1 |
johu 13/11/25 16:59:48 |
2 |
|
3 |
Added: kid3-3.0.1-empty-linguas.patch |
4 |
Log: |
5 |
Add upstream patch which fixes build when LINGUAS is empty, bug #492460. |
6 |
|
7 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key F3CFD2BD) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 media-sound/kid3/files/kid3-3.0.1-empty-linguas.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/kid3/files/kid3-3.0.1-empty-linguas.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/kid3/files/kid3-3.0.1-empty-linguas.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: kid3-3.0.1-empty-linguas.patch |
16 |
=================================================================== |
17 |
commit 94f91f422fbbaaa4af7e46cdaf8fb55c5f675b93 |
18 |
Author: Urs Fleisch <ufleisch@×××××××××××××××××.net> |
19 |
Date: Mon Nov 25 07:55:53 2013 +0100 |
20 |
|
21 |
Enable building with all translations disabled, [bugs:#84]. |
22 |
|
23 |
In Gentoo, it is possible to disable linguas by renaming them from |
24 |
.po to .po.old. If all po files are disabled this way, cmake failed. |
25 |
|
26 |
diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt |
27 |
index f036ea6..6cd9fdb 100644 |
28 |
--- a/po/CMakeLists.txt |
29 |
+++ b/po/CMakeLists.txt |
30 |
@@ -22,13 +22,15 @@ if (APPLE OR WIN32) |
31 |
endforeach (_currentPoFile) |
32 |
endif (APPLE OR WIN32) |
33 |
|
34 |
-add_custom_command( |
35 |
- OUTPUT ${_tsFiles} |
36 |
- COMMAND ${PERL_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/po2ts.pl |
37 |
- ${QT_LUPDATE_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR} |
38 |
- ${CMAKE_CURRENT_SOURCE_DIR}/../src |
39 |
- DEPENDS ${_poFiles} |
40 |
-) |
41 |
+if (_tsFiles) |
42 |
+ add_custom_command( |
43 |
+ OUTPUT ${_tsFiles} |
44 |
+ COMMAND ${PERL_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/po2ts.pl |
45 |
+ ${QT_LUPDATE_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR} |
46 |
+ ${CMAKE_CURRENT_SOURCE_DIR}/../src |
47 |
+ DEPENDS ${_poFiles} |
48 |
+ ) |
49 |
+endif (_tsFiles) |
50 |
if (APPLE OR WIN32) |
51 |
qt4_add_translation(_qmFiles ${_tsFiles} ${_qtTsFiles}) |
52 |
add_custom_target(translations "ALL" DEPENDS ${_qmFiles}) |