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.3.1.ebuild
Date: Sat, 23 Feb 2008 12:57:05
Message-Id: E1JStw6-0005ks-1c@stork.gentoo.org
1 ticho 08/02/23 12:57:02
2
3 Modified: ChangeLog
4 Added: claws-mail-3.3.1.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.66 mail-client/claws-mail/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/claws-mail/ChangeLog?rev=1.66&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/claws-mail/ChangeLog?rev=1.66&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/claws-mail/ChangeLog?r1=1.65&r2=1.66
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/mail-client/claws-mail/ChangeLog,v
19 retrieving revision 1.65
20 retrieving revision 1.66
21 diff -u -r1.65 -r1.66
22 --- ChangeLog 16 Feb 2008 10:30:02 -0000 1.65
23 +++ ChangeLog 23 Feb 2008 12:57:01 -0000 1.66
24 @@ -1,6 +1,11 @@
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.65 2008/02/16 10:30:02 ticho Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/mail-client/claws-mail/ChangeLog,v 1.66 2008/02/23 12:57:01 ticho Exp $
29 +
30 +*claws-mail-3.3.1 (23 Feb 2008)
31 +
32 + 23 Feb 2008; Andrej Kacian <ticho@g.o> +claws-mail-3.3.1.ebuild:
33 + Version bump.
34
35 16 Feb 2008; Andrej Kacian <ticho@g.o> claws-mail-3.3.0.ebuild:
36 Removed clamav from list of external plugins, due to licensing constraints.
37
38
39
40 1.1 mail-client/claws-mail/claws-mail-3.3.1.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/claws-mail/claws-mail-3.3.1.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/claws-mail/claws-mail-3.3.1.ebuild?rev=1.1&content-type=text/plain
44
45 Index: claws-mail-3.3.1.ebuild
46 ===================================================================
47 # Copyright 1999-2008 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.3.1.ebuild,v 1.1 2008/02/23 12:57:01 ticho Exp $
50
51 IUSE="bogofilter crypt dillo doc gnome gnutls imap ipv6 kde ldap nntp pda session spamassassin spell ssl startup-notification xface"
52
53 inherit eutils multilib
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 kde? ( kde-base/kdelibs )
78 imap? ( >=net-libs/libetpan-0.49 )
79 nntp? ( >=net-libs/libetpan-0.49 )
80 gnome? ( >=gnome-base/libgnomeprintui-2.2 )
81 gnutls? ( net-libs/gnutls )
82 startup-notification? ( x11-libs/startup-notification )
83 bogofilter? ( mail-filter/bogofilter )
84 session? ( x11-libs/libSM
85 x11-libs/libICE )"
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_unpack() {
99 unpack ${A}
100 cd "${S}"
101 }
102
103 src_compile() {
104 local myconf="--disable-libetpan"
105
106 # libetpan is needed if user wants nntp or imap functionality
107 # TODO: Perhaps change it into a single "libetpan" USE flag?
108 use imap && myconf="--enable-libetpan"
109 use nntp && myconf="--enable-libetpan"
110
111 # Optional features
112 myconf="${myconf} `use_enable gnome gnomeprint`"
113 myconf="${myconf} `use_enable ipv6`"
114 myconf="${myconf} `use_enable ldap`"
115 myconf="${myconf} `use_enable pda jpilot`"
116 myconf="${myconf} `use_enable spell aspell`"
117 myconf="${myconf} `use_enable gnutls`"
118 myconf="${myconf} `use_enable ssl openssl`"
119 myconf="${myconf} `use_enable xface compface`"
120 myconf="${myconf} `use_enable doc manual`"
121 myconf="${myconf} `use_enable startup-notification`"
122 myconf="${myconf} `use_enable session libsm`"
123
124 # Optional plugins
125 myconf="${myconf} `use_enable crypt pgpmime-plugin`"
126 myconf="${myconf} `use_enable crypt pgpinline-plugin`"
127 myconf="${myconf} `use_enable crypt pgpcore-plugin`"
128 myconf="${myconf} `use_enable dillo dillo-viewer-plugin`"
129 myconf="${myconf} `use_enable spamassassin spamassassin-plugin`"
130 myconf="${myconf} `use_enable bogofilter bogofilter-plugin`"
131
132 econf \
133 --enable-trayicon-plugin \
134 --disable-maemo \
135 ${myconf} || die "./configure failed"
136
137 emake || die
138 }
139
140 src_install() {
141 emake DESTDIR="${D}" install || die
142
143 # Makefile install claws-mail.png in /usr/share/icons/hicolor/48x48/apps
144 # => also install it in /usr/share/pixmaps for other desktop envs
145 # => also install higher resolution icons in /usr/share/icons/hicolor/...
146 insinto /usr/share/pixmaps
147 doins ${PN}.png || die
148 local res resdir
149 for res in 64x64 128x128 ; do
150 resdir="/usr/share/icons/hicolor/${res}/apps"
151 insinto ${resdir}
152 newins ${PN}-${res}.png ${PN}.png || die
153 done
154
155 dodoc AUTHORS ChangeLog* INSTALL* NEWS README* TODO*
156 docinto tools
157 dodoc tools/README*
158
159 insinto /usr/share/applications
160 doins ${PN}.desktop
161
162 einfo "Installing extra tools"
163 cd "${S}"/tools
164 exeinto /usr/$(get_libdir)/${PN}/tools
165 doexe *.pl *.py *.conf *.sh || die
166 doexe tb2claws-mail update-po uudec uuooffice || die
167
168 if use kde; then
169 einfo "Installing kde service scripts"
170 local kdeprefix="$(kde-config --prefix)"
171 local servicescript="${PN}-kdeservicemenu.pl"
172 local desktopfile="${PN}-attach-files.desktop"
173 cd "${S}"/tools/kdeservicemenu
174 sed -i -e "s:SCRIPT_PATH:${kdeprefix}/bin/${servicescript}:g" \
175 ${desktopfile}.template
176 dodir /usr/share/apps/konqueror/servicemenus
177 insopts -m 0644
178 insinto /usr/share/apps/konqueror/servicemenus
179 newins ${desktopfile}.template ${desktopfile} || die
180 dodir ${kdeprefix}/bin
181 insopts -m 755
182 exeinto ${kdeprefix}/bin
183 doexe ${servicescript} || die
184 fi
185
186 # kill useless plugin files
187 rm -f "${D}"/usr/lib*/${PN}/plugins/*.{la,a}
188 }
189
190 pkg_postinst() {
191 gtk-update-icon-cache -f -t "${ROOT}"/usr/share/icons/hicolor
192
193 UPDATE_PLUGINS=""
194 RENAME_PLUGINS=""
195 for x in ${PLUGIN_NAMES}; do
196 has_version mail-client/${PN}-$x && UPDATE_PLUGINS="${UPDATE_PLUGINS} $x"
197 has_version mail-client/sylpheed-claws-$x && RENAME_PLUGINS="${RENAME_PLUGINS} $x"
198 done
199 if [ -n "${RENAME_PLUGINS}" ]; then
200 elog
201 elog "The following sylpheed-claws plugins were found on your system:"
202 elog
203 for x in ${RENAME_PLUGINS}; do
204 elog " mail-client/sylpheed-claws-$x"
205 done
206 elog
207 elog "If you want to continue using those you need to merge their "
208 elog "renamed counterparts:"
209 elog
210 for x in ${RENAME_PLUGINS}; do
211 elog " mail-client/${PN}-$x"
212 done
213 elog
214 fi
215 if [ -n "${UPDATE_PLUGINS}" ]; then
216 elog
217 elog "You have to re-emerge or update the following plugins:"
218 elog
219 for x in ${UPDATE_PLUGINS}; do
220 elog " mail-client/${PN}-$x"
221 done
222 elog
223 fi
224 if [ -n "${RENAME_PLUGINS}${UPDATE_PLUGINS}" ]; then
225 elog
226 elog "You can use"
227 elog " /bin/bash ${FILESDIR}/plugins-rebuild.sh"
228 elog "to automatically handle this."
229 elog
230 epause 5
231 ebeep 3
232 fi
233 }
234
235 pkg_postrm() {
236 gtk-update-icon-cache -f -t "${ROOT}"/usr/share/icons/hicolor
237 }
238
239
240
241 --
242 gentoo-commits@l.g.o mailing list