summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound/qmpdclient/qmpdclient-1.1.0-r1.ebuild')
-rw-r--r--media-sound/qmpdclient/qmpdclient-1.1.0-r1.ebuild19
1 files changed, 16 insertions, 3 deletions
diff --git a/media-sound/qmpdclient/qmpdclient-1.1.0-r1.ebuild b/media-sound/qmpdclient/qmpdclient-1.1.0-r1.ebuild
index 5f3654fb3dc3..ab67e1fefd34 100644
--- a/media-sound/qmpdclient/qmpdclient-1.1.0-r1.ebuild
+++ b/media-sound/qmpdclient/qmpdclient-1.1.0-r1.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/media-sound/qmpdclient/qmpdclient-1.1.0-r1.ebuild,v 1.1 2009/04/20 23:35:15 hwoarang Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/qmpdclient/qmpdclient-1.1.0-r1.ebuild,v 1.2 2009/04/21 12:13:36 hwoarang Exp $
EAPI="2"
@@ -21,6 +21,12 @@ IUSE="debug"
DEPEND="x11-libs/qt-gui:4[dbus]"
RDEPEND="${DEPEND}"
+LANGS="de_DE fr_FR it_IT nl_NL nn_NO no_NO pt_BR ru_RU sv_SE tr_TR uk_UA zh_CN zh_TW"
+
+for X in ${LANGS}; do
+ IUSE="${IUSE} linguas_${X%_*}"
+done
+
S="${WORKDIR}/${MY_P}"
src_prepare() {
@@ -57,7 +63,14 @@ src_install() {
make_desktop_entry qmpdclient-ne "QMPDClient-ne" ${PN} \
"Qt;AudioVideo;Audio;" || die "Installing desktop entry failed"
- # Install translations
+ #install translations
insinto /usr/share/QMPDClient/translations/
- doins -r lang/*.qm || die "failed to install translations"
+ local LANG=
+ for LANG in ${LINGUAS};do
+ for X in ${LANGS};do
+ if [[ ${LANG} == ${X%_*} ]];then
+ doins -r lang/${X}.qm || die "failed to install translations"
+ fi
+ done
+ done
}