summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen de Groot <yngwin@gentoo.org>2012-07-26 07:27:25 +0000
committerBen de Groot <yngwin@gentoo.org>2012-07-26 07:27:25 +0000
commit3aedc73073c64d36c49adf5a414bc24750c9b66e (patch)
treea71c8f4310bd02038ecadc47b75fe2a2f0ba40c6 /net-im/qtwitter
parentAdd locales needed for qtwitter (diff)
downloadgentoo-2-3aedc73073c64d36c49adf5a414bc24750c9b66e.tar.gz
gentoo-2-3aedc73073c64d36c49adf5a414bc24750c9b66e.tar.bz2
gentoo-2-3aedc73073c64d36c49adf5a414bc24750c9b66e.zip
Use l10n.eclass for handling locales.
(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)
Diffstat (limited to 'net-im/qtwitter')
-rw-r--r--net-im/qtwitter/ChangeLog7
-rw-r--r--net-im/qtwitter/metadata.xml4
-rw-r--r--net-im/qtwitter/qtwitter-0.10.0-r1.ebuild23
3 files changed, 12 insertions, 22 deletions
diff --git a/net-im/qtwitter/ChangeLog b/net-im/qtwitter/ChangeLog
index f9804e990fef..14c475084fe6 100644
--- a/net-im/qtwitter/ChangeLog
+++ b/net-im/qtwitter/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-im/qtwitter
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/qtwitter/ChangeLog,v 1.30 2012/06/04 11:28:54 johu Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-im/qtwitter/ChangeLog,v 1.31 2012/07/26 07:27:25 yngwin Exp $
+
+ 26 Jul 2012; Ben de Groot <yngwin@gentoo.org> metadata.xml,
+ qtwitter-0.10.0-r1.ebuild:
+ Use l10n.eclass for handling locales.
04 Jun 2012; Johannes Huber <johu@gentoo.org> -qtwitter-0.10.0.ebuild:
Remove old.
@@ -138,4 +142,3 @@
+qtwitter-0.6.0-r1.ebuild:
Initial commit for qtwitter application. Thanks to Dominik Kapusta
<d@ayoy.net> for the ebuild and for writting this great application. Fixes bug #259293
-
diff --git a/net-im/qtwitter/metadata.xml b/net-im/qtwitter/metadata.xml
index 1d7818888617..3c9437f319df 100644
--- a/net-im/qtwitter/metadata.xml
+++ b/net-im/qtwitter/metadata.xml
@@ -1,8 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<herd>qt</herd>
-<longdescription lang="en">
-</longdescription>
+ <herd>qt</herd>
</pkgmetadata>
diff --git a/net-im/qtwitter/qtwitter-0.10.0-r1.ebuild b/net-im/qtwitter/qtwitter-0.10.0-r1.ebuild
index dfc9f9bafd02..85f01679a57e 100644
--- a/net-im/qtwitter/qtwitter-0.10.0-r1.ebuild
+++ b/net-im/qtwitter/qtwitter-0.10.0-r1.ebuild
@@ -1,13 +1,11 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/qtwitter/qtwitter-0.10.0-r1.ebuild,v 1.3 2012/06/04 11:26:11 johu Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-im/qtwitter/qtwitter-0.10.0-r1.ebuild,v 1.4 2012/07/26 07:27:25 yngwin Exp $
EAPI=4
+PLOCALES="ca_ES cs_CZ de_DE es_ES fr_FR it_IT ja_JP nb_NO pl_PL pt_BR"
-LANGS="nb_NO pt_BR"
-LANGSLONG="ca_ES cs_CZ de_DE es_ES fr_FR it_IT ja_JP pl_PL"
-
-inherit qt4-r2
+inherit l10n qt4-r2
DESCRIPTION="A Qt-based microblogging client"
HOMEPAGE="http://www.qt-apps.org/content/show.php/qTwitter?content=99087"
@@ -33,19 +31,10 @@ src_prepare() {
echo "CONFIG += nostrip" >> "${S}"/${PN}.pro
- local langs=
- for lingua in $LINGUAS; do
- if has $lingua $LANGS; then
- langs="$langs ${lingua}"
- else
- for a in $LANGSLONG; do
- if [[ $lingua == ${a%_*} ]]; then
- langs="$langs ${a}"
- fi
- done
- fi
- done
+ l10n_find_plocales_changes "${S}/translations" '${PN}' '.ts'
+ local langs
+ langs="$(l10n_get_locales)"
# remove translations and add only the selected ones
sed -e '/^ *LANGS/,/^$/s/^/#/' \
-e "/LANGS =/s/.*/LANGS = ${langs}/" \