summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkos Chandras <hwoarang@gentoo.org>2009-07-14 19:07:22 +0000
committerMarkos Chandras <hwoarang@gentoo.org>2009-07-14 19:07:22 +0000
commit26fd3d23131ce3ebaa465af56177eb5c3f462adf (patch)
treeabed2fcf801fe27a047dd4e8651a0de943ec8f11 /net-im/qtwitter
parentVersion bump (diff)
downloadgentoo-2-26fd3d23131ce3ebaa465af56177eb5c3f462adf.tar.gz
gentoo-2-26fd3d23131ce3ebaa465af56177eb5c3f462adf.tar.bz2
gentoo-2-26fd3d23131ce3ebaa465af56177eb5c3f462adf.zip
Fix linguas
(Portage version: 2.2_rc33/cvs/Linux x86_64)
Diffstat (limited to 'net-im/qtwitter')
-rw-r--r--net-im/qtwitter/ChangeLog5
-rw-r--r--net-im/qtwitter/qtwitter-0.8.0.ebuild17
2 files changed, 16 insertions, 6 deletions
diff --git a/net-im/qtwitter/ChangeLog b/net-im/qtwitter/ChangeLog
index 9ce58b9b0b2b..1c7ccd84fba5 100644
--- a/net-im/qtwitter/ChangeLog
+++ b/net-im/qtwitter/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for net-im/qtwitter
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/qtwitter/ChangeLog,v 1.7 2009/07/14 19:03:01 hwoarang Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-im/qtwitter/ChangeLog,v 1.8 2009/07/14 19:07:22 hwoarang Exp $
+
+ 14 Jul 2009; Markos Chandras <hwoarang@gentoo.org> qtwitter-0.8.0.ebuild:
+ Fix linguas
*qtwitter-0.8.0 (14 Jul 2009)
diff --git a/net-im/qtwitter/qtwitter-0.8.0.ebuild b/net-im/qtwitter/qtwitter-0.8.0.ebuild
index 12637430095d..863ad5fc4a15 100644
--- a/net-im/qtwitter/qtwitter-0.8.0.ebuild
+++ b/net-im/qtwitter/qtwitter-0.8.0.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/qtwitter/qtwitter-0.8.0.ebuild,v 1.1 2009/07/14 19:03:01 hwoarang Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-im/qtwitter/qtwitter-0.8.0.ebuild,v 1.2 2009/07/14 19:07:22 hwoarang Exp $
EAPI="2"
@@ -19,8 +19,15 @@ DEPEND="x11-libs/qt-gui:4
oauth? ( dev-libs/qoauth )"
RDEPEND="${DEPEND}"
-LANGS="pt_BR"
-LANGSLONG="ca_ES de_DE es_ES fr_FR it_IT ja_JP pl_PL"
+QTWITTER_LANGS="pt_BR"
+QTWITTER_NOLONGLANGS="ca_ES de_DE es_ES fr_FR ja_JP pl_PL"
+
+for L in $QTWITTER_LANGS; do
+ IUSE="$IUSE linguas_$L"
+done
+for L in $QTWITTER_NOLONGLANGS; do
+ IUSE="$IUSE linguas_${L%_*}"
+done
src_prepare() {
qt4_src_prepare
@@ -28,10 +35,10 @@ src_prepare() {
local langs=
for lingua in $LINGUAS; do
- if has $lingua $LANGS; then
+ if has $lingua $QTWITTER_LANGS; then
langs="$langs loc/${PN}_${lingua}.ts"
else
- for a in $LANGSLONG; do
+ for a in $QTWITTER_NOLONGLANGS; do
if [[ $lingua == ${a%_*} ]]; then
langs="$langs loc/${PN}_${a}.ts"
fi