diff options
author | Markos Chandras <hwoarang@gentoo.org> | 2009-04-21 12:13:36 +0000 |
---|---|---|
committer | Markos Chandras <hwoarang@gentoo.org> | 2009-04-21 12:13:36 +0000 |
commit | 89dbe35000e5ff6fc9e47468a5c046f9534544ca (patch) | |
tree | 7c5cda198c3d44d924be8020f277dec1a7ce8190 /media-sound/qmpdclient | |
parent | Fix 0.1.2-r1 to build with newer autotools, bug 266934. (diff) | |
download | gentoo-2-89dbe35000e5ff6fc9e47468a5c046f9534544ca.tar.gz gentoo-2-89dbe35000e5ff6fc9e47468a5c046f9534544ca.tar.bz2 gentoo-2-89dbe35000e5ff6fc9e47468a5c046f9534544ca.zip |
Use linguas use flag for translations
(Portage version: 2.2_rc31/cvs/Linux x86_64)
Diffstat (limited to 'media-sound/qmpdclient')
-rw-r--r-- | media-sound/qmpdclient/ChangeLog | 5 | ||||
-rw-r--r-- | media-sound/qmpdclient/qmpdclient-1.1.0-r1.ebuild | 19 |
2 files changed, 20 insertions, 4 deletions
diff --git a/media-sound/qmpdclient/ChangeLog b/media-sound/qmpdclient/ChangeLog index 8bb5b32ca306..94ab81b144f1 100644 --- a/media-sound/qmpdclient/ChangeLog +++ b/media-sound/qmpdclient/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for media-sound/qmpdclient # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/qmpdclient/ChangeLog,v 1.37 2009/04/20 23:35:15 hwoarang Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/qmpdclient/ChangeLog,v 1.38 2009/04/21 12:13:36 hwoarang Exp $ + + 21 Apr 2009; Markos Chandras <hwoarang@gentoo.org> qmpdclient-1.1.0-r1: + Use linguas use flag for translations *qmpdclient-1.1.0-r1 (21 Apr 2009) 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 } |