1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 VALA_USE_DEPEND="vapigen"
6 VALA_MAX_API_VERSION="0.44" # tests-utils fails to build with newer with v0.12.1
8 inherit gnome.org gnome2-utils meson vala xdg
10 DESCRIPTION="Library for aggregating people from multiple sources"
11 HOMEPAGE="https://wiki.gnome.org/Projects/Folks"
14 SLOT="0/25" # subslot = libfolks soname version
15 KEYWORDS="~alpha amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc x86 ~x86-linux"
17 IUSE="bluetooth eds +telepathy test tracker utils"
18 REQUIRED_USE="bluetooth? ( eds )"
19 RESTRICT="!test? ( test )"
23 >=dev-libs/glib-2.44:2
25 >=dev-libs/libgee-0.10:0.8[introspection]
26 >=dev-libs/gobject-introspection-1.54:=
27 telepathy? ( >=net-libs/telepathy-glib-0.19.9[vala] )
28 tracker? ( app-misc/tracker:0/2.0 )
29 eds? ( >=gnome-extra/evolution-data-server-3.13.90:=[vala] )
31 utils? ( sys-libs/readline:0= )
33 # telepathy-mission-control needed at runtime; it is used by the telepathy
34 # backend via telepathy-glib's AccountManager binding.
36 bluetooth? ( >=net-wireless/bluez-5[obex] )
37 telepathy? ( net-im/telepathy-mission-control )
41 >=sys-devel/gettext-0.19.8
46 # test? ( bluetooth? ( dbusmock is missing in the tree ) )
47 DEPEND="${COMMON_DEPEND}
49 bluetooth? ( dev-python/dbusmock ) )
53 "${FILESDIR}"/${PV}-conditional-tests.patch # Allow not building lots of test executables when tests are disabled
54 "${FILESDIR}"/${PV}-no-tracker-tests.patch # TODO: Tracker tests fail; this removed them for now
64 $(meson_use bluetooth bluez_backend)
65 $(meson_use eds eds_backend)
66 -Dlibsocialweb_backend=false # not packaged
67 $(meson_use eds ofono_backend)
68 $(meson_use telepathy telepathy_backend)
69 $(meson_use tracker tracker_backend)
70 -Dzeitgeist=false # last rited package
72 $(meson_use utils inspect_tool)
74 -Dinstalled_tests=false
75 -Ddocs=false # Needs find_program sedding to specific version; only dev docs, don't bother