summaryrefslogtreecommitdiff
blob: cd463c0d7050fdd6f419c0be4ddf1f589a6e281a (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
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

inherit gnome-meson

DESCRIPTION="Personal task manager"
HOMEPAGE="https://wiki.gnome.org/Apps/Todo"

LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64"
IUSE="doc"

RDEPEND="
	>=dev-libs/glib-2.43.4:2
	>=x11-libs/gtk+-3.22.0:3
	>=net-libs/gnome-online-accounts-3.25.3
	>=gnome-extra/evolution-data-server-3.17.1:=[gtk]
	>=dev-libs/libical-0.43
	>=dev-libs/libpeas-1.17
	>=dev-libs/gobject-introspection-1.42:=
"
DEPEND="${RDEPEND}
	>=dev-util/meson-0.40.0
	doc? ( dev-util/gtk-doc )
	>=sys-devel/gettext-0.19.8
	virtual/pkgconfig
"

PATCHES=(
	"${FILESDIR}"/${PV}-libical3-compat.patch
)

src_configure() {
	# TODO: There aren't any consumers of the introspection outside gnome-todo's own plugins, so maybe we
	# TODO: should just always build introspection support as an application that needs it for full functionality?
	# Todoist plugin requires 3.25.3 GOA for being able to add a Todoist account
	gnome-meson_src_configure \
		-Denable-background-plugin=true \
		-Denable-dark-theme-plugin=true \
		-Denable-scheduled-panel-plugin=true \
		-Denable-score-plugin=true \
		-Denable-today-panel-plugin=true \
		-Denable-unscheduled-panel-plugin=true \
		-Denable-todo-txt-plugin=true \
		-Denable-todoist-plugin=true \
		$(meson_use doc enable-gtk-doc) \
		-Denable-introspection=true
}