Gentoo Archives: gentoo-commits

From: "Markos Chandras (hwoarang)" <hwoarang@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-sound/qmpdclient: qmpdclient-1.1.1.ebuild ChangeLog
Date: Fri, 26 Jun 2009 10:09:56
Message-Id: E1MK8NV-000508-OY@stork.gentoo.org
1 hwoarang 09/06/26 10:09:53
2
3 Modified: ChangeLog
4 Added: qmpdclient-1.1.1.ebuild
5 Log:
6 Version bump, ebuild clean up
7 (Portage version: 2.2_rc33/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.51 media-sound/qmpdclient/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/qmpdclient/ChangeLog?rev=1.51&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/qmpdclient/ChangeLog?rev=1.51&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/qmpdclient/ChangeLog?r1=1.50&r2=1.51
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-sound/qmpdclient/ChangeLog,v
19 retrieving revision 1.50
20 retrieving revision 1.51
21 diff -u -r1.50 -r1.51
22 --- ChangeLog 9 Jun 2009 19:10:38 -0000 1.50
23 +++ ChangeLog 26 Jun 2009 10:09:53 -0000 1.51
24 @@ -1,6 +1,12 @@
25 # ChangeLog for media-sound/qmpdclient
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-sound/qmpdclient/ChangeLog,v 1.50 2009/06/09 19:10:38 fauli Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-sound/qmpdclient/ChangeLog,v 1.51 2009/06/26 10:09:53 hwoarang Exp $
29 +
30 +*qmpdclient-1.1.1 (26 Jun 2009)
31 +
32 + 26 Jun 2009; Markos Chandras <hwoarang@g.o>
33 + +qmpdclient-1.1.1.ebuild:
34 + Version bump, ebuild clean up
35
36 09 Jun 2009; Christian Faulhammer <fauli@g.o>
37 qmpdclient-1.1.0-r3.ebuild:
38
39
40
41 1.1 media-sound/qmpdclient/qmpdclient-1.1.1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/qmpdclient/qmpdclient-1.1.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/qmpdclient/qmpdclient-1.1.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: qmpdclient-1.1.1.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/media-sound/qmpdclient/qmpdclient-1.1.1.ebuild,v 1.1 2009/06/26 10:09:53 hwoarang Exp $
51
52 EAPI="2"
53
54 inherit qt4
55
56
57 DESCRIPTION="QMPDClient with NBL additions, such as lyrics' display"
58 HOMEPAGE="http://bitcheese.net/wiki/QMPDClient"
59 SRC_URI="mirror://gentoo/${P}.tar.gz
60 http://dev.gentoo.org/~hwoarang/distfiles/${P}.tar.gz"
61
62 LICENSE="GPL-2"
63 SLOT="0"
64 KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86"
65 IUSE="debug dbus"
66
67 DEPEND="x11-libs/qt-gui:4[dbus?,debug?]"
68 RDEPEND="${DEPEND}"
69
70 LANGSLONG="cs_CZ de_DE fr_FR it_IT nl_NL nn_NO no_NO ru_RU sv_SE tr_TR uk_UA"
71 LANGS="zh_CN zh_TW pt_BR "
72
73 for X in ${LANGSLONG}; do
74 IUSE="${IUSE} linguas_${X%_*}"
75 done
76
77 for X in ${LANGS};do
78 IUSE="${IUSE} linguas_${X}"
79 done
80
81 src_prepare() {
82 # Fix the install path
83 sed -i -e "s:PREFIX = /usr/local:PREFIX = /usr:" qmpdclient.pro \
84 || die "sed failed (install path)"
85
86 # nostrip fix
87 sed -i -e "s:CONFIG += :CONFIG += nostrip :" qmpdclient.pro \
88 || die "sed failed (nostrip)"
89
90 sed -i -e "s:+= -O2 -g0 -s:+= -O2 -g0:" qmpdclient.pro \
91 || die "sed failed (nostrip)"
92
93 # fix installation folder name
94 sed -i "s/share\/QMPDClient/share\/qmpdclient/" src/config.cpp \
95 || die "failed to fix installation directory"
96
97 # check dbus
98 if ! use dbus; then
99 sed -i -e "s/message(DBus notifier:\ enabled)/message(DBus notifier:\ disabled)/" \
100 -e "s/CONFIG\ +=\ nostrip\ qdbus//" \
101 -e "s/SOURCES\ +=\ src\/notifications_dbus.cpp/SOURCES\ +=\ src\/notifications_nodbus.cpp/" \
102 ${PN}.pro || die "disabling dbus failed"
103 fi
104 }
105
106 src_configure() {
107 eqmake4 qmpdclient.pro
108 }
109
110 src_compile() {
111 emake || die "emake failed"
112 # generate translations
113 emake translate || die "failed to generate translations"
114 }
115
116 src_install() {
117 emake install INSTALL_ROOT="${D}" || die "emake install failed"
118 dodoc README AUTHORS THANKSTO Changelog || die "Installing docs failed"
119 for res in 16 22 64 ; do
120 insinto /usr/share/icons/hicolor/${res}x${res}/apps/
121 newins icons/qmpdclient${res}.png ${PN}.png || die "Installing icons failed"
122 done
123
124 make_desktop_entry qmpdclient "QMPDClient" ${PN} \
125 "Qt;AudioVideo;Audio;" || die "Installing desktop entry failed"
126
127 #install translations
128 insinto /usr/share/${PN}/translations/
129 local LANG=
130 for LANG in ${LINGUAS};do
131 for X in ${LANGS};do
132 if [[ ${LANG} == ${X%_*} ]];then
133 doins -r lang/${X}.qm || die "failed to install translations"
134 fi
135 done
136 for X in ${LANGSLONG};do
137 if [[ ${LANG} == ${X} ]]; then
138 doins -r lang/${X}.qm || die "failed to install translations"
139 fi
140 done
141 done
142 }