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: ChangeLog qmpdclient-1.1.2-r1.ebuild qmpdclient-1.1.1-r2.ebuild
Date: Thu, 07 Jan 2010 12:48:53
Message-Id: E1NSrnE-0001Wu-Em@stork.gentoo.org
1 hwoarang 10/01/07 12:48:48
2
3 Modified: ChangeLog
4 Added: qmpdclient-1.1.2-r1.ebuild
5 Removed: qmpdclient-1.1.1-r2.ebuild
6 Log:
7 remove old ebuild, revbump based on qt4-r2 eclass
8 (Portage version: 2.2_rc61/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.60 media-sound/qmpdclient/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/qmpdclient/ChangeLog?rev=1.60&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/qmpdclient/ChangeLog?rev=1.60&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/qmpdclient/ChangeLog?r1=1.59&r2=1.60
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-sound/qmpdclient/ChangeLog,v
20 retrieving revision 1.59
21 retrieving revision 1.60
22 diff -u -r1.59 -r1.60
23 --- ChangeLog 6 Jan 2010 16:35:43 -0000 1.59
24 +++ ChangeLog 7 Jan 2010 12:48:48 -0000 1.60
25 @@ -1,6 +1,12 @@
26 # ChangeLog for media-sound/qmpdclient
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-sound/qmpdclient/ChangeLog,v 1.59 2010/01/06 16:35:43 jer Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-sound/qmpdclient/ChangeLog,v 1.60 2010/01/07 12:48:48 hwoarang Exp $
30 +
31 +*qmpdclient-1.1.2-r1 (07 Jan 2010)
32 +
33 + 07 Jan 2010; <hwoarang@g.o> -qmpdclient-1.1.1-r2.ebuild,
34 + +qmpdclient-1.1.2-r1.ebuild:
35 + remove old ebuild, revbump based on qt4-r2 eclass
36
37 06 Jan 2010; Jeroen Roovers <jer@g.o> qmpdclient-1.1.2.ebuild:
38 Stable for HPPA (bug #299317).
39
40
41
42 1.1 media-sound/qmpdclient/qmpdclient-1.1.2-r1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/qmpdclient/qmpdclient-1.1.2-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/qmpdclient/qmpdclient-1.1.2-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: qmpdclient-1.1.2-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2010 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/media-sound/qmpdclient/qmpdclient-1.1.2-r1.ebuild,v 1.1 2010/01/07 12:48:48 hwoarang Exp $
52
53 EAPI="2"
54
55 LANGSLONG="cs_CZ de_DE fr_FR it_IT nl_NL nn_NO no_NO ru_RU sv_SE tr_TR uk_UA"
56 LANGS="zh_CN zh_TW pt_BR "
57
58 inherit qt4-r2
59
60 DESCRIPTION="QMPDClient with NBL additions, such as lyrics' display"
61 HOMEPAGE="http://bitcheese.net/wiki/QMPDClient"
62 SRC_URI="http://dump.bitcheese.net/files/dedycec/${P}.tar.bz2"
63
64 LICENSE="GPL-2"
65 SLOT="0"
66 KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86"
67 IUSE="debug dbus"
68
69 DEPEND="x11-libs/qt-gui:4[dbus?]"
70 RDEPEND="${DEPEND}"
71
72 S="${WORKDIR}/${PN}"
73
74 DOCS="AUTHORS README THANKSTO Changelog"
75
76 src_prepare() {
77 # Fix the install path
78 sed -i -e "s:PREFIX = /usr/local:PREFIX = /usr:" ${PN}.pro \
79 || die "sed failed (install path)"
80
81 # Fix package version
82 sed -i -e "s:1.1.1:${PV}:" ${PN}.pro || die "failed to fix package version"
83 # nostrip fix
84 sed -i -e "s:CONFIG += :CONFIG += nostrip :" ${PN}.pro \
85 || die "sed failed (nostrip)"
86
87 sed -i -e "s:+= -O2 -g0 -s:+= -O2 -g0:" ${PN}.pro \
88 || die "sed failed (nostrip)"
89
90 # fix installation folder name
91 sed -i "s/share\/QMPDClient/share\/qmpdclient/" ${PN}.pro src/config.cpp \
92 || die "failed to fix installation directory"
93
94 # check dbus
95 if ! use dbus; then
96 sed -i -e "s/message(DBus notifier:\ enabled)/message(DBus notifier:\ disabled)/" \
97 -e "s/CONFIG\ +=\ nostrip\ qdbus//" \
98 -e "s/SOURCES\ +=\ src\/notifications_dbus.cpp/SOURCES\ +=\ src\/notifications_nodbus.cpp/" \
99 ${PN}.pro || die "disabling dbus failed"
100 fi
101 }
102
103 src_compile() {
104 emake || die "emake failed"
105 # generate translations
106 emake translate || die "failed to generate translations"
107 cd "${S}"/lang
108 for X in *.ts;do
109 lrelease "${X}" || die "lrelease failed"
110 done
111 }
112
113 src_install() {
114 qt4-r2_src_install
115 for res in 16 22 64 ; do
116 insinto /usr/share/icons/hicolor/${res}x${res}/apps/
117 newins icons/qmpdclient${res}.png ${PN}.png || die "Installing icons failed"
118 done
119
120 #install translations
121 insinto /usr/share/${PN}/translations/
122 local LANG=
123 for LANG in ${LINGUAS};do
124 for X in ${LANGSNOLONG};do
125 if [[ ${LANG} == ${X%_*} ]];then
126 doins -r lang/${X}.qm || die "failed to install translations"
127 fi
128 done
129 for X in ${LANGS};do
130 if [[ ${LANG} == ${X} ]]; then
131 doins -r lang/${X}.qm || die "failed to install translations"
132 fi
133 done
134 done
135 }