1 |
commit: f3a1dd273fde122cd45ef342b21dee01cbef7205 |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 29 13:40:25 2019 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 29 14:35:09 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3a1dd27 |
7 |
|
8 |
mail-client/geary: various package fixes and touchups |
9 |
|
10 |
* Fix tests (one needs virtx) |
11 |
* Fix some minimum deps and sort in meson.build occurrence order |
12 |
* Require webkit-gtk-2.26 to ensure a build conditional |
13 |
compatibility branch is used (building against 2.24 and then |
14 |
upgrading webkitgtk to 2.26 without geary rebuild may end up |
15 |
taking lots of CPU for some operations, afaiu) |
16 |
* Fix automagic dep on ytnef (previously may have linked against |
17 |
it even with USE=-ytnef if the library was present) |
18 |
* Drop conditional unwind support, as it's automagic and as it's |
19 |
a small dep, didn't fix it fully (much more involved than for |
20 |
ytnef) |
21 |
* Move introspection,vala USE flag requirements to build-time |
22 |
only - these aren't needed at runtime for geary. |
23 |
* Add missing itstool build depend |
24 |
* Drop old LINGUAS based translation file dropping - it's not |
25 |
done for almost all meson based packages, and we aren't special |
26 |
in any way |
27 |
* Drop dconf dep - again, don't think geary is more special than |
28 |
any other GSettings using application that don't dep on it for |
29 |
persistent configuration storage |
30 |
* Explicit meson_options settings where appropriate, resorted in |
31 |
meson_options.txt order |
32 |
|
33 |
Package-Manager: Portage-2.3.79, Repoman-2.3.12 |
34 |
Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org> |
35 |
|
36 |
.../geary/files/3.34.2-fix-ytnef-automagic.patch | 32 +++++++ |
37 |
mail-client/geary/geary-3.34.2-r1.ebuild | 101 +++++++++++++++++++++ |
38 |
2 files changed, 133 insertions(+) |
39 |
|
40 |
diff --git a/mail-client/geary/files/3.34.2-fix-ytnef-automagic.patch b/mail-client/geary/files/3.34.2-fix-ytnef-automagic.patch |
41 |
new file mode 100644 |
42 |
index 00000000000..dccc40aab8c |
43 |
--- /dev/null |
44 |
+++ b/mail-client/geary/files/3.34.2-fix-ytnef-automagic.patch |
45 |
@@ -0,0 +1,32 @@ |
46 |
+From 91f78fb411bc2bf1e2269ceab02740e9cb969c9b Mon Sep 17 00:00:00 2001 |
47 |
+From: Mart Raudsepp <leio@g.o> |
48 |
+Date: Thu, 26 Dec 2019 19:28:07 +0200 |
49 |
+Subject: [PATCH] build: Fix automagic dependency on ytnef library |
50 |
+ |
51 |
+It would be best to use meson feature option type for ytnef and unwind, |
52 |
+but for now fix the automagic dependency on ytnef with the existing |
53 |
+meson_options.txt setup. |
54 |
+It was adding ytnef to list of dependencies unconditionally, and then |
55 |
+also if tnef-support was enabled. So if the option was disabled, but the |
56 |
+pkg-config file was present, it would still link to it surprisingly. |
57 |
+Just remove the unconditional addition to dep, and rely on the already |
58 |
+existing conditional addition to deps. |
59 |
+--- |
60 |
+ src/engine/meson.build | 1 - |
61 |
+ 1 file changed, 1 deletion(-) |
62 |
+ |
63 |
+diff --git a/src/engine/meson.build b/src/engine/meson.build |
64 |
+index cb61c2aa..23b5fa48 100644 |
65 |
+--- a/src/engine/meson.build |
66 |
++++ b/src/engine/meson.build |
67 |
+@@ -325,7 +325,6 @@ geary_engine_dependencies = [ |
68 |
+ gmime, |
69 |
+ libmath, |
70 |
+ libxml, |
71 |
+- libytnef, |
72 |
+ posix, |
73 |
+ sqlite |
74 |
+ ] |
75 |
+-- |
76 |
+2.20.1 |
77 |
+ |
78 |
|
79 |
diff --git a/mail-client/geary/geary-3.34.2-r1.ebuild b/mail-client/geary/geary-3.34.2-r1.ebuild |
80 |
new file mode 100644 |
81 |
index 00000000000..3b14c01f5f8 |
82 |
--- /dev/null |
83 |
+++ b/mail-client/geary/geary-3.34.2-r1.ebuild |
84 |
@@ -0,0 +1,101 @@ |
85 |
+# Copyright 1999-2019 Gentoo Authors |
86 |
+# Distributed under the terms of the GNU General Public License v2 |
87 |
+ |
88 |
+EAPI=7 |
89 |
+VALA_MIN_API_VERSION="0.44" |
90 |
+ |
91 |
+inherit gnome.org gnome2-utils meson vala virtualx xdg |
92 |
+ |
93 |
+DESCRIPTION="A lightweight, easy-to-use, feature-rich email client" |
94 |
+HOMEPAGE="https://wiki.gnome.org/Apps/Geary" |
95 |
+ |
96 |
+LICENSE="LGPL-2.1+ BSD-2 CC-BY-3.0 CC-BY-SA-3.0" # code is LGPL-2.1+, BSD-2 for bundled snowball-stemmer, CC licenses for some icons |
97 |
+SLOT="0" |
98 |
+ |
99 |
+IUSE="ytnef" |
100 |
+ |
101 |
+KEYWORDS="~amd64" |
102 |
+ |
103 |
+# for now both enchants work |
104 |
+# FIXME: add valadoc support |
105 |
+ |
106 |
+# >=webkit-gtk-2.26 dep to ensure HAS_WEBKIT_SHARED_PROC is handled for it. |
107 |
+# If not, it could be compiled against 2.24 and then webkit-gtk upgraded and |
108 |
+# geary not rebuilt, ending up in geary issues #558 and #559 still. |
109 |
+DEPEND=" |
110 |
+ >=dev-libs/glib-2.54:2 |
111 |
+ >=x11-libs/gtk+-3.24.7:3 |
112 |
+ >=net-libs/webkit-gtk-2.26:4= |
113 |
+ >=dev-libs/gmime-2.6.17:2.6 |
114 |
+ >=dev-db/sqlite-3.12:3 |
115 |
+ |
116 |
+ >=dev-libs/appstream-glib-0.7.10 |
117 |
+ app-text/enchant |
118 |
+ >=dev-libs/folks-0.11:0 |
119 |
+ >=app-crypt/gcr-3.10.1:0= |
120 |
+ >=dev-libs/libgee-0.8.5:0.8= |
121 |
+ net-libs/gnome-online-accounts |
122 |
+ app-text/gspell |
123 |
+ app-text/iso-codes |
124 |
+ >=dev-libs/json-glib-1.0 |
125 |
+ >=media-libs/libcanberra-0.28 |
126 |
+ >=gui-libs/libhandy-0.0.9:0.0= |
127 |
+ >=app-crypt/libsecret-0.11 |
128 |
+ >=net-libs/libsoup-2.48:2.4 |
129 |
+ >=sys-libs/libunwind-1.1:7 |
130 |
+ >=dev-libs/libxml2-2.7.8:2 |
131 |
+ ytnef? ( >=net-mail/ytnef-1.9.3 ) |
132 |
+" |
133 |
+RDEPEND="${DEPEND} |
134 |
+ gnome-base/gsettings-desktop-schemas |
135 |
+" |
136 |
+BDEPEND=" |
137 |
+ dev-util/itstool |
138 |
+ >=sys-devel/gettext-0.19.8 |
139 |
+ virtual/pkgconfig |
140 |
+ |
141 |
+ $(vala_depend) |
142 |
+ x11-libs/gtk+:3[introspection] |
143 |
+ net-libs/webkit-gtk:4[introspection] |
144 |
+ app-crypt/gcr:0[introspection,vala] |
145 |
+ dev-libs/libgee:0.8[introspection] |
146 |
+ app-text/gspell[vala] |
147 |
+ app-crypt/libsecret[introspection,vala] |
148 |
+ net-libs/libsoup:2.4[introspection,vala] |
149 |
+" |
150 |
+ |
151 |
+PATCHES=( |
152 |
+ "${FILESDIR}"/${PV}-fix-ytnef-automagic.patch # https://gitlab.gnome.org/GNOME/geary/merge_requests/390 |
153 |
+) |
154 |
+ |
155 |
+src_prepare() { |
156 |
+ vala_src_prepare |
157 |
+ xdg_src_prepare |
158 |
+} |
159 |
+ |
160 |
+src_configure() { |
161 |
+ local emesonargs=( |
162 |
+ -Dvaladoc=false |
163 |
+ -Dcontractor=false |
164 |
+ -Dpoodle=true |
165 |
+ -Dlibunwind_optional=false # TODO: Automagical if optional=true |
166 |
+ $(meson_use ytnef tnef-support) |
167 |
+ -Dprofile=default |
168 |
+ ) |
169 |
+ |
170 |
+ meson_src_configure |
171 |
+} |
172 |
+ |
173 |
+src_test() { |
174 |
+ virtx meson_src_test |
175 |
+} |
176 |
+ |
177 |
+pkg_postinst() { |
178 |
+ xdg_pkg_postinst |
179 |
+ gnome2_schemas_update |
180 |
+} |
181 |
+ |
182 |
+pkg_postrm() { |
183 |
+ xdg_pkg_postrm |
184 |
+ gnome2_schemas_update |
185 |
+} |