From: | "Mike Frysinger (vapier)" <vapier@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in games-arcade/performous/files: performous-0.6.1-linguas.patch |
Date: | Mon, 05 Mar 2012 21:47:30 |
Message-Id: | 20120305214720.739342004C@flycatcher.gentoo.org |
1 | vapier 12/03/05 21:47:20 |
2 | |
3 | Added: performous-0.6.1-linguas.patch |
4 | Log: |
5 | Clean up ebuild. |
6 | |
7 | (Portage version: 2.2.0_alpha86/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 games-arcade/performous/files/performous-0.6.1-linguas.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-arcade/performous/files/performous-0.6.1-linguas.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-arcade/performous/files/performous-0.6.1-linguas.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: performous-0.6.1-linguas.patch |
16 | =================================================================== |
17 | --- lang/CMakeLists.txt |
18 | +++ lang/CMakeLists.txt |
19 | @@ -7,5 +7,11 @@ |
20 | set(mofile ${CMAKE_CURRENT_BINARY_DIR}/${language}.mo) |
21 | add_custom_command(OUTPUT ${mofile} COMMAND ${Msgfmt_BIN} -v "${pofile}" -o ${mofile} MAIN_DEPENDENCY ${pofile} COMMENT "Building ${language} locale" VERBATIM) |
22 | add_custom_target(locale_${language} ALL DEPENDS ${mofile}) # Make sure the mofiles are always built |
23 | - install(FILES ${mofile} DESTINATION ${LOCALE_DIR}/${language}/LC_MESSAGES RENAME ${CMAKE_PROJECT_NAME}.mo) |
24 | endforeach(language) |
25 | +foreach(language $ENV{LINGUAS}) |
26 | + set(pofile ${CMAKE_CURRENT_SOURCE_DIR}/${language}.po) |
27 | + if (EXISTS ${pofile}) |
28 | + set(mofile ${CMAKE_CURRENT_BINARY_DIR}/${language}.mo) |
29 | + install(FILES ${mofile} DESTINATION ${LOCALE_DIR}/${language}/LC_MESSAGES RENAME ${CMAKE_PROJECT_NAME}.mo) |
30 | + endif() |
31 | +endforeach(language) |