Gentoo Archives: gentoo-commits

From: "Andrej Kacian (ticho)" <ticho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in mail-client/claws-mail: ChangeLog claws-mail-3.0.1.ebuild
Date: Tue, 18 Sep 2007 09:16:45
Message-Id: E1IXZ4h-0000j5-Vh@stork.gentoo.org
1 ticho 07/09/18 09:08:55
2
3 Modified: ChangeLog
4 Added: claws-mail-3.0.1.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.1.3.7)
8
9 Revision Changes Path
10 1.47 mail-client/claws-mail/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/claws-mail/ChangeLog?rev=1.47&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/claws-mail/ChangeLog?rev=1.47&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/claws-mail/ChangeLog?r1=1.46&r2=1.47
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/mail-client/claws-mail/ChangeLog,v
19 retrieving revision 1.46
20 retrieving revision 1.47
21 diff -u -r1.46 -r1.47
22 --- ChangeLog 16 Sep 2007 20:11:56 -0000 1.46
23 +++ ChangeLog 18 Sep 2007 09:08:55 -0000 1.47
24 @@ -1,6 +1,11 @@
25 # ChangeLog for mail-client/claws-mail
26 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/mail-client/claws-mail/ChangeLog,v 1.46 2007/09/16 20:11:56 ticho Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/mail-client/claws-mail/ChangeLog,v 1.47 2007/09/18 09:08:55 ticho Exp $
29 +
30 +*claws-mail-3.0.1 (18 Sep 2007)
31 +
32 + 18 Sep 2007; Andrej Kacian <ticho@g.o> +claws-mail-3.0.1.ebuild:
33 + Version bump.
34
35 *claws-mail-3.0.0-r1 (16 Sep 2007)
36
37
38
39
40 1.1 mail-client/claws-mail/claws-mail-3.0.1.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/claws-mail/claws-mail-3.0.1.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/claws-mail/claws-mail-3.0.1.ebuild?rev=1.1&content-type=text/plain
44
45 Index: claws-mail-3.0.1.ebuild
46 ===================================================================
47 # Copyright 1999-2007 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/mail-client/claws-mail/claws-mail-3.0.1.ebuild,v 1.1 2007/09/18 09:08:55 ticho Exp $
50
51 IUSE="bogofilter clamav crypt dillo doc gnome imap ipv6 kde ldap pda session spell ssl startup-notification xface"
52
53 inherit eutils
54
55 DESCRIPTION="Claws-Mail is an email client (and news reader) based on GTK+"
56 HOMEPAGE="http://www.claws-mail.org"
57
58 if [ -n "${P/*_rc*/}" ]; then
59 SRC_URI="mirror://sourceforge/sylpheed-claws/${P}.tar.bz2"
60 else
61 MY_P="${P/_/-}"
62 S="${WORKDIR}/${MY_P}"
63 SRC_URI="http://www.claws-mail.org/snapshots/${MY_P}.tar.bz2"
64 fi
65
66 SLOT="0"
67 LICENSE="GPL-3"
68 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
69
70 COMMONDEPEND=">=x11-libs/gtk+-2.6
71 pda? ( >=app-pda/jpilot-0.99 )
72 ssl? ( >=dev-libs/openssl-0.9.7 )
73 ldap? ( >=net-nds/openldap-2.0.7 )
74 crypt? ( >=app-crypt/gpgme-1.1.1 )
75 dillo? ( www-client/dillo )
76 spell? ( virtual/aspell-dict )
77 clamav? ( app-antivirus/clamav )
78 kde? ( kde-base/kdelibs )
79 imap? ( >=net-libs/libetpan-0.49 )
80 gnome? ( >=gnome-base/libgnomeprintui-2.2 )
81 startup-notification? ( x11-libs/startup-notification )
82 bogofilter? ( mail-filter/bogofilter )
83 session? ( x11-libs/libSM
84 x11-libs/libICE )
85 !<mail-client/sylpheed-claws-2.6.1" # old name, block as user hint and due to some file collision
86
87 DEPEND="${COMMONDEPEND}
88 xface? ( >=media-libs/compface-1.4 )
89 >=sys-apps/sed-4
90 dev-util/pkgconfig"
91
92 RDEPEND="${COMMONDEPEND}
93 app-misc/mime-types
94 x11-misc/shared-mime-info"
95
96 PLUGIN_NAMES="acpi-notifier att-remover attachwarner cachesaver etpan-privacy fetchinfo gtkhtml maildir mailmbox newmail notification pdf-viewer perl rssyl smime synce vcalendar"
97
98 src_compile() {
99 local myconf
100
101 # Optional features
102 myconf="${myconf} `use_enable gnome gnomeprint`"
103 myconf="${myconf} `use_enable imap libetpan`"
104 myconf="${myconf} `use_enable ipv6`"
105 myconf="${myconf} `use_enable ldap`"
106 myconf="${myconf} `use_enable pda jpilot`"
107 myconf="${myconf} `use_enable spell aspell`"
108 myconf="${myconf} `use_enable ssl openssl`"
109 myconf="${myconf} `use_enable xface compface`"
110 myconf="${myconf} `use_enable doc manual`"
111 myconf="${myconf} `use_enable startup-notification`"
112 myconf="${myconf} `use_enable session libsm`"
113
114 # Optional plugins
115 myconf="${myconf} `use_enable clamav clamav-plugin`"
116 myconf="${myconf} `use_enable crypt pgpmime-plugin`"
117 myconf="${myconf} `use_enable crypt pgpinline-plugin`"
118 myconf="${myconf} `use_enable crypt pgpcore-plugin`"
119 myconf="${myconf} `use_enable dillo dillo-viewer-plugin`"
120 myconf="${myconf} `use_enable spamassassin spamassassin-plugin`"
121 myconf="${myconf} `use_enable bogofilter bogofilter-plugin`"
122
123 econf \
124 --enable-trayicon-plugin \
125 --disable-maemo \
126 ${myconf} || die "./configure failed"
127
128 emake || die
129 }
130
131 src_install() {
132 make DESTDIR=${D} install || die
133
134 # Makefile install claws-mail.png in /usr/share/icons/hicolor/48x48/apps
135 # => also install it in /usr/share/pixmaps for other desktop envs
136 # => also install higher resolution icons in /usr/share/icons/hicolor/...
137 insinto /usr/share/pixmaps
138 doins ${PN}.png || die
139 local res resdir
140 for res in 64x64 128x128 ; do
141 resdir="/usr/share/icons/hicolor/${res}/apps"
142 insinto ${resdir}
143 newins ${PN}-${res}.png ${PN}.png || die
144 done
145
146 dodoc AUTHORS ChangeLog* INSTALL* NEWS README* TODO*
147 docinto tools
148 dodoc tools/README*
149
150 insinto /usr/share/applications
151 doins ${PN}.desktop
152
153 einfo "Installing extra tools"
154 cd ${S}/tools
155 exeinto /usr/lib/${PN}/tools
156 doexe *.pl *.py *.rc *.conf *.sh || die
157 doexe tb2claws-mail update-po uudec uuooffice || die
158
159 if use kde; then
160 einfo "Installing kde service scripts"
161 local kdeprefix="$(kde-config --prefix)"
162 local servicescript="${PN}-kdeservicemenu.pl"
163 local desktopfile="${PN}-attach-files.desktop"
164 cd ${S}/tools/kdeservicemenu
165 sed -i -e "s:SCRIPT_PATH:${kdeprefix}/bin/${servicescript}:g" \
166 template_${desktopfile}
167 dodir /usr/share/apps/konqueror/servicemenus
168 insopts -m 0644
169 insinto /usr/share/apps/konqueror/servicemenus
170 newins template_${desktopfile} ${desktopfile} || die
171 dodir ${kdeprefix}/bin
172 insopts -m 755
173 exeinto ${kdeprefix}/bin
174 doexe ${servicescript} || die
175 fi
176
177 # kill useless plugin files
178 rm -f ${D}/usr/lib*/${PN}/plugins/*.{la,a}
179 }
180
181 pkg_postinst() {
182 gtk-update-icon-cache -f -t ${ROOT}/usr/share/icons/hicolor
183
184 UPDATE_PLUGINS=""
185 RENAME_PLUGINS=""
186 for x in ${PLUGIN_NAMES}; do
187 has_version mail-client/${PN}-$x && UPDATE_PLUGINS="${UPDATE_PLUGINS} $x"
188 has_version mail-client/sylpheed-claws-$x && RENAME_PLUGINS="${RENAME_PLUGINS} $x"
189 done
190 if [ -n "${RENAME_PLUGINS}" ]; then
191 elog
192 elog "The following sylpheed-claws plugins were found on your system:"
193 elog
194 for x in ${RENAME_PLUGINS}; do
195 elog " mail-client/sylpheed-claws-$x"
196 done
197 elog
198 elog "If you want to continue using those you need to merge their "
199 elog "renamed counterparts:"
200 elog
201 for x in ${RENAME_PLUGINS}; do
202 elog " mail-client/${PN}-$x"
203 done
204 elog
205 fi
206 if [ -n "${UPDATE_PLUGINS}" ]; then
207 elog
208 elog "You have to re-emerge or update the following plugins:"
209 elog
210 for x in ${UPDATE_PLUGINS}; do
211 elog " mail-client/${PN}-$x"
212 done
213 elog
214 fi
215 if [ -n "${RENAME_PLUGINS}${UPDATE_PLUGINS}" ]; then
216 elog
217 elog "You can use"
218 elog " /bin/bash ${FILESDIR}/plugins-rebuild.sh"
219 elog "to automatically handle this."
220 elog
221 epause 5
222 ebeep 3
223 fi
224 }
225
226 pkg_postrm() {
227 gtk-update-icon-cache -f -t /usr/share/icons/hicolor
228 }
229
230
231
232 --
233 gentoo-commits@g.o mailing list