Gentoo Archives: gentoo-commits

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