1 |
pva 11/06/29 05:23:31 |
2 |
|
3 |
Modified: psi-9999.ebuild ChangeLog |
4 |
Removed: psi-0.12.1.ebuild |
5 |
Log: |
6 |
Use git-2 elass, bump EAPI and other cleanups in psi-9999, thank Rion for report. Drop old. |
7 |
|
8 |
(Portage version: 2.1.10.3/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.11 net-im/psi/psi-9999.ebuild |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/psi/psi-9999.ebuild?rev=1.11&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/psi/psi-9999.ebuild?rev=1.11&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/psi/psi-9999.ebuild?r1=1.10&r2=1.11 |
16 |
|
17 |
Index: psi-9999.ebuild |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-im/psi/psi-9999.ebuild,v |
20 |
retrieving revision 1.10 |
21 |
retrieving revision 1.11 |
22 |
diff -u -r1.10 -r1.11 |
23 |
--- psi-9999.ebuild 30 Nov 2010 19:24:56 -0000 1.10 |
24 |
+++ psi-9999.ebuild 29 Jun 2011 05:23:31 -0000 1.11 |
25 |
@@ -1,8 +1,8 @@ |
26 |
-# Copyright 1999-2010 Gentoo Foundation |
27 |
+# Copyright 1999-2011 Gentoo Foundation |
28 |
# Distributed under the terms of the GNU General Public License v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/net-im/psi/psi-9999.ebuild,v 1.10 2010/11/30 19:24:56 pva Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-im/psi/psi-9999.ebuild,v 1.11 2011/06/29 05:23:31 pva Exp $ |
31 |
|
32 |
-EAPI="2" |
33 |
+EAPI="4" |
34 |
|
35 |
LANGS="ar be bg br ca cs da de ee el eo es et fi fr hr hu it ja mk nl pl pt pt_BR ru se sk sl sr sr@latin sv sw uk ur_PK vi zh_CN zh_TW" |
36 |
|
37 |
@@ -10,11 +10,10 @@ |
38 |
EGIT_HAS_SUBMODULES=1 |
39 |
LANGS_URI="git://pv.et-inf.fho-emden.de/git/psi-l10n" |
40 |
|
41 |
-ESVN_DISABLE_DEPENDENCIES="true" |
42 |
-ESVN_REPO_URI="http://psi-dev.googlecode.com/svn/trunk/patches" |
43 |
-ESVN_PROJECT="psiplus" |
44 |
+PSI_PLUS_URI="git://github.com/psi-plus/main.git" |
45 |
+PSI_PLUS_ICONSETS_URI="git://github.com/psi-plus/iconsets.git" |
46 |
|
47 |
-inherit eutils qt4-r2 multilib git subversion |
48 |
+inherit eutils qt4-r2 multilib git-2 subversion |
49 |
|
50 |
DESCRIPTION="Qt4 Jabber client, with Licq-like interface" |
51 |
HOMEPAGE="http://psi-im.org/" |
52 |
@@ -22,11 +21,17 @@ |
53 |
SLOT="0" |
54 |
KEYWORDS="" |
55 |
IUSE="crypt dbus debug doc enchant extras jingle iconsets spell ssl xscreensaver powersave |
56 |
-plugins -whiteboarding webkit" |
57 |
+plugins whiteboarding webkit" |
58 |
+ |
59 |
+REQUIRED_USE=" |
60 |
+ iconsets? ( extras ) |
61 |
+ plugins? ( extras ) |
62 |
+ powersave? ( extras ) |
63 |
+ webkit? ( extras ) |
64 |
+" |
65 |
|
66 |
RDEPEND=" |
67 |
- >=x11-libs/qt-gui-4.4:4[qt3support,dbus?] |
68 |
- >=x11-libs/qt-qt3support-4.4:4 |
69 |
+ >=x11-libs/qt-gui-4.4:4[dbus?] |
70 |
>=app-crypt/qca-2.0.2:2 |
71 |
whiteboarding? ( x11-libs/qt-svg:4 ) |
72 |
spell? ( |
73 |
@@ -34,7 +39,7 @@ |
74 |
!enchant? ( app-text/aspell ) |
75 |
) |
76 |
xscreensaver? ( x11-libs/libXScrnSaver ) |
77 |
- extras? ( webkit? ( x11-libs/qt-webkit ) ) |
78 |
+ extras? ( webkit? ( x11-libs/qt-webkit:4 ) ) |
79 |
app-arch/unzip |
80 |
" |
81 |
DEPEND="${RDEPEND} |
82 |
@@ -56,12 +61,9 @@ |
83 |
RESTRICT="test" |
84 |
|
85 |
pkg_setup() { |
86 |
- for x in iconsets plugins powersave webkit whiteboarding; do |
87 |
- use ${x} && use !extras && \ |
88 |
- ewarn "USE=${x} is only available in Psi+ and requires USE=extras, ${x} will be disabled." |
89 |
- done |
90 |
- |
91 |
+ MY_PN=psi |
92 |
if use extras; then |
93 |
+ MY_PN=psi-plus |
94 |
echo |
95 |
ewarn "You're about to build heavily patched version of Psi called Psi+." |
96 |
ewarn "It has really nice features but still is under heavy development." |
97 |
@@ -73,6 +75,7 @@ |
98 |
ewarn "Note: some patches depend on other. So if you disabled some patch" |
99 |
ewarn "and other started to fail to apply, you'll have to disable patches" |
100 |
ewarn "that fail too." |
101 |
+ echo |
102 |
|
103 |
if use iconsets; then |
104 |
echo |
105 |
@@ -84,54 +87,51 @@ |
106 |
} |
107 |
|
108 |
src_unpack() { |
109 |
- git_src_unpack |
110 |
+ git-2_src_unpack |
111 |
+ unset EGIT_HAS_SUBMODULES EGIT_NONBARE |
112 |
|
113 |
# fetch translations |
114 |
mkdir "${WORKDIR}/psi-l10n" |
115 |
for x in ${LANGS}; do |
116 |
if use linguas_${x}; then |
117 |
if use extras && [ "${x}" = "ru" ]; then |
118 |
- EGIT_REPO_URI="git://mva.name/psi-l10n-${x}" |
119 |
- EGIT_PROJECT="psiplus-l10n/${x}" |
120 |
+ ESVN_PROJECT="psiplus/psi-l10n/${x}" \ |
121 |
+ S="${WORKDIR}" \ |
122 |
+ subversion_fetch \ |
123 |
+ "http://psi-ru.googlecode.com/svn/branches/psi-plus/" \ |
124 |
+ "psi-l10n/${x}" |
125 |
else |
126 |
- EGIT_REPO_URI="${LANGS_URI}-${x}" |
127 |
- EGIT_PROJECT="psi-l10n/${x}" |
128 |
+ unset EGIT_MASTER EGIT_BRANCH EGIT_COMMIT |
129 |
+ EGIT_REPO_URI="${LANGS_URI}-${x}" \ |
130 |
+ EGIT_DIR="${EGIT_STORE_DIR}/psi-l10n/${x}" \ |
131 |
+ EGIT_SOURCEDIR="${WORKDIR}/psi-l10n/${x}" git-2_src_unpack |
132 |
fi |
133 |
- S="${WORKDIR}/psi-l10n/${x}" git_fetch |
134 |
fi |
135 |
done |
136 |
|
137 |
if use extras; then |
138 |
- S="${WORKDIR}/patches" subversion_fetch |
139 |
+ EGIT_DIR="${EGIT_STORE_DIR}/psi-plus/main" \ |
140 |
+ EGIT_SOURCEDIR="${WORKDIR}/psi-plus" \ |
141 |
+ EGIT_REPO_URI="${PSI_PLUS_URI}" git-2_src_unpack |
142 |
if use iconsets; then |
143 |
- subversion_fetch "${ESVN_REPO_URI%patches}iconsets" "iconsets" |
144 |
- else |
145 |
- for x in activities affiliations clients moods roster system; do |
146 |
- ESVN_PROJECT="psiplus/${x}" \ |
147 |
- subversion_fetch "${ESVN_REPO_URI%patches}iconsets/${x}/default" "iconsets/${x}/default" |
148 |
- done |
149 |
+ EGIT_DIR="${EGIT_STORE_DIR}/psi-plus/iconsets" \ |
150 |
+ EGIT_SOURCEDIR="${WORKDIR}/iconsets" \ |
151 |
+ EGIT_REPO_URI="${PSI_PLUS_ICONSETS_URI}" git-2_src_unpack |
152 |
fi |
153 |
fi |
154 |
} |
155 |
|
156 |
src_prepare() { |
157 |
if use extras; then |
158 |
- EPATCH_EXCLUDE="${MY_EPATCH_EXCLUDE} |
159 |
- " \ |
160 |
- EPATCH_SOURCE="${WORKDIR}/patches/" EPATCH_SUFFIX="diff" EPATCH_FORCE="yes" epatch |
161 |
- |
162 |
- use powersave && epatch "${WORKDIR}/patches/dev/psi-reduce-power-consumption.patch" |
163 |
- |
164 |
- if use whiteboarding; then |
165 |
- sed -e 's/#CONFIG += whiteboarding/CONFIG += whiteboarding/' \ |
166 |
- -i src/src.pro || die "sed failed" |
167 |
- epatch "${WORKDIR}/patches/dev/psi-wb.patch" |
168 |
+ cp -a "${WORKDIR}/psi-plus/iconsets" "${S}" || die "failed to copy iconsets" |
169 |
+ use iconsets && { cp -a "${WORKDIR}/iconsets" "${S}" || \ |
170 |
+ die "failed to copy additional iconsets"; } |
171 |
+ EPATCH_EXCLUDE="${MY_EPATCH_EXCLUDE} " \ |
172 |
+ EPATCH_SOURCE="${WORKDIR}/psi-plus/patches/" EPATCH_SUFFIX="diff" EPATCH_FORCE="yes" epatch |
173 |
|
174 |
- ewarn "Whiteboarding is very unstable." |
175 |
- fi |
176 |
+ use powersave && epatch "${WORKDIR}/psi-plus/patches/dev/psi-reduce-power-consumption.patch" |
177 |
|
178 |
- subversion_wc_info |
179 |
- sed -e "s/.xxx/.${ESVN_WC_REVISION}/" \ |
180 |
+ sed -e "s/.xxx/.$(cd "${WORKDIR}/psi-plus"; git describe --tags | cut -d - -f 2)/" \ |
181 |
-i src/applicationinfo.cpp || die "sed failed" |
182 |
|
183 |
qconf || die "Failed to create ./configure." |
184 |
@@ -144,8 +144,8 @@ |
185 |
# unable to use econf because of non-standard configure script |
186 |
# disable growl as it is a MacOS X extension only |
187 |
local myconf=" |
188 |
- --prefix=/usr |
189 |
- --qtdir=/usr |
190 |
+ --prefix="${EPREFIX}"/usr |
191 |
+ --qtdir="${EPREFIX}"/usr |
192 |
--disable-bundled-qca |
193 |
--disable-growl |
194 |
--no-separate-debug-info |
195 |
@@ -153,14 +153,11 @@ |
196 |
use dbus || myconf+=" --disable-qdbus" |
197 |
use debug && myconf+=" --debug" |
198 |
if use spell; then |
199 |
- if use enchant; then |
200 |
- myconf+=" --disable-aspell" |
201 |
- else |
202 |
- myconf+=" --disable-enchant" |
203 |
- fi |
204 |
+ use enchant && myconf+=" --disable-aspell" || myconf+=" --disable-enchant" |
205 |
else |
206 |
myconf+=" --disable-aspell --disable-enchant" |
207 |
fi |
208 |
+ use whiteboarding && myconf+=" --enable-whiteboarding" |
209 |
use xscreensaver || myconf+=" --disable-xss" |
210 |
if use extras; then |
211 |
use plugins && myconf+=" --enable-plugins" |
212 |
@@ -168,13 +165,13 @@ |
213 |
fi |
214 |
|
215 |
einfo "./configure ${myconf}" |
216 |
- ./configure ${myconf} || die "configure failed" |
217 |
+ ./configure ${myconf} || die |
218 |
|
219 |
eqmake4 |
220 |
} |
221 |
|
222 |
src_compile() { |
223 |
- emake || die "emake failed" |
224 |
+ emake |
225 |
|
226 |
if use doc; then |
227 |
cd doc |
228 |
@@ -184,37 +181,41 @@ |
229 |
} |
230 |
|
231 |
src_install() { |
232 |
- emake INSTALL_ROOT="${D}" install || die "emake install failed" |
233 |
+ emake INSTALL_ROOT="${D}" install |
234 |
|
235 |
# this way the docs will be installed in the standard gentoo dir |
236 |
- rm -f "${D}"/usr/share/psi/{COPYING,README} |
237 |
- newdoc iconsets/roster/README README.roster || die |
238 |
- newdoc iconsets/system/README README.system || die |
239 |
- newdoc certs/README README.certs || die |
240 |
- dodoc README || die |
241 |
+ rm -f "${ED}"/usr/share/${MY_PN}/{COPYING,README} |
242 |
+ newdoc iconsets/roster/README README.roster |
243 |
+ newdoc iconsets/system/README README.system |
244 |
+ newdoc certs/README README.certs |
245 |
+ dodoc README |
246 |
|
247 |
if use extras && use plugins; then |
248 |
- insinto /usr/share/psi/plugins |
249 |
- doins src/plugins/plugins.pri || die |
250 |
- doins src/plugins/psiplugin.pri || die |
251 |
- doins -r src/plugins/include || die |
252 |
- dosed "s:target.path.*:target.path = /usr/$(get_libdir)/psi/plugins:" \ |
253 |
- /usr/share/psi/plugins/psiplugin.pri \ |
254 |
+ insinto /usr/share/${MY_PN}/plugins |
255 |
+ doins src/plugins/plugins.pri |
256 |
+ doins src/plugins/psiplugin.pri |
257 |
+ doins -r src/plugins/include |
258 |
+ sed -i -e "s:target.path.*:target.path = /usr/$(get_libdir)/${MY_PN}/plugins:" \ |
259 |
+ "${ED}"/usr/share/${MY_PN}/plugins/psiplugin.pri \ |
260 |
|| die "sed failed" |
261 |
fi |
262 |
|
263 |
- if use doc; then |
264 |
- dohtml -r doc/api || die "dohtml failed" |
265 |
- fi |
266 |
+ use doc && dohtml -r doc/api |
267 |
|
268 |
# install translations |
269 |
cd "${WORKDIR}/psi-l10n" |
270 |
- insinto /usr/share/${PN} |
271 |
+ insinto /usr/share/${MY_PN} |
272 |
for x in ${LANGS}; do |
273 |
if use linguas_${x}; then |
274 |
lrelease "${x}/${PN}_${x}.ts" || die "lrelease ${x} failed" |
275 |
- doins "${x}/${PN}_${x}.qm" || die |
276 |
- newins "${x}/INFO" "${PN}_${x}.INFO" |
277 |
+ doins "${x}/${PN}_${x}.qm" |
278 |
+ [ -f "${x}/qt_${x}.qm" ] && doins "${x}/qt_${x}.qm" |
279 |
+ [ -f "${x}/qt/qt_${x}.qm" ] && doins "${x}/qt/qt_${x}.qm" |
280 |
+ [ -f "${x}/INFO" ] && newins "${x}/INFO" "${PN}_${x}.INFO" |
281 |
fi |
282 |
done |
283 |
} |
284 |
+ |
285 |
+pkg_preinst() { |
286 |
+ true # suppress subversion warnings |
287 |
+} |
288 |
|
289 |
|
290 |
|
291 |
1.206 net-im/psi/ChangeLog |
292 |
|
293 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/psi/ChangeLog?rev=1.206&view=markup |
294 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/psi/ChangeLog?rev=1.206&content-type=text/plain |
295 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/psi/ChangeLog?r1=1.205&r2=1.206 |
296 |
|
297 |
Index: ChangeLog |
298 |
=================================================================== |
299 |
RCS file: /var/cvsroot/gentoo-x86/net-im/psi/ChangeLog,v |
300 |
retrieving revision 1.205 |
301 |
retrieving revision 1.206 |
302 |
diff -u -r1.205 -r1.206 |
303 |
--- ChangeLog 24 May 2011 17:46:44 -0000 1.205 |
304 |
+++ ChangeLog 29 Jun 2011 05:23:31 -0000 1.206 |
305 |
@@ -1,6 +1,12 @@ |
306 |
# ChangeLog for net-im/psi |
307 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
308 |
-# $Header: /var/cvsroot/gentoo-x86/net-im/psi/ChangeLog,v 1.205 2011/05/24 17:46:44 pva Exp $ |
309 |
+# $Header: /var/cvsroot/gentoo-x86/net-im/psi/ChangeLog,v 1.206 2011/06/29 05:23:31 pva Exp $ |
310 |
+ |
311 |
+ 29 Jun 2011; Peter Volkov <pva@g.o> -psi-0.12.1.ebuild, |
312 |
+ -files/psi-0.12.1-build-error.patch, |
313 |
+ -files/psi-0.12.1-qt-4.5-compatibility.patch, psi-9999.ebuild: |
314 |
+ Use git-2 elass, bump EAPI and other cleanups in psi-9999, thank Rion for |
315 |
+ report. Drop old. |
316 |
|
317 |
*psi-0.14-r2 (24 May 2011) |