gentoo-ebuilds/gnome-extra/evolution-ews/evolution-ews-3.56.2-r1.ebuild
Lukas Schmelting 82ac8bd443
gnome-extra/evolution-ews: add libxml2 binding subslot operator
Signed-off-by: Lukas Schmelting <lschmelting@posteo.com>
Part-of: https://github.com/gentoo/gentoo/pull/44343
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
2025-11-29 23:23:31 +00:00

71 lines
1.5 KiB
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake gnome2 optfeature
DESCRIPTION="Evolution module for connecting to Microsoft Exchange Web Services"
HOMEPAGE="https://gitlab.gnome.org/GNOME/evolution/-/wikis/home https://gitlab.gnome.org/GNOME/evolution-ews"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="amd64 ~arm64 ~riscv x86"
IUSE="test"
RDEPEND="
dev-db/sqlite:3
>=dev-libs/glib-2.68:2
>=dev-libs/libical-3.0.5:0=[glib]
>=dev-libs/json-glib-1.0.4
>=dev-libs/libmspack-0.4
dev-libs/libxml2:2=
>=gnome-extra/evolution-data-server-3.54.3:0=
>=mail-client/evolution-3.54.3:2.0
>=net-libs/libsoup-3.0:3.0
>=x11-libs/gtk+-3.10:3
"
DEPEND="${RDEPEND}
test? ( >=net-libs/uhttpmock-0.9:1.0 )
"
BDEPEND="
dev-util/gdbus-codegen
dev-util/glib-utils
>=dev-util/intltool-0.35.5
>=sys-devel/gettext-0.18.3
virtual/pkgconfig
"
# Unittests fail to find libevolution-ews.so
RESTRICT="test !test? ( test )"
# global scope PATCHES or DOCS array mustn't be used due to double default_src_prepare
# call; if needed, set them after cmake_src_prepare call, if that works
src_prepare() {
cmake_src_prepare
gnome2_src_prepare
}
src_configure() {
local mycmakeargs=(
-DWITH_MSPACK=ON
-DENABLE_TESTS=$(usex test)
)
cmake_src_configure
}
src_compile() {
cmake_src_compile
}
src_test() {
cmake_src_test
}
src_install() {
cmake_src_install
}
pkg_postinst() {
optfeature "oauth support" "gnome-extra/evolution-data-server[oauth-gtk3]"
}