summaryrefslogtreecommitdiff
path: root/net-libs/msgraph/msgraph-0.2.3-r1.ebuild
blob: 254965ffd788266106c62a69422b8b2b7e92a0e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit gnome.org meson

DESCRIPTION="GLib-based library for accessing online serive APIs using MS Graph protocol."
HOMEPAGE="https://gitlab.gnome.org/GNOME/msgraph"

LICENSE="LGPL-2+"
SLOT="0/0.1"
KEYWORDS="amd64 ~arm arm64 ~loong ~ppc64 ~riscv x86"

IUSE="debug gtk-doc +introspection man test"
REQUIRED_USE="gtk-doc? ( introspection )"
RESTRICT="!test? ( test )"

RDEPEND="
	>=dev-libs/glib-2.28.0:2
	dev-libs/json-glib
	net-libs/rest:1.0
	net-libs/libsoup:3.0
	net-libs/gnome-online-accounts:=
	>=net-libs/uhttpmock-0.11.0:1.0
	introspection? ( >=dev-libs/gobject-introspection-1.82.0-r2:= )
"

DEPEND="${RDEPEND}
	>=dev-util/gdbus-codegen-2.80.5-r1
	>=sys-devel/gettext-0.19.8
	virtual/pkgconfig
"
BDEPEND="
	gtk-doc? ( dev-util/gi-docgen )
	test? ( net-libs/uhttpmock:1.0 )
"

src_configure() {
	local emesonargs=(
		$(meson_use gtk-doc gtk_doc)
		$(meson_use introspection)
		$(meson_use test tests)
	)
	meson_src_configure
}

src_install(){
	meson_install
	if use gtk-doc; then
		mkdir -p "${ED}"/usr/share/gtk-doc/html || die
		mv "${ED}"/usr/share/doc/msgraph-* "${ED}"/usr/share/gtk-doc/html || die
	fi
}