|
| 1 | +# Copyright 1999-2020 Gentoo Authors |
| 2 | +# Distributed under the terms of the GNU General Public License v2 |
| 3 | + |
| 4 | +EAPI=7 |
| 5 | +VALA_MIN_API_VERSION="0.44" |
| 6 | + |
| 7 | +inherit gnome.org gnome2-utils meson vala virtualx xdg |
| 8 | + |
| 9 | +DESCRIPTION="A lightweight, easy-to-use, feature-rich email client" |
| 10 | +HOMEPAGE="https://wiki.gnome.org/Apps/Geary" |
| 11 | + |
| 12 | +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 |
| 13 | +SLOT="0" |
| 14 | + |
| 15 | +IUSE="ytnef" |
| 16 | + |
| 17 | +KEYWORDS="~amd64 ~x86" |
| 18 | + |
| 19 | +# for now both enchants work, but ensuring enchant:2 |
| 20 | + |
| 21 | +# >=webkit-gtk-2.26.4-r1 and >=gspell-1.7 dep to ensure all libraries used use enchant:2 |
| 22 | +DEPEND=" |
| 23 | + >=dev-libs/glib-2.60.4:2 |
| 24 | + >=x11-libs/gtk+-3.24.7:3 |
| 25 | + >=net-libs/webkit-gtk-2.26.4-r1:4= |
| 26 | + >=dev-libs/gmime-3.2.4:3.0 |
| 27 | + >=dev-db/sqlite-3.24:3 |
| 28 | +
|
| 29 | + app-text/enchant:2 |
| 30 | + >=dev-libs/folks-0.11:0 |
| 31 | + >=app-crypt/gcr-3.10.1:0= |
| 32 | + >=dev-libs/libgee-0.8.5:0.8= |
| 33 | + net-libs/gnome-online-accounts |
| 34 | + >=app-text/gspell-1.7:= |
| 35 | + app-text/iso-codes |
| 36 | + >=dev-libs/json-glib-1.0 |
| 37 | + >=gui-libs/libhandy-0.0.10:0.0= |
| 38 | + >=dev-libs/libpeas-1.24.0 |
| 39 | + >=app-crypt/libsecret-0.11 |
| 40 | + >=net-libs/libsoup-2.48:2.4 |
| 41 | + >=sys-libs/libunwind-1.1:7 |
| 42 | + >=dev-libs/libxml2-2.7.8:2 |
| 43 | + ytnef? ( >=net-mail/ytnef-1.9.3 ) |
| 44 | +" |
| 45 | +RDEPEND="${DEPEND} |
| 46 | + gnome-base/gsettings-desktop-schemas |
| 47 | +" |
| 48 | +BDEPEND=" |
| 49 | + >=dev-libs/appstream-glib-0.7.10 |
| 50 | + dev-libs/libxml2 |
| 51 | + dev-util/itstool |
| 52 | + >=sys-devel/gettext-0.19.8 |
| 53 | + virtual/pkgconfig |
| 54 | +
|
| 55 | + $(vala_depend) |
| 56 | + x11-libs/gtk+:3[introspection] |
| 57 | + net-libs/webkit-gtk:4[introspection] |
| 58 | + dev-libs/gmime:3.0[vala] |
| 59 | + app-crypt/gcr:0[introspection,vala] |
| 60 | + dev-libs/libgee:0.8[introspection] |
| 61 | + app-text/gspell[vala] |
| 62 | + gui-libs/libhandy:0.0[vala] |
| 63 | + app-crypt/libsecret[introspection,vala] |
| 64 | + net-libs/libsoup:2.4[introspection,vala] |
| 65 | +" |
| 66 | + |
| 67 | +src_prepare() { |
| 68 | + vala_src_prepare |
| 69 | + xdg_src_prepare |
| 70 | +} |
| 71 | + |
| 72 | +src_configure() { |
| 73 | + local emesonargs=( |
| 74 | + -Dcontractor=false |
| 75 | + -Dlibunwind_optional=false # TODO: Automagical if optional=true |
| 76 | + -Dpoodle=true |
| 77 | + $(meson_use ytnef tnef-support) |
| 78 | + -Dvaladoc=false |
| 79 | + -Dprofile=default |
| 80 | + ) |
| 81 | + |
| 82 | + meson_src_configure |
| 83 | +} |
| 84 | + |
| 85 | +src_test() { |
| 86 | + virtx meson_src_test |
| 87 | +} |
| 88 | + |
| 89 | +pkg_postinst() { |
| 90 | + xdg_pkg_postinst |
| 91 | + gnome2_schemas_update |
| 92 | +} |
| 93 | + |
| 94 | +pkg_postrm() { |
| 95 | + xdg_pkg_postrm |
| 96 | + gnome2_schemas_update |
| 97 | +} |
0 commit comments