diff options
author | Markos Chandras <hwoarang@gentoo.org> | 2009-04-21 16:01:14 +0000 |
---|---|---|
committer | Markos Chandras <hwoarang@gentoo.org> | 2009-04-21 16:01:14 +0000 |
commit | 5d6881b8e2b6c8dc454d56d31fd6c60aaf667ee9 (patch) | |
tree | bc868f7e0af9a3fd3e93de107a6055028fbeef40 /media-sound | |
parent | fix nm 0.7 to look for dhclient.conf in the correct place on gentoo (diff) | |
download | gentoo-2-5d6881b8e2b6c8dc454d56d31fd6c60aaf667ee9.tar.gz gentoo-2-5d6881b8e2b6c8dc454d56d31fd6c60aaf667ee9.tar.bz2 gentoo-2-5d6881b8e2b6c8dc454d56d31fd6c60aaf667ee9.zip |
Fix install directory, more fixes on translations
(Portage version: 2.2_rc31/cvs/Linux x86_64)
Diffstat (limited to 'media-sound')
-rw-r--r-- | media-sound/qmpdclient/ChangeLog | 5 | ||||
-rw-r--r-- | media-sound/qmpdclient/qmpdclient-1.1.0-r1.ebuild | 26 |
2 files changed, 24 insertions, 7 deletions
diff --git a/media-sound/qmpdclient/ChangeLog b/media-sound/qmpdclient/ChangeLog index 94ab81b144f1..7d07c92e4e27 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.38 2009/04/21 12:13:36 hwoarang Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/qmpdclient/ChangeLog,v 1.39 2009/04/21 16:01:14 hwoarang Exp $ + + 21 Apr 2009; Markos Chandras <hwoarang@gentoo.org> qmpdclient-1.1.0-r1: + Fix install directory, more fixes on translations 21 Apr 2009; Markos Chandras <hwoarang@gentoo.org> qmpdclient-1.1.0-r1: Use linguas use flag for translations diff --git a/media-sound/qmpdclient/qmpdclient-1.1.0-r1.ebuild b/media-sound/qmpdclient/qmpdclient-1.1.0-r1.ebuild index ab67e1fefd34..57b9f3b0daac 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.2 2009/04/21 12:13:36 hwoarang Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/qmpdclient/qmpdclient-1.1.0-r1.ebuild,v 1.3 2009/04/21 16:01:14 hwoarang Exp $ EAPI="2" @@ -21,12 +21,17 @@ 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" +LANGS="de_DE fr_FR it_IT nl_NL nn_NO no_NO ru_RU sv_SE tr_TR uk_UA" +LANGSLONG="zh_CN zh_TW pt_BR" for X in ${LANGS}; do IUSE="${IUSE} linguas_${X%_*}" done +for X in ${LANGSLONG};do + IUSE="${IUSE} linguas_${X}" +done + S="${WORKDIR}/${MY_P}" src_prepare() { @@ -40,6 +45,10 @@ src_prepare() { sed -i -e "s:+= -O2 -g0 -s:+= -O2 -g0:" qmpdclient.pro \ || die "sed failed (nostrip)" + + # fix installation folder name + sed -i "s/share\/QMPDClient/share\/qmpdclient/" src/config.cpp \ + || die "failed to fix installation directory" } src_configure() { @@ -64,13 +73,18 @@ src_install() { "Qt;AudioVideo;Audio;" || die "Installing desktop entry failed" #install translations - insinto /usr/share/QMPDClient/translations/ + insinto /usr/share/${PN}/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 + if [[ ${LANG} == ${X%_*} ]];then + doins -r lang/${X}.qm || die "failed to install translations" + fi done + for X in ${LANGSLONG};do + if [[ ${LANG} == ${X} ]]; then + doins -r lang/${X}.qm || die "failed to install translations" + fi + done done } |