Gentoo Archives: gentoo-commits

From: "Christoph Mende (angelos)" <angelos@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-sound/qmpdclient: metadata.xml ChangeLog qmpdclient-1.1.3.ebuild
Date: Thu, 03 Jun 2010 17:42:53
Message-Id: 20100603174246.2E3CE2CF46@corvid.gentoo.org
1 angelos 10/06/03 17:42:46
2
3 Modified: metadata.xml ChangeLog
4 Added: qmpdclient-1.1.3.ebuild
5 Log:
6 Take over maintainership and version bump
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.5 media-sound/qmpdclient/metadata.xml
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/qmpdclient/metadata.xml?rev=1.5&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/qmpdclient/metadata.xml?rev=1.5&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/qmpdclient/metadata.xml?r1=1.4&r2=1.5
15
16 Index: metadata.xml
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-sound/qmpdclient/metadata.xml,v
19 retrieving revision 1.4
20 retrieving revision 1.5
21 diff -u -r1.4 -r1.5
22 --- metadata.xml 16 Jul 2008 20:17:17 -0000 1.4
23 +++ metadata.xml 3 Jun 2010 17:42:45 -0000 1.5
24 @@ -2,6 +2,10 @@
25 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
26 <pkgmetadata>
27 <herd>sound</herd>
28 + <maintainer>
29 + <email>angelos@g.o</email>
30 + <name>Christoph Mende</name>
31 + </maintainer>
32 <longdescription lang="en">
33 QMPDClient is an easy to use Qt4 client for MPD
34 </longdescription>
35
36
37
38 1.65 media-sound/qmpdclient/ChangeLog
39
40 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/qmpdclient/ChangeLog?rev=1.65&view=markup
41 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/qmpdclient/ChangeLog?rev=1.65&content-type=text/plain
42 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/qmpdclient/ChangeLog?r1=1.64&r2=1.65
43
44 Index: ChangeLog
45 ===================================================================
46 RCS file: /var/cvsroot/gentoo-x86/media-sound/qmpdclient/ChangeLog,v
47 retrieving revision 1.64
48 retrieving revision 1.65
49 diff -u -r1.64 -r1.65
50 --- ChangeLog 15 Mar 2010 15:37:16 -0000 1.64
51 +++ ChangeLog 3 Jun 2010 17:42:45 -0000 1.65
52 @@ -1,6 +1,12 @@
53 # ChangeLog for media-sound/qmpdclient
54 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
55 -# $Header: /var/cvsroot/gentoo-x86/media-sound/qmpdclient/ChangeLog,v 1.64 2010/03/15 15:37:16 hwoarang Exp $
56 +# $Header: /var/cvsroot/gentoo-x86/media-sound/qmpdclient/ChangeLog,v 1.65 2010/06/03 17:42:45 angelos Exp $
57 +
58 +*qmpdclient-1.1.3 (03 Jun 2010)
59 +
60 + 03 Jun 2010; Christoph Mende <angelos@g.o>
61 + +qmpdclient-1.1.3.ebuild, metadata.xml:
62 + Take over maintainership and version bump
63
64 *qmpdclient-1.1.2-r2 (15 Mar 2010)
65
66
67
68
69 1.1 media-sound/qmpdclient/qmpdclient-1.1.3.ebuild
70
71 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/qmpdclient/qmpdclient-1.1.3.ebuild?rev=1.1&view=markup
72 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/qmpdclient/qmpdclient-1.1.3.ebuild?rev=1.1&content-type=text/plain
73
74 Index: qmpdclient-1.1.3.ebuild
75 ===================================================================
76 # Copyright 1999-2010 Gentoo Foundation
77 # Distributed under the terms of the GNU General Public License v2
78 # $Header: /var/cvsroot/gentoo-x86/media-sound/qmpdclient/qmpdclient-1.1.3.ebuild,v 1.1 2010/06/03 17:42:45 angelos Exp $
79
80 EAPI="2"
81
82 LANGSLONG="cs_CZ de_DE fr_FR it_IT nl_NL nn_NO no_NO ru_RU sv_SE tr_TR uk_UA"
83 LANGS="zh_CN zh_TW pt_BR "
84
85 inherit qt4-r2
86
87 DESCRIPTION="QMPDClient with NBL additions, such as lyrics' display"
88 HOMEPAGE="http://bitcheese.net/wiki/QMPDClient"
89 SRC_URI="http://dump.bitcheese.net/files/${P}.tar.bz2"
90
91 LICENSE="GPL-2"
92 SLOT="0"
93 KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86"
94 IUSE="debug dbus"
95
96 DEPEND="x11-libs/qt-gui:4[dbus?]"
97 RDEPEND="${DEPEND}"
98
99 S="${WORKDIR}/${PN}"
100
101 DOCS="AUTHORS README THANKSTO Changelog"
102
103 src_prepare() {
104 # Fix the install path
105 sed -i -e "s:PREFIX = /usr/local:PREFIX = /usr:" ${PN}.pro \
106 || die "sed failed (install path)"
107
108 # Fix package version
109 sed -i -e "/^VERSION/s:= .*:= ${PV}:" ${PN}.pro || die "failed to fix package version"
110 # nostrip fix
111 sed -i -e "s:^CONFIG += :CONFIG += nostrip :" ${PN}.pro \
112 || die "sed failed (nostrip)"
113
114 sed -i -e "s:+= -O2 -g0 -s:+= -O2 -g0:" ${PN}.pro \
115 || die "sed failed (nostrip)"
116
117 # fix installation folder name
118 sed -i "s:share/QMPDClient:share/qmpdclient:" ${PN}.pro src/config.cpp \
119 || die "failed to fix installation directory"
120
121 # check dbus
122 if ! use dbus; then
123 sed -i -e "s/message(DBus notifier:\ enabled)/message(DBus notifier:\ disabled)/" \
124 -e "s/CONFIG\ +=\ nostrip\ qdbus//" \
125 -e "s/SOURCES\ +=\ src\/notifications_dbus.cpp/SOURCES\ +=\ src\/notifications_nodbus.cpp/" \
126 ${PN}.pro || die "disabling dbus failed"
127 fi
128 qt4-r2_src_prepare
129 }
130
131 src_compile() {
132 emake || die "emake failed"
133 # generate translations
134 emake translate || die "failed to generate translations"
135 cd "${S}"/lang
136 for X in *.ts;do
137 lrelease "${X}" || die "lrelease failed"
138 done
139 }
140
141 src_install() {
142 qt4-r2_src_install
143 for res in 16 22 64 ; do
144 insinto /usr/share/icons/hicolor/${res}x${res}/apps/
145 newins icons/qmpdclient${res}.png ${PN}.png || die "Installing icons failed"
146 done
147
148 #install translations
149 insinto /usr/share/${PN}/translations/
150 local LANG=
151 for LANG in ${LINGUAS};do
152 for X in ${LANGSLONG};do
153 if [[ ${LANG} == ${X%_*} ]];then
154 doins -r lang/${X}.qm || die "failed to install translations"
155 fi
156 done
157 for X in ${LANGS};do
158 if [[ ${LANG} == ${X} ]]; then
159 doins -r lang/${X}.qm || die "failed to install translations"
160 fi
161 done
162 done
163 }