summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2009-05-01 11:45:10 +0000
committerTomas Chvatal <scarabeus@gentoo.org>2009-05-01 11:45:10 +0000
commit07eddb44cbd5ba1e2426050136add51b0e54e814 (patch)
tree3da5927b49adfd5b68e871488a61fd64295b978e /kde-misc/kshutdown
parentMake gconf cross-compilable, bug #262747. Kill gconf-2.26 warning, bug #26807... (diff)
downloadgentoo-2-07eddb44cbd5ba1e2426050136add51b0e54e814.tar.gz
gentoo-2-07eddb44cbd5ba1e2426050136add51b0e54e814.tar.bz2
gentoo-2-07eddb44cbd5ba1e2426050136add51b0e54e814.zip
Version bump. Add cmakelists.txt that is correctly parsing the translations.
(Portage version: 2.2_rc31/cvs/Linux x86_64)
Diffstat (limited to 'kde-misc/kshutdown')
-rw-r--r--kde-misc/kshutdown/ChangeLog12
-rw-r--r--kde-misc/kshutdown/files/CMakeLists.txt25
-rw-r--r--kde-misc/kshutdown/kshutdown-2.0_beta6.ebuild (renamed from kde-misc/kshutdown/kshutdown-2.0_beta4.ebuild)6
3 files changed, 39 insertions, 4 deletions
diff --git a/kde-misc/kshutdown/ChangeLog b/kde-misc/kshutdown/ChangeLog
index 291ff3e2666f..196bcd9faeb7 100644
--- a/kde-misc/kshutdown/ChangeLog
+++ b/kde-misc/kshutdown/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for kde-misc/kshutdown
-# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/kde-misc/kshutdown/ChangeLog,v 1.15 2009/04/06 11:43:04 scarabeus Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/kde-misc/kshutdown/ChangeLog,v 1.16 2009/05/01 11:45:10 scarabeus Exp $
+
+*kshutdown-2.0_beta6 (01 May 2009)
+
+ 01 May 2009; Tomas Chvatal <scarabeus@gentoo.org>
+ -kshutdown-2.0_beta4.ebuild, +kshutdown-2.0_beta6.ebuild,
+ +files/CMakeLists.txt:
+ Version bump. Add cmakelists.txt that is correctly parsing the
+ translations.
06 Apr 2009; Tomas Chvatal <scarabeus@gentoo.org>
kshutdown-2.0_beta4.ebuild:
diff --git a/kde-misc/kshutdown/files/CMakeLists.txt b/kde-misc/kshutdown/files/CMakeLists.txt
new file mode 100644
index 000000000000..bc7e26efa882
--- /dev/null
+++ b/kde-misc/kshutdown/files/CMakeLists.txt
@@ -0,0 +1,25 @@
+###############################################################################
+# WE NEED GETTEXT
+##############################################################################
+MESSAGE ( STATUS "<Locating Gettext>" )
+FIND_PACKAGE ( Gettext REQUIRED )
+INCLUDE_DIRECTORIES ( ${GETTEXT_INCLUDE_DIR} )
+FILE ( GLOB _po_files *.po )
+SET ( _gmoFiles )
+###############################################################################
+# CREATE .MO FOR EACH .PO
+###############################################################################
+FOREACH ( _current_PO_FILE ${_po_files} )
+ GET_FILENAME_COMPONENT( _lang ${_current_PO_FILE} NAME_WE )
+ SET( _gmoFile ${CMAKE_BINARY_DIR}/po/${_lang}.mo )
+ add_custom_command( OUTPUT ${_gmoFile}
+ COMMAND ${GETTEXT_MSGFMT_EXECUTABLE} -o ${_gmoFile} ${_current_PO_FILE}
+ WORKING_DIRECTORY "${CMAKE_BINARY_DIR}"
+ DEPENDS ${_current_PO_FILE}
+ )
+ INSTALL ( FILES ${CMAKE_BINARY_DIR}/po/${_lang}.mo
+ DESTINATION ${LOCALE_INSTALL_DIR}/${_lang}/LC_MESSAGES/ RENAME kshutdown.mo )
+ LIST(APPEND _gmoFiles ${_gmoFile})
+ENDFOREACH(_current_PO_FILE)
+ADD_CUSTOM_TARGET(pofiles ALL DEPENDS ${_gmoFiles})
+###############################################################################
diff --git a/kde-misc/kshutdown/kshutdown-2.0_beta4.ebuild b/kde-misc/kshutdown/kshutdown-2.0_beta6.ebuild
index 97dcdf15a0bd..938aaf492e1e 100644
--- a/kde-misc/kshutdown/kshutdown-2.0_beta4.ebuild
+++ b/kde-misc/kshutdown/kshutdown-2.0_beta6.ebuild
@@ -1,10 +1,10 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/kde-misc/kshutdown/kshutdown-2.0_beta4.ebuild,v 1.2 2009/04/06 11:43:04 scarabeus Exp $
+# $Header: /var/cvsroot/gentoo-x86/kde-misc/kshutdown/kshutdown-2.0_beta6.ebuild,v 1.1 2009/05/01 11:45:10 scarabeus Exp $
EAPI="2"
-KDE_LINGUAS="ar bg cs de el es fr hu it nl no pl pt_BR ru sk sv tr zh_CN"
+KDE_LINGUAS="ar bg cs de el es fr hu it nb nl pl pt_BR ru sk sr sr@Latn sv tr zh_CN"
inherit kde4-base
MY_P="${PN}-source-${PV/_/}"
@@ -25,5 +25,7 @@ S="${WORKDIR}"/"${P/_/}"
src_prepare() {
# remove precompiled crap
rm -rf "${S}"/po/*.mo
+ # use our own cmake for locales
+ cp "${FILESDIR}"/CMakeLists.txt "${S}"/po/
kde4-base_src_prepare
}