* [gentoo-commits] gentoo-x86 commit in media-sound/kid3/files: kid3-3.0.1-empty-linguas.patch
@ 2013-11-25 16:59 Johannes Huber (johu)
0 siblings, 0 replies; only message in thread
From: Johannes Huber (johu) @ 2013-11-25 16:59 UTC (permalink / raw
To: gentoo-commits
johu 13/11/25 16:59:48
Added: kid3-3.0.1-empty-linguas.patch
Log:
Add upstream patch which fixes build when LINGUAS is empty, bug #492460.
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key F3CFD2BD)
Revision Changes Path
1.1 media-sound/kid3/files/kid3-3.0.1-empty-linguas.patch
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
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
Index: kid3-3.0.1-empty-linguas.patch
===================================================================
commit 94f91f422fbbaaa4af7e46cdaf8fb55c5f675b93
Author: Urs Fleisch <ufleisch@users.sourceforge.net>
Date: Mon Nov 25 07:55:53 2013 +0100
Enable building with all translations disabled, [bugs:#84].
In Gentoo, it is possible to disable linguas by renaming them from
.po to .po.old. If all po files are disabled this way, cmake failed.
diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt
index f036ea6..6cd9fdb 100644
--- a/po/CMakeLists.txt
+++ b/po/CMakeLists.txt
@@ -22,13 +22,15 @@ if (APPLE OR WIN32)
endforeach (_currentPoFile)
endif (APPLE OR WIN32)
-add_custom_command(
- OUTPUT ${_tsFiles}
- COMMAND ${PERL_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/po2ts.pl
- ${QT_LUPDATE_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}
- ${CMAKE_CURRENT_SOURCE_DIR}/../src
- DEPENDS ${_poFiles}
-)
+if (_tsFiles)
+ add_custom_command(
+ OUTPUT ${_tsFiles}
+ COMMAND ${PERL_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/po2ts.pl
+ ${QT_LUPDATE_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/../src
+ DEPENDS ${_poFiles}
+ )
+endif (_tsFiles)
if (APPLE OR WIN32)
qt4_add_translation(_qmFiles ${_tsFiles} ${_qtTsFiles})
add_custom_target(translations "ALL" DEPENDS ${_qmFiles})
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-11-25 16:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-25 16:59 [gentoo-commits] gentoo-x86 commit in media-sound/kid3/files: kid3-3.0.1-empty-linguas.patch Johannes Huber (johu)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox