1 |
ticho 07/12/04 20:42:46 |
2 |
|
3 |
Modified: ChangeLog claws-mail-3.1.0.ebuild |
4 |
claws-mail-3.0.2.ebuild |
5 |
Added: claws-mail-3.1.0-r1.ebuild |
6 |
claws-mail-3.0.2-r1.ebuild |
7 |
Log: |
8 |
Revision bump for the security fix. |
9 |
(Portage version: 2.1.3.18) |
10 |
|
11 |
Revision Changes Path |
12 |
1.53 mail-client/claws-mail/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/claws-mail/ChangeLog?rev=1.53&view=markup |
15 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/claws-mail/ChangeLog?rev=1.53&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/claws-mail/ChangeLog?r1=1.52&r2=1.53 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/mail-client/claws-mail/ChangeLog,v |
21 |
retrieving revision 1.52 |
22 |
retrieving revision 1.53 |
23 |
diff -u -r1.52 -r1.53 |
24 |
--- ChangeLog 4 Dec 2007 18:48:04 -0000 1.52 |
25 |
+++ ChangeLog 4 Dec 2007 20:42:45 -0000 1.53 |
26 |
@@ -1,6 +1,14 @@ |
27 |
# ChangeLog for mail-client/claws-mail |
28 |
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/mail-client/claws-mail/ChangeLog,v 1.52 2007/12/04 18:48:04 ticho Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/mail-client/claws-mail/ChangeLog,v 1.53 2007/12/04 20:42:45 ticho Exp $ |
31 |
+ |
32 |
+*claws-mail-3.1.0-r1 (04 Dec 2007) |
33 |
+*claws-mail-3.0.2-r1 (04 Dec 2007) |
34 |
+ |
35 |
+ 04 Dec 2007; Andrej Kacian <ticho@g.o> claws-mail-3.0.2.ebuild, |
36 |
+ +claws-mail-3.0.2-r1.ebuild, claws-mail-3.1.0.ebuild, |
37 |
+ +claws-mail-3.1.0-r1.ebuild: |
38 |
+ Revision bump for the security fix. |
39 |
|
40 |
04 Dec 2007; Andrej Kacian <ticho@g.o> claws-mail-3.0.0.ebuild, |
41 |
claws-mail-3.0.2.ebuild, claws-mail-3.1.0.ebuild: |
42 |
|
43 |
|
44 |
|
45 |
1.5 mail-client/claws-mail/claws-mail-3.1.0.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/claws-mail/claws-mail-3.1.0.ebuild?rev=1.5&view=markup |
48 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/claws-mail/claws-mail-3.1.0.ebuild?rev=1.5&content-type=text/plain |
49 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/claws-mail/claws-mail-3.1.0.ebuild?r1=1.4&r2=1.5 |
50 |
|
51 |
Index: claws-mail-3.1.0.ebuild |
52 |
=================================================================== |
53 |
RCS file: /var/cvsroot/gentoo-x86/mail-client/claws-mail/claws-mail-3.1.0.ebuild,v |
54 |
retrieving revision 1.4 |
55 |
retrieving revision 1.5 |
56 |
diff -u -r1.4 -r1.5 |
57 |
--- claws-mail-3.1.0.ebuild 4 Dec 2007 18:48:04 -0000 1.4 |
58 |
+++ claws-mail-3.1.0.ebuild 4 Dec 2007 20:42:45 -0000 1.5 |
59 |
@@ -1,6 +1,6 @@ |
60 |
# Copyright 1999-2007 Gentoo Foundation |
61 |
# Distributed under the terms of the GNU General Public License v2 |
62 |
-# $Header: /var/cvsroot/gentoo-x86/mail-client/claws-mail/claws-mail-3.1.0.ebuild,v 1.4 2007/12/04 18:48:04 ticho Exp $ |
63 |
+# $Header: /var/cvsroot/gentoo-x86/mail-client/claws-mail/claws-mail-3.1.0.ebuild,v 1.5 2007/12/04 20:42:45 ticho Exp $ |
64 |
|
65 |
IUSE="bogofilter clamav crypt dillo doc gnome gnutls imap ipv6 kde ldap nntp pda session spamassassin spell ssl startup-notification xface" |
66 |
|
67 |
@@ -51,14 +51,6 @@ |
68 |
|
69 |
PLUGIN_NAMES="acpi-notifier att-remover attachwarner cachesaver etpan-privacy fetchinfo gtkhtml maildir mailmbox newmail notification pdf-viewer perl rssyl smime synce vcalendar" |
70 |
|
71 |
-src_unpack() { |
72 |
- unpack ${A} |
73 |
- cd "${S}" |
74 |
- |
75 |
- # Remove unmaintained insecure script, following upstream action |
76 |
- rm tools/*sylprint* || die |
77 |
-} |
78 |
- |
79 |
src_compile() { |
80 |
local myconf="--disable-libetpan" |
81 |
|
82 |
|
83 |
|
84 |
|
85 |
1.6 mail-client/claws-mail/claws-mail-3.0.2.ebuild |
86 |
|
87 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/claws-mail/claws-mail-3.0.2.ebuild?rev=1.6&view=markup |
88 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/claws-mail/claws-mail-3.0.2.ebuild?rev=1.6&content-type=text/plain |
89 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/claws-mail/claws-mail-3.0.2.ebuild?r1=1.5&r2=1.6 |
90 |
|
91 |
Index: claws-mail-3.0.2.ebuild |
92 |
=================================================================== |
93 |
RCS file: /var/cvsroot/gentoo-x86/mail-client/claws-mail/claws-mail-3.0.2.ebuild,v |
94 |
retrieving revision 1.5 |
95 |
retrieving revision 1.6 |
96 |
diff -u -r1.5 -r1.6 |
97 |
--- claws-mail-3.0.2.ebuild 4 Dec 2007 18:48:04 -0000 1.5 |
98 |
+++ claws-mail-3.0.2.ebuild 4 Dec 2007 20:42:45 -0000 1.6 |
99 |
@@ -1,6 +1,6 @@ |
100 |
# Copyright 1999-2007 Gentoo Foundation |
101 |
# Distributed under the terms of the GNU General Public License v2 |
102 |
-# $Header: /var/cvsroot/gentoo-x86/mail-client/claws-mail/claws-mail-3.0.2.ebuild,v 1.5 2007/12/04 18:48:04 ticho Exp $ |
103 |
+# $Header: /var/cvsroot/gentoo-x86/mail-client/claws-mail/claws-mail-3.0.2.ebuild,v 1.6 2007/12/04 20:42:45 ticho Exp $ |
104 |
|
105 |
IUSE="bogofilter clamav crypt dillo doc gnome imap ipv6 kde ldap pda session spamassassin spell ssl startup-notification xface" |
106 |
|
107 |
@@ -49,14 +49,6 @@ |
108 |
|
109 |
PLUGIN_NAMES="acpi-notifier att-remover attachwarner cachesaver etpan-privacy fetchinfo gtkhtml maildir mailmbox newmail notification pdf-viewer perl rssyl smime synce vcalendar" |
110 |
|
111 |
-src_unpack() { |
112 |
- unpack ${A} |
113 |
- cd "${S}" |
114 |
- |
115 |
- # Remove unmaintained insecure script, following upstream action |
116 |
- rm tools/*sylprint* || die |
117 |
-} |
118 |
- |
119 |
src_compile() { |
120 |
local myconf |
121 |
|
122 |
|
123 |
|
124 |
|
125 |
1.1 mail-client/claws-mail/claws-mail-3.1.0-r1.ebuild |
126 |
|
127 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/claws-mail/claws-mail-3.1.0-r1.ebuild?rev=1.1&view=markup |
128 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/claws-mail/claws-mail-3.1.0-r1.ebuild?rev=1.1&content-type=text/plain |
129 |
|
130 |
Index: claws-mail-3.1.0-r1.ebuild |
131 |
=================================================================== |
132 |
# Copyright 1999-2007 Gentoo Foundation |
133 |
# Distributed under the terms of the GNU General Public License v2 |
134 |
# $Header: /var/cvsroot/gentoo-x86/mail-client/claws-mail/claws-mail-3.1.0-r1.ebuild,v 1.1 2007/12/04 20:42:45 ticho Exp $ |
135 |
|
136 |
IUSE="bogofilter clamav crypt dillo doc gnome gnutls imap ipv6 kde ldap nntp pda session spamassassin spell ssl startup-notification xface" |
137 |
|
138 |
inherit eutils multilib |
139 |
|
140 |
DESCRIPTION="Claws-Mail is an email client (and news reader) based on GTK+" |
141 |
HOMEPAGE="http://www.claws-mail.org" |
142 |
|
143 |
if [ -n "${P/*_rc*/}" ]; then |
144 |
SRC_URI="mirror://sourceforge/sylpheed-claws/${P}.tar.bz2" |
145 |
else |
146 |
MY_P="${P/_/-}" |
147 |
S="${WORKDIR}/${MY_P}" |
148 |
SRC_URI="http://www.claws-mail.org/snapshots/${MY_P}.tar.bz2" |
149 |
fi |
150 |
|
151 |
SLOT="0" |
152 |
LICENSE="GPL-3" |
153 |
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
154 |
|
155 |
COMMONDEPEND=">=x11-libs/gtk+-2.6 |
156 |
pda? ( >=app-pda/jpilot-0.99 ) |
157 |
ssl? ( >=dev-libs/openssl-0.9.7 ) |
158 |
ldap? ( >=net-nds/openldap-2.0.7 ) |
159 |
crypt? ( >=app-crypt/gpgme-1.1.1 ) |
160 |
dillo? ( www-client/dillo ) |
161 |
spell? ( virtual/aspell-dict ) |
162 |
clamav? ( app-antivirus/clamav ) |
163 |
kde? ( kde-base/kdelibs ) |
164 |
imap? ( >=net-libs/libetpan-0.49 ) |
165 |
nntp? ( >=net-libs/libetpan-0.49 ) |
166 |
gnome? ( >=gnome-base/libgnomeprintui-2.2 ) |
167 |
gnutls? ( net-libs/gnutls ) |
168 |
startup-notification? ( x11-libs/startup-notification ) |
169 |
bogofilter? ( mail-filter/bogofilter ) |
170 |
session? ( x11-libs/libSM |
171 |
x11-libs/libICE ) |
172 |
!<mail-client/sylpheed-claws-2.6.1" # old name, block as user hint and due to some file collision |
173 |
|
174 |
DEPEND="${COMMONDEPEND} |
175 |
xface? ( >=media-libs/compface-1.4 ) |
176 |
>=sys-apps/sed-4 |
177 |
dev-util/pkgconfig" |
178 |
|
179 |
RDEPEND="${COMMONDEPEND} |
180 |
app-misc/mime-types |
181 |
x11-misc/shared-mime-info" |
182 |
|
183 |
PLUGIN_NAMES="acpi-notifier att-remover attachwarner cachesaver etpan-privacy fetchinfo gtkhtml maildir mailmbox newmail notification pdf-viewer perl rssyl smime synce vcalendar" |
184 |
|
185 |
src_unpack() { |
186 |
unpack ${A} |
187 |
cd "${S}" |
188 |
|
189 |
# Remove unmaintained insecure script, following upstream action |
190 |
rm tools/*sylprint* || die |
191 |
} |
192 |
|
193 |
src_compile() { |
194 |
local myconf="--disable-libetpan" |
195 |
|
196 |
# libetpan is needed if user wants nntp or imap functionality |
197 |
# TODO: Perhaps change it into a single "libetpan" USE flag? |
198 |
use imap && myconf="--enable-libetpan" |
199 |
use nntp && myconf="--enable-libetpan" |
200 |
|
201 |
# Optional features |
202 |
myconf="${myconf} `use_enable gnome gnomeprint`" |
203 |
myconf="${myconf} `use_enable ipv6`" |
204 |
myconf="${myconf} `use_enable ldap`" |
205 |
myconf="${myconf} `use_enable pda jpilot`" |
206 |
myconf="${myconf} `use_enable spell aspell`" |
207 |
myconf="${myconf} `use_enable gnutls`" |
208 |
myconf="${myconf} `use_enable ssl openssl`" |
209 |
myconf="${myconf} `use_enable xface compface`" |
210 |
myconf="${myconf} `use_enable doc manual`" |
211 |
myconf="${myconf} `use_enable startup-notification`" |
212 |
myconf="${myconf} `use_enable session libsm`" |
213 |
|
214 |
# Optional plugins |
215 |
myconf="${myconf} `use_enable clamav clamav-plugin`" |
216 |
myconf="${myconf} `use_enable crypt pgpmime-plugin`" |
217 |
myconf="${myconf} `use_enable crypt pgpinline-plugin`" |
218 |
myconf="${myconf} `use_enable crypt pgpcore-plugin`" |
219 |
myconf="${myconf} `use_enable dillo dillo-viewer-plugin`" |
220 |
myconf="${myconf} `use_enable spamassassin spamassassin-plugin`" |
221 |
myconf="${myconf} `use_enable bogofilter bogofilter-plugin`" |
222 |
|
223 |
econf \ |
224 |
--enable-trayicon-plugin \ |
225 |
--disable-maemo \ |
226 |
${myconf} || die "./configure failed" |
227 |
|
228 |
emake || die |
229 |
} |
230 |
|
231 |
src_install() { |
232 |
emake DESTDIR="${D}" install || die |
233 |
|
234 |
# Makefile install claws-mail.png in /usr/share/icons/hicolor/48x48/apps |
235 |
# => also install it in /usr/share/pixmaps for other desktop envs |
236 |
# => also install higher resolution icons in /usr/share/icons/hicolor/... |
237 |
insinto /usr/share/pixmaps |
238 |
doins ${PN}.png || die |
239 |
local res resdir |
240 |
for res in 64x64 128x128 ; do |
241 |
resdir="/usr/share/icons/hicolor/${res}/apps" |
242 |
insinto ${resdir} |
243 |
newins ${PN}-${res}.png ${PN}.png || die |
244 |
done |
245 |
|
246 |
dodoc AUTHORS ChangeLog* INSTALL* NEWS README* TODO* |
247 |
docinto tools |
248 |
dodoc tools/README* |
249 |
|
250 |
insinto /usr/share/applications |
251 |
doins ${PN}.desktop |
252 |
|
253 |
einfo "Installing extra tools" |
254 |
cd "${S}"/tools |
255 |
exeinto /usr/$(get_libdir)/${PN}/tools |
256 |
doexe *.pl *.py *.rc *.conf *.sh || die |
257 |
doexe tb2claws-mail update-po uudec uuooffice || die |
258 |
|
259 |
if use kde; then |
260 |
einfo "Installing kde service scripts" |
261 |
local kdeprefix="$(kde-config --prefix)" |
262 |
local servicescript="${PN}-kdeservicemenu.pl" |
263 |
local desktopfile="${PN}-attach-files.desktop" |
264 |
cd "${S}"/tools/kdeservicemenu |
265 |
sed -i -e "s:SCRIPT_PATH:${kdeprefix}/bin/${servicescript}:g" \ |
266 |
${desktopfile}.template |
267 |
dodir /usr/share/apps/konqueror/servicemenus |
268 |
insopts -m 0644 |
269 |
insinto /usr/share/apps/konqueror/servicemenus |
270 |
newins ${desktopfile}.template ${desktopfile} || die |
271 |
dodir ${kdeprefix}/bin |
272 |
insopts -m 755 |
273 |
exeinto ${kdeprefix}/bin |
274 |
doexe ${servicescript} || die |
275 |
fi |
276 |
|
277 |
# kill useless plugin files |
278 |
rm -f "${D}"/usr/lib*/${PN}/plugins/*.{la,a} |
279 |
} |
280 |
|
281 |
pkg_postinst() { |
282 |
gtk-update-icon-cache -f -t "${ROOT}"/usr/share/icons/hicolor |
283 |
|
284 |
UPDATE_PLUGINS="" |
285 |
RENAME_PLUGINS="" |
286 |
for x in ${PLUGIN_NAMES}; do |
287 |
has_version mail-client/${PN}-$x && UPDATE_PLUGINS="${UPDATE_PLUGINS} $x" |
288 |
has_version mail-client/sylpheed-claws-$x && RENAME_PLUGINS="${RENAME_PLUGINS} $x" |
289 |
done |
290 |
if [ -n "${RENAME_PLUGINS}" ]; then |
291 |
elog |
292 |
elog "The following sylpheed-claws plugins were found on your system:" |
293 |
elog |
294 |
for x in ${RENAME_PLUGINS}; do |
295 |
elog " mail-client/sylpheed-claws-$x" |
296 |
done |
297 |
elog |
298 |
elog "If you want to continue using those you need to merge their " |
299 |
elog "renamed counterparts:" |
300 |
elog |
301 |
for x in ${RENAME_PLUGINS}; do |
302 |
elog " mail-client/${PN}-$x" |
303 |
done |
304 |
elog |
305 |
fi |
306 |
if [ -n "${UPDATE_PLUGINS}" ]; then |
307 |
elog |
308 |
elog "You have to re-emerge or update the following plugins:" |
309 |
elog |
310 |
for x in ${UPDATE_PLUGINS}; do |
311 |
elog " mail-client/${PN}-$x" |
312 |
done |
313 |
elog |
314 |
fi |
315 |
if [ -n "${RENAME_PLUGINS}${UPDATE_PLUGINS}" ]; then |
316 |
elog |
317 |
elog "You can use" |
318 |
elog " /bin/bash ${FILESDIR}/plugins-rebuild.sh" |
319 |
elog "to automatically handle this." |
320 |
elog |
321 |
epause 5 |
322 |
ebeep 3 |
323 |
fi |
324 |
} |
325 |
|
326 |
pkg_postrm() { |
327 |
gtk-update-icon-cache -f -t "${ROOT}"/usr/share/icons/hicolor |
328 |
} |
329 |
|
330 |
|
331 |
|
332 |
1.1 mail-client/claws-mail/claws-mail-3.0.2-r1.ebuild |
333 |
|
334 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/claws-mail/claws-mail-3.0.2-r1.ebuild?rev=1.1&view=markup |
335 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/claws-mail/claws-mail-3.0.2-r1.ebuild?rev=1.1&content-type=text/plain |
336 |
|
337 |
Index: claws-mail-3.0.2-r1.ebuild |
338 |
=================================================================== |
339 |
# Copyright 1999-2007 Gentoo Foundation |
340 |
# Distributed under the terms of the GNU General Public License v2 |
341 |
# $Header: /var/cvsroot/gentoo-x86/mail-client/claws-mail/claws-mail-3.0.2-r1.ebuild,v 1.1 2007/12/04 20:42:45 ticho Exp $ |
342 |
|
343 |
IUSE="bogofilter clamav crypt dillo doc gnome imap ipv6 kde ldap pda session spamassassin spell ssl startup-notification xface" |
344 |
|
345 |
inherit eutils multilib |
346 |
|
347 |
DESCRIPTION="Claws-Mail is an email client (and news reader) based on GTK+" |
348 |
HOMEPAGE="http://www.claws-mail.org" |
349 |
|
350 |
if [ -n "${P/*_rc*/}" ]; then |
351 |
SRC_URI="mirror://sourceforge/sylpheed-claws/${P}.tar.bz2" |
352 |
else |
353 |
MY_P="${P/_/-}" |
354 |
S="${WORKDIR}/${MY_P}" |
355 |
SRC_URI="http://www.claws-mail.org/snapshots/${MY_P}.tar.bz2" |
356 |
fi |
357 |
|
358 |
SLOT="0" |
359 |
LICENSE="GPL-3" |
360 |
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
361 |
|
362 |
COMMONDEPEND=">=x11-libs/gtk+-2.6 |
363 |
pda? ( >=app-pda/jpilot-0.99 ) |
364 |
ssl? ( >=dev-libs/openssl-0.9.7 ) |
365 |
ldap? ( >=net-nds/openldap-2.0.7 ) |
366 |
crypt? ( >=app-crypt/gpgme-1.1.1 ) |
367 |
dillo? ( www-client/dillo ) |
368 |
spell? ( virtual/aspell-dict ) |
369 |
clamav? ( app-antivirus/clamav ) |
370 |
kde? ( kde-base/kdelibs ) |
371 |
imap? ( >=net-libs/libetpan-0.49 ) |
372 |
gnome? ( >=gnome-base/libgnomeprintui-2.2 ) |
373 |
startup-notification? ( x11-libs/startup-notification ) |
374 |
bogofilter? ( mail-filter/bogofilter ) |
375 |
session? ( x11-libs/libSM |
376 |
x11-libs/libICE ) |
377 |
!<mail-client/sylpheed-claws-2.6.1" # old name, block as user hint and due to some file collision |
378 |
|
379 |
DEPEND="${COMMONDEPEND} |
380 |
xface? ( >=media-libs/compface-1.4 ) |
381 |
>=sys-apps/sed-4 |
382 |
dev-util/pkgconfig" |
383 |
|
384 |
RDEPEND="${COMMONDEPEND} |
385 |
app-misc/mime-types |
386 |
x11-misc/shared-mime-info" |
387 |
|
388 |
PLUGIN_NAMES="acpi-notifier att-remover attachwarner cachesaver etpan-privacy fetchinfo gtkhtml maildir mailmbox newmail notification pdf-viewer perl rssyl smime synce vcalendar" |
389 |
|
390 |
src_unpack() { |
391 |
unpack ${A} |
392 |
cd "${S}" |
393 |
|
394 |
# Remove unmaintained insecure script, following upstream action |
395 |
rm tools/*sylprint* || die |
396 |
} |
397 |
|
398 |
src_compile() { |
399 |
local myconf |
400 |
|
401 |
# Optional features |
402 |
myconf="${myconf} `use_enable gnome gnomeprint`" |
403 |
myconf="${myconf} `use_enable imap libetpan`" |
404 |
myconf="${myconf} `use_enable ipv6`" |
405 |
myconf="${myconf} `use_enable ldap`" |
406 |
myconf="${myconf} `use_enable pda jpilot`" |
407 |
myconf="${myconf} `use_enable spell aspell`" |
408 |
myconf="${myconf} `use_enable ssl openssl`" |
409 |
myconf="${myconf} `use_enable xface compface`" |
410 |
myconf="${myconf} `use_enable doc manual`" |
411 |
myconf="${myconf} `use_enable startup-notification`" |
412 |
myconf="${myconf} `use_enable session libsm`" |
413 |
|
414 |
# Optional plugins |
415 |
myconf="${myconf} `use_enable clamav clamav-plugin`" |
416 |
myconf="${myconf} `use_enable crypt pgpmime-plugin`" |
417 |
myconf="${myconf} `use_enable crypt pgpinline-plugin`" |
418 |
myconf="${myconf} `use_enable crypt pgpcore-plugin`" |
419 |
myconf="${myconf} `use_enable dillo dillo-viewer-plugin`" |
420 |
myconf="${myconf} `use_enable spamassassin spamassassin-plugin`" |
421 |
myconf="${myconf} `use_enable bogofilter bogofilter-plugin`" |
422 |
|
423 |
econf \ |
424 |
--enable-trayicon-plugin \ |
425 |
--disable-maemo \ |
426 |
${myconf} || die "./configure failed" |
427 |
|
428 |
emake || die |
429 |
} |
430 |
|
431 |
src_install() { |
432 |
emake DESTDIR="${D}" install || die |
433 |
|
434 |
# Makefile install claws-mail.png in /usr/share/icons/hicolor/48x48/apps |
435 |
# => also install it in /usr/share/pixmaps for other desktop envs |
436 |
# => also install higher resolution icons in /usr/share/icons/hicolor/... |
437 |
insinto /usr/share/pixmaps |
438 |
doins ${PN}.png || die |
439 |
local res resdir |
440 |
for res in 64x64 128x128 ; do |
441 |
resdir="/usr/share/icons/hicolor/${res}/apps" |
442 |
insinto ${resdir} |
443 |
newins ${PN}-${res}.png ${PN}.png || die |
444 |
done |
445 |
|
446 |
dodoc AUTHORS ChangeLog* INSTALL* NEWS README* TODO* |
447 |
docinto tools |
448 |
dodoc tools/README* |
449 |
|
450 |
insinto /usr/share/applications |
451 |
doins ${PN}.desktop |
452 |
|
453 |
einfo "Installing extra tools" |
454 |
cd "${S}"/tools |
455 |
exeinto /usr/$(get_libdir)/${PN}/tools |
456 |
doexe *.pl *.py *.rc *.conf *.sh || die |
457 |
doexe tb2claws-mail update-po uudec uuooffice || die |
458 |
|
459 |
if use kde; then |
460 |
einfo "Installing kde service scripts" |
461 |
local kdeprefix="$(kde-config --prefix)" |
462 |
local servicescript="${PN}-kdeservicemenu.pl" |
463 |
local desktopfile="${PN}-attach-files.desktop" |
464 |
cd "${S}"/tools/kdeservicemenu |
465 |
sed -i -e "s:SCRIPT_PATH:${kdeprefix}/bin/${servicescript}:g" \ |
466 |
template_${desktopfile} |
467 |
dodir /usr/share/apps/konqueror/servicemenus |
468 |
insopts -m 0644 |
469 |
insinto /usr/share/apps/konqueror/servicemenus |
470 |
newins template_${desktopfile} ${desktopfile} || die |
471 |
dodir ${kdeprefix}/bin |
472 |
insopts -m 755 |
473 |
exeinto ${kdeprefix}/bin |
474 |
doexe ${servicescript} || die |
475 |
fi |
476 |
|
477 |
# kill useless plugin files |
478 |
rm -f "${D}"/usr/lib*/${PN}/plugins/*.{la,a} |
479 |
} |
480 |
|
481 |
pkg_postinst() { |
482 |
gtk-update-icon-cache -f -t "${ROOT}"/usr/share/icons/hicolor |
483 |
|
484 |
UPDATE_PLUGINS="" |
485 |
RENAME_PLUGINS="" |
486 |
for x in ${PLUGIN_NAMES}; do |
487 |
has_version mail-client/${PN}-$x && UPDATE_PLUGINS="${UPDATE_PLUGINS} $x" |
488 |
has_version mail-client/sylpheed-claws-$x && RENAME_PLUGINS="${RENAME_PLUGINS} $x" |
489 |
done |
490 |
if [ -n "${RENAME_PLUGINS}" ]; then |
491 |
elog |
492 |
elog "The following sylpheed-claws plugins were found on your system:" |
493 |
elog |
494 |
for x in ${RENAME_PLUGINS}; do |
495 |
elog " mail-client/sylpheed-claws-$x" |
496 |
done |
497 |
elog |
498 |
elog "If you want to continue using those you need to merge their " |
499 |
elog "renamed counterparts:" |
500 |
elog |
501 |
for x in ${RENAME_PLUGINS}; do |
502 |
elog " mail-client/${PN}-$x" |
503 |
done |
504 |
elog |
505 |
fi |
506 |
if [ -n "${UPDATE_PLUGINS}" ]; then |
507 |
elog |
508 |
elog "You have to re-emerge or update the following plugins:" |
509 |
elog |
510 |
for x in ${UPDATE_PLUGINS}; do |
511 |
elog " mail-client/${PN}-$x" |
512 |
done |
513 |
elog |
514 |
fi |
515 |
if [ -n "${RENAME_PLUGINS}${UPDATE_PLUGINS}" ]; then |
516 |
elog |
517 |
elog "You can use" |
518 |
elog " /bin/bash ${FILESDIR}/plugins-rebuild.sh" |
519 |
elog "to automatically handle this." |
520 |
elog |
521 |
epause 5 |
522 |
ebeep 3 |
523 |
fi |
524 |
} |
525 |
|
526 |
pkg_postrm() { |
527 |
gtk-update-icon-cache -f -t "${ROOT}"/usr/share/icons/hicolor |
528 |
} |
529 |
|
530 |
|
531 |
|
532 |
-- |
533 |
gentoo-commits@g.o mailing list |