1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 # Keep cmake-utils at the end
6 inherit gnome2 vala cmake-utils
8 DESCRIPTION="A lightweight, easy-to-use, feature-rich email client"
9 HOMEPAGE="https://wiki.gnome.org/Apps/Geary"
17 >=app-crypt/gcr-3.10.1:0=[gtk,introspection,vala]
21 >=dev-libs/glib-2.42:2[dbus]
22 >=dev-libs/libgee-0.8.5:0.8=
25 media-libs/libcanberra
26 >=net-libs/webkit-gtk-2.10.0:4=[introspection]
27 >=x11-libs/gtk+-3.14.0:3[introspection]
31 gnome-base/gsettings-desktop-schemas
32 nls? ( virtual/libintl )
35 app-text/gnome-doc-utils
36 dev-util/desktop-file-utils
37 nls? ( sys-devel/gettext )
43 # https://bugzilla.gnome.org/show_bug.cgi?id=751557
44 sed -i -e 's/vapigen --library/${VAPIGEN} --library/' src/CMakeLists.txt || die
48 if [[ -n "${LINGUAS+x}" ]] ; then
49 for i in $(cd po ; echo *.po) ; do
50 if ! has ${i%.po} ${LINGUAS} ; then
51 sed -i -e "/^${i%.po}$/d" po/LINGUAS || die
56 sed -i -e 's#add_subdirectory(po)##' CMakeLists.txt || die
59 cmake-utils_src_prepare
67 -DNO_FATAL_WARNINGS=ON
68 -DGSETTINGS_COMPILE=OFF
70 -DVALA_EXECUTABLE="${VALAC}"
71 -DVAPIGEN="${VAPIGEN}"
73 -DDESKTOP_VALIDATE=OFF
76 cmake-utils_src_configure