gentoo/dev-libs/folks/folks-0.15.9-r2.ebuild
Alfred Wingate d83e25b6a5
*/*: depend on newer gobject-introspection as a workaround
sed -E '/dev-libs\/gobject-introspection(:=|\s|$|-[0-9]|\[)/ { s/(>=)?dev-libs\/gobject-introspection(-[0-9.r-]*)?/>=dev-libs\/gobject-introspection-1.82.0-r2/ }' */*/*.ebuild -i

+ manually going over to undo the false positives or if the version
  requirement was higher.

Bug: https://bugs.gentoo.org/947058
See-Also: ae37e3f389808700bd0f4343ee04888f0ef179d2
Signed-off-by: Alfred Wingate <parona@protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44336
Closes: https://github.com/gentoo/gentoo/pull/44336
Signed-off-by: Sam James <sam@gentoo.org>
2025-10-26 03:26:28 +00:00

90 lines
2.1 KiB
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..13} )
inherit gnome.org gnome2-utils meson python-any-r1 vala xdg
DESCRIPTION="Library for aggregating people from multiple sources"
HOMEPAGE="https://gitlab.gnome.org/GNOME/folks"
LICENSE="LGPL-2.1+"
SLOT="0/26" # subslot = libfolks soname version
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x86-linux"
IUSE="bluetooth eds test utils"
REQUIRED_USE="bluetooth? ( eds )"
RESTRICT="!test? ( test )"
DEPEND="
>=dev-libs/glib-2.58:2
>=dev-libs/gobject-introspection-1.82.0-r2:=
>=dev-libs/libgee-0.10:0.8[introspection]
dev-libs/libxml2:2=
eds? ( >=gnome-extra/evolution-data-server-3.38:= )
utils? ( sys-libs/readline:0= )
"
RDEPEND="${DEPEND}
bluetooth? ( >=net-wireless/bluez-5[obex] )
"
BDEPEND="
${PYTHON_DEPS}
>=sys-devel/gettext-0.19.8
virtual/pkgconfig
$(vala_depend)
eds? ( gnome-extra/evolution-data-server[vala] )
test? (
sys-apps/dbus
bluetooth? (
$(python_gen_any_dep '
>=dev-python/python-dbusmock-0.30.1[${PYTHON_USEDEP}]
')
)
)
"
python_check_deps() {
if use test && use bluetooth; then
python_has_version ">=dev-python/python-dbusmock-0.30.1[${PYTHON_USEDEP}]"
fi
}
src_prepare() {
default
vala_setup
xdg_environment_reset
}
src_configure() {
local emesonargs=(
$(meson_use bluetooth bluez_backend)
$(meson_use eds eds_backend)
$(meson_use eds ofono_backend)
-Dtelepathy_backend=false # obsolete dependency
-Dzeitgeist=false # last rited package
-Dimport_tool=true
$(meson_use utils inspect_tool)
$(meson_use test tests)
-Dinstalled_tests=false
-Ddocs=false # Needs find_program sedding to specific version; only dev docs, don't bother
)
meson_src_configure
}
src_test() {
# Avoid warnings when /etc/profile.d/flatpak.sh from flatpak modified XDG_DATA_DIRS
export XDG_DATA_DIRS="${EPREFIX}"/usr/share
dbus-run-session meson test -C "${BUILD_DIR}" -t 5 || die "tests failed"
}
pkg_postinst() {
xdg_pkg_postinst
gnome2_schemas_update
}
pkg_postrm() {
xdg_pkg_postrm
gnome2_schemas_update
}