summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkos Chandras <hwoarang@gentoo.org>2009-10-22 18:28:26 +0000
committerMarkos Chandras <hwoarang@gentoo.org>2009-10-22 18:28:26 +0000
commit236b21ebb4a0bcb897dc4b776b3f52166cb7b79e (patch)
treeb1c27545dfb46a503300f853e2afcd42e17a1640 /media-sound/qmpdclient
parentAutomated update of use.local.desc (diff)
downloadhistorical-236b21ebb4a0bcb897dc4b776b3f52166cb7b79e.tar.gz
historical-236b21ebb4a0bcb897dc4b776b3f52166cb7b79e.tar.bz2
historical-236b21ebb4a0bcb897dc4b776b3f52166cb7b79e.zip
Fix translations installation. Fixes bug #289717
Package-Manager: portage-2.2_rc46/cvs/Linux x86_64
Diffstat (limited to 'media-sound/qmpdclient')
-rw-r--r--media-sound/qmpdclient/ChangeLog8
-rw-r--r--media-sound/qmpdclient/Manifest3
-rw-r--r--media-sound/qmpdclient/qmpdclient-1.1.1-r1.ebuild95
3 files changed, 104 insertions, 2 deletions
diff --git a/media-sound/qmpdclient/ChangeLog b/media-sound/qmpdclient/ChangeLog
index 1d8d5f8178f1..202a0935390e 100644
--- a/media-sound/qmpdclient/ChangeLog
+++ b/media-sound/qmpdclient/ChangeLog
@@ -1,6 +1,12 @@
# 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.54 2009/10/07 18:37:53 nixnut Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/qmpdclient/ChangeLog,v 1.55 2009/10/22 18:28:26 hwoarang Exp $
+
+*qmpdclient-1.1.1-r1 (22 Oct 2009)
+
+ 22 Oct 2009; Markos Chandras <hwoarang@gentoo.org>
+ +qmpdclient-1.1.1-r1.ebuild:
+ Fix translations installation. Fixes bug #289717
07 Oct 2009; nixnut <nixnut@gentoo.org> qmpdclient-1.1.1.ebuild:
ppc stable #287541
diff --git a/media-sound/qmpdclient/Manifest b/media-sound/qmpdclient/Manifest
index e0486d116e10..e4a2221f7121 100644
--- a/media-sound/qmpdclient/Manifest
+++ b/media-sound/qmpdclient/Manifest
@@ -1,6 +1,7 @@
DIST qmpdclient-1.1.1.tar.gz 354318 RMD160 34a31a5e97a426de454b1a581f2f2a25a64e198b SHA1 abc14402b0d8b7b10c310d44935816076fa6b0a2 SHA256 215d3d0c41d688bf13ab3bdbfb66bcffdacd4f7c16f024f2ce6cd9dc622e5f0a
DIST qmpdclient-ne-1.1.0.tar.gz 336376 RMD160 d159486480cdc1a5cdb6f91340bdafb7c826608c SHA1 c2379d97ba424d02346c7df0b6b1370eefa7889c SHA256 e46da10a8035e25d6e0b8b383d85d2712764042fae537196a92c2f6e8610cd53
EBUILD qmpdclient-1.1.0-r3.ebuild 2649 RMD160 eff7fed401df9d349ffc85d9df9469e43eb45ef1 SHA1 9f1589871d8500a1ceda03fb81a4657afdb8ab56 SHA256 42b374732fd5edb91ad78a2ac17d993ff258747555971e584732b86c99b84c45
+EBUILD qmpdclient-1.1.1-r1.ebuild 2629 RMD160 6658e6655074a667666cc041023e199362f44675 SHA1 54c841c41b4c5fba0f64097fec2833299c121582 SHA256 524c8e6725e01670f7aaf3a4d324393f4ef00d94f5d3dab2216657210b08ab71
EBUILD qmpdclient-1.1.1.ebuild 2532 RMD160 1f2fd9f5db4bdb17d2734db2b45118d5eec93100 SHA1 e0528f79798707ef843ac778454b21d31394bf93 SHA256 1c51e9eeb02d15a02b2be88e05903ba0b346aef0f22a8735571a9262f5b71ff2
-MISC ChangeLog 8187 RMD160 df132bcb7dc61c39f1c1b65d80beecb7929a4c00 SHA1 02625949e39cde67bf94316a7666bb134bdba42a SHA256 dbe8c10c8641758d689c5ecd87f1068307d9c520da3095f7c2b6b09d9b116ae1
+MISC ChangeLog 8361 RMD160 39ca3fadaa4e30e30fb19d43e073a244a9d94c0e SHA1 8f11028282a38f05a8ef2d25c3609a05779ba5f9 SHA256 c109f280f674ba6822fbdcee71d56a92c20a14b490294dea2e139b3fc42a2270
MISC metadata.xml 258 RMD160 f32ba62126b21562a3642f9d351eec482fa91c19 SHA1 c9dcd2a5a50ab150a1ddd117357dd705c4d05e77 SHA256 3f6828f13a57795ebfa18907e3cb7a9bf80b7be961ab0b198ec135762e90c723
diff --git a/media-sound/qmpdclient/qmpdclient-1.1.1-r1.ebuild b/media-sound/qmpdclient/qmpdclient-1.1.1-r1.ebuild
new file mode 100644
index 000000000000..ec26a899b282
--- /dev/null
+++ b/media-sound/qmpdclient/qmpdclient-1.1.1-r1.ebuild
@@ -0,0 +1,95 @@
+# 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.1-r1.ebuild,v 1.1 2009/10/22 18:28:26 hwoarang Exp $
+
+EAPI="2"
+
+inherit qt4
+
+DESCRIPTION="QMPDClient with NBL additions, such as lyrics' display"
+HOMEPAGE="http://bitcheese.net/wiki/QMPDClient"
+SRC_URI="mirror://gentoo/${P}.tar.gz
+ http://dev.gentoo.org/~hwoarang/distfiles/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86"
+IUSE="debug dbus"
+
+DEPEND="x11-libs/qt-gui:4[dbus?,debug?]"
+RDEPEND="${DEPEND}"
+
+LANGSNOLONG="cs_CZ de_DE fr_FR it_IT nl_NL nn_NO no_NO ru_RU sv_SE tr_TR uk_UA"
+LANGS="zh_CN zh_TW pt_BR "
+
+for X in ${LANGSNOLONG}; do
+ IUSE="${IUSE} linguas_${X%_*}"
+done
+
+for X in ${LANGS};do
+ IUSE="${IUSE} linguas_${X}"
+done
+
+src_prepare() {
+ # Fix the install path
+ sed -i -e "s:PREFIX = /usr/local:PREFIX = /usr:" qmpdclient.pro \
+ || die "sed failed (install path)"
+
+ # nostrip fix
+ sed -i -e "s:CONFIG += :CONFIG += nostrip :" qmpdclient.pro \
+ || die "sed failed (nostrip)"
+
+ 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"
+
+ # check dbus
+ if ! use dbus; then
+ sed -i -e "s/message(DBus notifier:\ enabled)/message(DBus notifier:\ disabled)/" \
+ -e "s/CONFIG\ +=\ nostrip\ qdbus//" \
+ -e "s/SOURCES\ +=\ src\/notifications_dbus.cpp/SOURCES\ +=\ src\/notifications_nodbus.cpp/" \
+ ${PN}.pro || die "disabling dbus failed"
+ fi
+}
+
+src_configure() {
+ eqmake4 qmpdclient.pro
+}
+
+src_compile() {
+ emake || die "emake failed"
+ # generate translations
+ emake translate || die "failed to generate translations"
+ cd "${S}"/lang
+ for X in *.ts;do
+ lrelease "${X}" || die "lrelease failed"
+ done
+}
+
+src_install() {
+ emake install INSTALL_ROOT="${D}" || die "emake install failed"
+ dodoc README AUTHORS THANKSTO Changelog || die "Installing docs failed"
+ for res in 16 22 64 ; do
+ insinto /usr/share/icons/hicolor/${res}x${res}/apps/
+ newins icons/qmpdclient${res}.png ${PN}.png || die "Installing icons failed"
+ done
+
+ #install translations
+ insinto /usr/share/${PN}/translations/
+ local LANG=
+ for LANG in ${LINGUAS};do
+ for X in ${LANGSNOLONG};do
+ if [[ ${LANG} == ${X%_*} ]];then
+ doins -r lang/${X}.qm || die "failed to install translations"
+ fi
+ done
+ for X in ${LANGS};do
+ if [[ ${LANG} == ${X} ]]; then
+ doins -r lang/${X}.qm || die "failed to install translations"
+ fi
+ done
+ done
+}