summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound/qmpdclient')
-rw-r--r--media-sound/qmpdclient/ChangeLog8
-rw-r--r--media-sound/qmpdclient/qmpdclient-1.1.1.ebuild95
2 files changed, 102 insertions, 1 deletions
diff --git a/media-sound/qmpdclient/ChangeLog b/media-sound/qmpdclient/ChangeLog
index a1ce87ec1cc1..1a580a69606e 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.50 2009/06/09 19:10:38 fauli Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/qmpdclient/ChangeLog,v 1.51 2009/06/26 10:09:53 hwoarang Exp $
+
+*qmpdclient-1.1.1 (26 Jun 2009)
+
+ 26 Jun 2009; Markos Chandras <hwoarang@gentoo.org>
+ +qmpdclient-1.1.1.ebuild:
+ Version bump, ebuild clean up
09 Jun 2009; Christian Faulhammer <fauli@gentoo.org>
qmpdclient-1.1.0-r3.ebuild:
diff --git a/media-sound/qmpdclient/qmpdclient-1.1.1.ebuild b/media-sound/qmpdclient/qmpdclient-1.1.1.ebuild
new file mode 100644
index 000000000000..1ab2c93cad35
--- /dev/null
+++ b/media-sound/qmpdclient/qmpdclient-1.1.1.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.ebuild,v 1.1 2009/06/26 10:09:53 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}"
+
+LANGSLONG="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 ${LANGSLONG}; 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"
+}
+
+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
+
+ make_desktop_entry qmpdclient "QMPDClient" ${PN} \
+ "Qt;AudioVideo;Audio;" || die "Installing desktop entry failed"
+
+ #install 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
+ done
+ for X in ${LANGSLONG};do
+ if [[ ${LANG} == ${X} ]]; then
+ doins -r lang/${X}.qm || die "failed to install translations"
+ fi
+ done
+ done
+}