1 |
commit: af910a840dc83aa133ce63718d836d1f14d1bc34 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 3 15:17:37 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 3 15:21:47 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af910a84 |
7 |
|
8 |
mail-client/claws-mail: Added live ebuild. |
9 |
|
10 |
Package-Manager: Portage-2.3.31, Repoman-2.3.9 |
11 |
|
12 |
mail-client/claws-mail/claws-mail-9999.ebuild | 210 ++++++++++++++++++++++++++ |
13 |
1 file changed, 210 insertions(+) |
14 |
|
15 |
diff --git a/mail-client/claws-mail/claws-mail-9999.ebuild b/mail-client/claws-mail/claws-mail-9999.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..065ab0571e8 |
18 |
--- /dev/null |
19 |
+++ b/mail-client/claws-mail/claws-mail-9999.ebuild |
20 |
@@ -0,0 +1,210 @@ |
21 |
+# Copyright 1999-2018 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=6 |
25 |
+ |
26 |
+PYTHON_COMPAT=( python2_7 ) |
27 |
+inherit autotools gnome2-utils python-single-r1 xdg-utils |
28 |
+ |
29 |
+DESCRIPTION="An email client (and news reader) based on GTK+" |
30 |
+HOMEPAGE="http://www.claws-mail.org/" |
31 |
+ |
32 |
+if [[ "${PV}" == 9999 ]] ; then |
33 |
+ inherit git-r3 |
34 |
+ EGIT_REPO_URI="git://git.claws-mail.org/claws.git" |
35 |
+else |
36 |
+ SRC_URI="http://www.claws-mail.org/download.php?file=releases/${P}.tar.xz" |
37 |
+ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86" |
38 |
+fi |
39 |
+ |
40 |
+SLOT="0" |
41 |
+LICENSE="GPL-3" |
42 |
+ |
43 |
+IUSE="archive bogofilter calendar clamav dbus debug doc gdata +gnutls gtk3 +imap ipv6 ldap +libcanberra +libindicate +libnotify networkmanager nls nntp +notification pda pdf perl +pgp python rss session sieve smime spamassassin spam-report spell startup-notification svg valgrind xface" |
44 |
+REQUIRED_USE="libcanberra? ( notification ) |
45 |
+ libindicate? ( notification ) |
46 |
+ libnotify? ( notification ) |
47 |
+ networkmanager? ( dbus ) |
48 |
+ python? ( ${PYTHON_REQUIRED_USE} ) |
49 |
+ smime? ( pgp )" |
50 |
+ |
51 |
+COMMONDEPEND=" |
52 |
+ net-mail/ytnef |
53 |
+ archive? ( |
54 |
+ app-arch/libarchive |
55 |
+ >=net-misc/curl-7.9.7 |
56 |
+ ) |
57 |
+ bogofilter? ( mail-filter/bogofilter ) |
58 |
+ calendar? ( |
59 |
+ >=dev-libs/libical-2.0.0 |
60 |
+ >=net-misc/curl-7.9.7 |
61 |
+ ) |
62 |
+ dbus? ( >=dev-libs/dbus-glib-0.60 ) |
63 |
+ gdata? ( >=dev-libs/libgdata-0.17.2 ) |
64 |
+ gnutls? ( >=net-libs/gnutls-3.0 ) |
65 |
+ gtk3? ( x11-libs/gtk+:3 ) |
66 |
+ !gtk3? ( >=x11-libs/gtk+-2.24:2 ) |
67 |
+ imap? ( >=net-libs/libetpan-0.57 ) |
68 |
+ ldap? ( >=net-nds/openldap-2.0.7 ) |
69 |
+ nls? ( >=sys-devel/gettext-0.18 ) |
70 |
+ nntp? ( >=net-libs/libetpan-0.57 ) |
71 |
+ notification? ( |
72 |
+ dev-libs/glib:2 |
73 |
+ libcanberra? ( media-libs/libcanberra[gtk] ) |
74 |
+ libindicate? ( dev-libs/libindicate:3[gtk] ) |
75 |
+ libnotify? ( x11-libs/libnotify ) |
76 |
+ ) |
77 |
+ pda? ( >=app-pda/jpilot-0.99 ) |
78 |
+ pdf? ( app-text/poppler[cairo] ) |
79 |
+ pgp? ( >=app-crypt/gpgme-1.0.0 ) |
80 |
+ session? ( |
81 |
+ x11-libs/libICE |
82 |
+ x11-libs/libSM |
83 |
+ ) |
84 |
+ smime? ( >=app-crypt/gpgme-1.0.0 ) |
85 |
+ spam-report? ( >=net-misc/curl-7.9.7 ) |
86 |
+ spell? ( >=app-text/enchant-1.0.0 ) |
87 |
+ startup-notification? ( x11-libs/startup-notification ) |
88 |
+ svg? ( >=gnome-base/librsvg-2.40.5 ) |
89 |
+ valgrind? ( dev-util/valgrind ) |
90 |
+" |
91 |
+ |
92 |
+DEPEND="${COMMONDEPEND} |
93 |
+ app-arch/xz-utils |
94 |
+ virtual/pkgconfig |
95 |
+ xface? ( >=media-libs/compface-1.4 )" |
96 |
+ |
97 |
+RDEPEND="${COMMONDEPEND} |
98 |
+ app-misc/mime-types |
99 |
+ x11-misc/shared-mime-info |
100 |
+ clamav? ( app-antivirus/clamav ) |
101 |
+ networkmanager? ( net-misc/networkmanager ) |
102 |
+ pdf? ( app-text/ghostscript-gpl ) |
103 |
+ perl? ( dev-lang/perl:= ) |
104 |
+ python? ( |
105 |
+ ${PYTHON_DEPS} |
106 |
+ >=dev-python/pygtk-2.10.3 |
107 |
+ ) |
108 |
+ rss? ( |
109 |
+ dev-libs/libxml2 |
110 |
+ net-misc/curl |
111 |
+ )" |
112 |
+ |
113 |
+pkg_setup() { |
114 |
+ use python && python-single-r1_pkg_setup |
115 |
+} |
116 |
+ |
117 |
+src_prepare() { |
118 |
+ default |
119 |
+ eautoreconf |
120 |
+} |
121 |
+ |
122 |
+src_configure() { |
123 |
+ # Don't use libsoup-gnome (bug #565924) |
124 |
+ export HAVE_LIBSOUP_GNOME=no |
125 |
+ |
126 |
+ local myeconfargs=( |
127 |
+ --disable-bsfilter-plugin |
128 |
+ --disable-fancy-plugin |
129 |
+ --disable-generic-umpc |
130 |
+ --enable-acpi_notifier-plugin |
131 |
+ --enable-address_keeper-plugin |
132 |
+ --enable-alternate-addressbook |
133 |
+ --enable-att_remover-plugin |
134 |
+ --enable-attachwarner-plugin |
135 |
+ --enable-fetchinfo-plugin |
136 |
+ --enable-mailmbox-plugin |
137 |
+ --enable-newmail-plugin |
138 |
+ --enable-tnef_parse-plugin |
139 |
+ --with-password-encryption=$(usex gnutls gnutls old) |
140 |
+ $(use_enable archive archive-plugin) |
141 |
+ $(use_enable bogofilter bogofilter-plugin) |
142 |
+ $(use_enable calendar vcalendar-plugin) |
143 |
+ $(use_enable clamav clamd-plugin) |
144 |
+ $(use_enable dbus) |
145 |
+ $(use_enable debug crash-dialog) |
146 |
+ $(use_enable doc manual) |
147 |
+ $(use_enable gdata gdata-plugin) |
148 |
+ $(use_enable gnutls) |
149 |
+ $(use_enable gtk3) |
150 |
+ $(use_enable ipv6) |
151 |
+ $(use_enable ldap) |
152 |
+ $(use_enable networkmanager) |
153 |
+ $(use_enable nls) |
154 |
+ $(use_enable notification notification-plugin) |
155 |
+ $(use_enable pda jpilot) |
156 |
+ $(use_enable pdf pdf_viewer-plugin) |
157 |
+ $(use_enable perl perl-plugin) |
158 |
+ $(use_enable pgp pgpcore-plugin) |
159 |
+ $(use_enable pgp pgpinline-plugin) |
160 |
+ $(use_enable pgp pgpmime-plugin) |
161 |
+ $(use_enable python python-plugin) |
162 |
+ $(use_enable rss rssyl-plugin) |
163 |
+ $(use_enable session libsm) |
164 |
+ $(use_enable sieve managesieve-plugin) |
165 |
+ $(use_enable smime smime-plugin) |
166 |
+ $(use_enable spam-report spam_report-plugin) |
167 |
+ $(use_enable spamassassin spamassassin-plugin) |
168 |
+ $(use_enable spell enchant) |
169 |
+ $(use_enable startup-notification) |
170 |
+ $(use_enable svg) |
171 |
+ $(use_enable valgrind valgrind) |
172 |
+ $(use_enable xface compface) |
173 |
+ ) |
174 |
+ |
175 |
+ # libetpan is needed if user wants nntp or imap functionality |
176 |
+ if use imap || use nntp ; then |
177 |
+ myeconfargs+=( --enable-libetpan ) |
178 |
+ else |
179 |
+ myeconfargs+=( --disable-libetpan ) |
180 |
+ fi |
181 |
+ |
182 |
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
183 |
+} |
184 |
+ |
185 |
+src_install() { |
186 |
+ local DOCS=( AUTHORS ChangeLog* INSTALL* NEWS README* TODO* ) |
187 |
+ default |
188 |
+ |
189 |
+ # Makefile install claws-mail.png in /usr/share/icons/hicolor/48x48/apps |
190 |
+ # => also install it in /usr/share/pixmaps for other desktop envs |
191 |
+ # => also install higher resolution icons in /usr/share/icons/hicolor/... |
192 |
+ insinto /usr/share/pixmaps |
193 |
+ doins ${PN}.png |
194 |
+ local size |
195 |
+ for size in 64 128 ; do |
196 |
+ newicon -s ${size} ${PN}-${size}x${size}.png ${PN}.png |
197 |
+ done |
198 |
+ |
199 |
+ docinto tools |
200 |
+ dodoc tools/README* |
201 |
+ |
202 |
+ domenu ${PN}.desktop |
203 |
+ |
204 |
+ einfo "Installing extra tools" |
205 |
+ cd "${S}"/tools || die |
206 |
+ exeinto /usr/$(get_libdir)/${PN}/tools |
207 |
+ doexe *.pl *.py *.conf *.sh |
208 |
+ doexe tb2claws-mail update-po uudec uuooffice |
209 |
+ |
210 |
+ # kill useless files |
211 |
+ rm -f "${ED%/}"/usr/lib*/claws-mail/plugins/*.{a,la} |
212 |
+} |
213 |
+ |
214 |
+pkg_preinst() { |
215 |
+ gnome2_icon_savelist |
216 |
+} |
217 |
+ |
218 |
+pkg_postinst() { |
219 |
+ ewarn "When upgrading from version 3.9.0 or below some changes have happened:" |
220 |
+ ewarn "- There are no individual plugins in mail-client/claws-mail-* anymore, but they are integrated mostly controlled through USE flags" |
221 |
+ ewarn "- Plugins with no special dependencies are just built and can be loaded through the interface" |
222 |
+ ewarn "- The gtkhtml2, dillo and trayicon plugins have been dropped entirely" |
223 |
+ gnome2_icon_cache_update |
224 |
+ xdg_desktop_database_update |
225 |
+} |
226 |
+ |
227 |
+pkg_postrm() { |
228 |
+ gnome2_icon_cache_update |
229 |
+ xdg_desktop_database_update |
230 |
+} |