Gentoo Archives: gentoo-commits

From: Priit Laes <plaes@×××××.org>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:master commit in: mail-client/evolution/, mail-client/evolution/files/
Date: Sun, 03 Mar 2013 12:50:27
Message-Id: 1362314995.12544bba84e79a37f7d6769085bcaceffad4430b.plaes@gentoo
1 commit: 12544bba84e79a37f7d6769085bcaceffad4430b
2 Author: Priit Laes <plaes <AT> plaes <DOT> org>
3 AuthorDate: Sun Mar 3 12:49:55 2013 +0000
4 Commit: Priit Laes <plaes <AT> plaes <DOT> org>
5 CommitDate: Sun Mar 3 12:49:55 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=12544bba
7
8 mail-client/evolution: Add 3.7.90 to overlay
9
10 ---
11 mail-client/evolution/evolution-3.7.90.ebuild | 156 ++++++++++++++++++++
12 .../evolution-3.3.91-spamassassin-paths.patch | 60 --------
13 2 files changed, 156 insertions(+), 60 deletions(-)
14
15 diff --git a/mail-client/evolution/evolution-3.7.90.ebuild b/mail-client/evolution/evolution-3.7.90.ebuild
16 new file mode 100644
17 index 0000000..b1f7635
18 --- /dev/null
19 +++ b/mail-client/evolution/evolution-3.7.90.ebuild
20 @@ -0,0 +1,156 @@
21 +# Copyright 1999-2013 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Header: $
24 +
25 +EAPI="5"
26 +GCONF_DEBUG="no"
27 +GNOME2_LA_PUNT="yes"
28 +
29 +inherit eutils flag-o-matic gnome2 versionator
30 +if [[ ${PV} = 9999 ]]; then
31 + inherit gnome2-live
32 +fi
33 +MY_MAJORV=$(get_version_component_range 1-2)
34 +
35 +DESCRIPTION="Integrated mail, addressbook and calendaring functionality"
36 +HOMEPAGE="http://projects.gnome.org/evolution/"
37 +
38 +# Note: explicitly "|| ( LGPL-2 LGPL-3 )", not "LGPL-2+".
39 +LICENSE="|| ( LGPL-2 LGPL-3 ) CC-BY-SA-3.0 FDL-1.3+ OPENLDAP"
40 +SLOT="2.0"
41 +IUSE="bogofilter crypt +gnome-online-accounts gstreamer highlight kerberos ldap map spamassassin ssl +weather"
42 +if [[ ${PV} = 9999 ]]; then
43 + IUSE="${IUSE} doc"
44 + KEYWORDS=""
45 +else
46 + KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
47 +fi
48 +
49 +# We need a graphical pinentry frontend to be able to ask for the GPG
50 +# password from inside evolution, bug 160302
51 +PINENTRY_DEPEND="|| ( app-crypt/pinentry[gtk] app-crypt/pinentry-qt app-crypt/pinentry[qt4] )"
52 +
53 +# glade-3 support is for maintainers only per configure.ac
54 +# pst is not mature enough and changes API/ABI frequently
55 +COMMON_DEPEND=">=dev-libs/glib-2.34:2
56 + >=x11-libs/cairo-1.9.15:=[glib]
57 + >=x11-libs/gtk+-3.4.0:3
58 + >=gnome-base/gnome-desktop-2.91.3:3=
59 + >=gnome-base/gsettings-desktop-schemas-2.91.92
60 + >=media-libs/libcanberra-0.25[gtk3]
61 + >=x11-libs/libnotify-0.7:=
62 + >=gnome-extra/evolution-data-server-${PV}:=[gnome-online-accounts?,weather?]
63 + =gnome-extra/evolution-data-server-${MY_MAJORV}*
64 + >=gnome-extra/gtkhtml-4.5.2:4.0
65 + dev-libs/atk
66 + >=dev-libs/dbus-glib-0.6
67 + >=dev-libs/libxml2-2.7.3:2
68 + >=net-libs/libsoup-gnome-2.40.3:2.4
69 + >=x11-misc/shared-mime-info-0.22
70 + >=x11-themes/gnome-icon-theme-2.30.2.1
71 + >=dev-libs/libgdata-0.10:=
72 + >=net-libs/webkit-gtk-1.10.0
73 +
74 + x11-libs/libSM
75 + x11-libs/libICE
76 +
77 + crypt? ( || (
78 + ( >=app-crypt/gnupg-2.0.1-r2 ${PINENTRY_DEPEND} )
79 + =app-crypt/gnupg-1.4* ) )
80 + map? (
81 + >=app-misc/geoclue-0.12.0
82 + >=media-libs/libchamplain-0.12:0.12
83 + >=media-libs/clutter-1.0.0:1.0
84 + >=media-libs/clutter-gtk-0.90:1.0
85 + >=sci-geosciences/geocode-glib-0.99.0
86 + x11-libs/mx:1.0 )
87 + gnome-online-accounts? ( >=net-libs/gnome-online-accounts-3.2 )
88 + gstreamer? ( || (
89 + ( media-libs/gstreamer:1.0
90 + media-libs/gst-plugins-base:1.0 )
91 + ( media-libs/gstreamer:0.10
92 + media-libs/gst-plugins-base:0.10 )
93 + ) )
94 + kerberos? ( virtual/krb5:= )
95 + ldap? ( >=net-nds/openldap-2:= )
96 + ssl? (
97 + >=dev-libs/nspr-4.6.1:=
98 + >=dev-libs/nss-3.11:= )
99 + weather? ( >=dev-libs/libgweather-3.5.0:2= )"
100 +DEPEND="${COMMON_DEPEND}
101 + app-text/docbook-xml-dtd:4.1.2
102 + dev-util/gtk-doc-am
103 + >=dev-util/intltool-0.40.0
104 + virtual/pkgconfig"
105 +# eautoreconf needs:
106 +# app-text/yelp-tools
107 +# >=gnome-base/gnome-common-2.12
108 +RDEPEND="${COMMON_DEPEND}
109 + bogofilter? ( mail-filter/bogofilter )
110 + highlight? ( app-text/highlight )
111 + spamassassin? ( mail-filter/spamassassin )
112 + !<gnome-extra/evolution-exchange-2.32"
113 +
114 +if [[ ${PV} = 9999 ]]; then
115 + DEPEND="${DEPEND}
116 + app-text/yelp-tools
117 + doc? ( >=dev-util/gtk-doc-1.14 )"
118 +fi
119 +
120 +src_prepare() {
121 + ELTCONF="--reverse-deps"
122 + DOCS="AUTHORS ChangeLog* HACKING MAINTAINERS NEWS* README"
123 +
124 + sed -e "s:@EPREFIX@:${EPREFIX}:g" \
125 + -i data/org.gnome.evolution.spamassassin.gschema.xml.in \
126 + -i modules/spamassassin/evolution-spamassassin.c || die "sed failed"
127 +
128 + gnome2_src_prepare
129 +
130 + # Fix compilation flags crazyness
131 + sed -e 's/\(AM_CPPFLAGS="\)$WARNING_FLAGS/\1/' \
132 + -i configure || die "CPPFLAGS sed failed"
133 +}
134 +
135 +src_configure() {
136 + # Use NSS/NSPR only if 'ssl' is enabled.
137 + # image-inline plugin needs a gtk+:3 gtkimageview, which does not exist yet
138 + [[ ${PV} != 9999 ]] && G2CONF="${G2CONF} ITSTOOL=$(type -P true)"
139 + gnome2_src_configure \
140 + --disable-schemas-compile \
141 + --without-glade-catalog \
142 + --without-kde-applnk-path \
143 + --disable-image-inline \
144 + --disable-pst-import \
145 + --enable-canberra \
146 + $(use_enable bogofilter) \
147 + $(use_enable gnome-online-accounts goa) \
148 + $(use_enable gstreamer audio-inline) \
149 + $(use_enable highlight) \
150 + $(use_enable map contact-maps) \
151 + $(use_enable spamassassin) \
152 + $(use_enable ssl nss) \
153 + $(use_enable ssl smime) \
154 + $(use_with kerberos krb5 "${EPREFIX}"/usr) \
155 + $(use_with ldap openldap) \
156 + $(usex ssl --enable-nss=yes "--without-nspr-libs
157 + --without-nspr-includes
158 + --without-nss-libs
159 + --without-nss-includes") \
160 + $(use_enable weather)
161 +}
162 +
163 +pkg_postinst() {
164 + gnome2_pkg_postinst
165 +
166 + elog "To change the default browser if you are not using GNOME, edit"
167 + elog "~/.local/share/applications/mimeapps.list so it includes the"
168 + elog "following content:"
169 + elog ""
170 + elog "[Default Applications]"
171 + elog "x-scheme-handler/http=firefox.desktop"
172 + elog "x-scheme-handler/https=firefox.desktop"
173 + elog ""
174 + elog "(replace firefox.desktop with the name of the appropriate .desktop"
175 + elog "file from /usr/share/applications if you use a different browser)."
176 +}
177
178 diff --git a/mail-client/evolution/files/evolution-3.3.91-spamassassin-paths.patch b/mail-client/evolution/files/evolution-3.3.91-spamassassin-paths.patch
179 deleted file mode 100644
180 index 3078fb9..0000000
181 --- a/mail-client/evolution/files/evolution-3.3.91-spamassassin-paths.patch
182 +++ /dev/null
183 @@ -1,60 +0,0 @@
184 -From 2f4ddb9f4d4262afbf8f60dd601a639ae33e05c6 Mon Sep 17 00:00:00 2001
185 -From: Alexandre Rostovtsev <tetromino@g.o>
186 -Date: Fri, 16 Mar 2012 01:56:14 -0400
187 -Subject: [PATCH] Use correct Gentoo paths for spamassassin executables
188 -
189 ----
190 - ...org.gnome.evolution.spamassassin.gschema.xml.in | 4 ++--
191 - modules/spamassassin/evolution-spamassassin.c | 8 ++++----
192 - 2 files changed, 6 insertions(+), 6 deletions(-)
193 -
194 -diff --git a/data/org.gnome.evolution.spamassassin.gschema.xml.in b/data/org.gnome.evolution.spamassassin.gschema.xml.in
195 -index 85d43d4..07fabd3 100644
196 ---- a/data/org.gnome.evolution.spamassassin.gschema.xml.in
197 -+++ b/data/org.gnome.evolution.spamassassin.gschema.xml.in
198 -@@ -16,12 +16,12 @@
199 - <_description>Use SpamAssassin daemon and client (spamc/spamd).</_description>
200 - </key>
201 - <key name="spamc-binary" type="s">
202 -- <default>'/usr/bin/spamc'</default>
203 -+ <default>'@EPREFIX@/usr/bin/spamc'</default>
204 - <_summary>SpamAssassin client binary</_summary>
205 - <_description>SpamAssassin client binary</_description>
206 - </key>
207 - <key name="spamd-binary" type="s">
208 -- <default>'/usr/bin/spamd'</default>
209 -+ <default>'@EPREFIX@/usr/sbin/spamd'</default>
210 - <_summary>SpamAssassin daemon binary</_summary>
211 - <_description>SpamAssassin daemon binary</_description>
212 - </key>
213 -diff --git a/modules/spamassassin/evolution-spamassassin.c b/modules/spamassassin/evolution-spamassassin.c
214 -index 7f595ca..a92e02d 100644
215 ---- a/modules/spamassassin/evolution-spamassassin.c
216 -+++ b/modules/spamassassin/evolution-spamassassin.c
217 -@@ -35,19 +35,19 @@
218 - ((obj), E_TYPE_SPAM_ASSASSIN, ESpamAssassin))
219 -
220 - #ifndef SPAMASSASSIN_BINARY
221 --#define SPAMASSASSIN_BINARY "/usr/bin/spamassassin"
222 -+#define SPAMASSASSIN_BINARY "@EPREFIX@/usr/bin/spamassassin"
223 - #endif
224 -
225 - #ifndef SA_LEARN_BINARY
226 --#define SA_LEARN_BINARY "/usr/bin/sa-learn"
227 -+#define SA_LEARN_BINARY "@EPREFIX@/usr/bin/sa-learn"
228 - #endif
229 -
230 - #ifndef SPAMC_BINARY
231 --#define SPAMC_BINARY "/usr/bin/spamc"
232 -+#define SPAMC_BINARY "@EPREFIX@/usr/bin/spamc"
233 - #endif
234 -
235 - #ifndef SPAMD_BINARY
236 --#define SPAMD_BINARY "/usr/bin/spamd"
237 -+#define SPAMD_BINARY "@EPREFIX@/usr/sbin/spamd"
238 - #endif
239 -
240 - /* For starting our own daemon. */
241 ---
242 -1.7.8.5
243 -