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