Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/gnome-todo/
Date: Fri, 29 Apr 2022 01:31:31
Message-Id: 1651195821.158f92bd2ea5ef8d3c3e37eec8d00123dfb15c35.mattst88@gentoo
1 commit: 158f92bd2ea5ef8d3c3e37eec8d00123dfb15c35
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 28 22:52:59 2022 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 29 01:30:21 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=158f92bd
7
8 app-office/gnome-todo: Add live ebuild
9
10 v41.0 doesn't work at all for me, but I did the work to package it, so I
11 might as well use it somehow.
12
13 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
14
15 app-office/gnome-todo/gnome-todo-9999.ebuild | 67 ++++++++++++++++++++++++++++
16 1 file changed, 67 insertions(+)
17
18 diff --git a/app-office/gnome-todo/gnome-todo-9999.ebuild b/app-office/gnome-todo/gnome-todo-9999.ebuild
19 new file mode 100644
20 index 000000000000..0ef934158147
21 --- /dev/null
22 +++ b/app-office/gnome-todo/gnome-todo-9999.ebuild
23 @@ -0,0 +1,67 @@
24 +# Copyright 1999-2022 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=8
28 +
29 +inherit gnome.org gnome2-utils meson xdg
30 +
31 +DESCRIPTION="Personal task manager"
32 +HOMEPAGE="https://wiki.gnome.org/Apps/Todo https://gitlab.gnome.org/GNOME/gnome-todo"
33 +
34 +if [[ ${PV} == 9999 ]]; then
35 + inherit git-r3
36 + EGIT_REPO_URI="https://gitlab.gnome.org/GNOME/gnome-todo.git"
37 + SRC_URI=""
38 +else
39 + KEYWORDS="~amd64"
40 +fi
41 +
42 +LICENSE="GPL-3+"
43 +SLOT="0"
44 +IUSE="+introspection"
45 +
46 +RDEPEND="
47 + >=dev-libs/glib-2.58.0:2
48 + >=gui-libs/gtk-3.92.0:4[introspection?]
49 + gui-libs/libadwaita:1
50 + >=net-libs/gnome-online-accounts-3.25.3
51 + >=dev-libs/libpeas-1.17
52 + dev-libs/libportal:0=[gtk]
53 + >=gnome-extra/evolution-data-server-3.33.2:=[gtk]
54 + net-libs/rest:0.7
55 + dev-libs/json-glib
56 + introspection? ( >=dev-libs/gobject-introspection-1.42:= )
57 +"
58 +DEPEND="${RDEPEND}"
59 +BDEPEND="
60 + dev-libs/libxml2:2
61 + dev-util/glib-utils
62 + >=sys-devel/gettext-0.19.8
63 + virtual/pkgconfig
64 +"
65 +
66 +src_configure() {
67 + # TODO: There aren't any consumers of the introspection outside gnome-todo's own plugins, so maybe we
68 + # TODO: should just always build introspection support as an application that needs it for full functionality?
69 + # Todoist plugin requires 3.25.3 GOA for being able to add a Todoist account
70 + local emesonargs=(
71 + $(meson_use introspection)
72 + -Dtracing=false
73 + -Dprofile=default
74 +
75 + -Dtodo_txt_plugin=true
76 + -Dtodoist_plugin=true
77 + -Dunscheduled_panel_plugin=true
78 + )
79 + meson_src_configure
80 +}
81 +
82 +pkg_postinst() {
83 + xdg_pkg_postinst
84 + gnome2_schemas_update
85 +}
86 +
87 +pkg_postrm() {
88 + xdg_pkg_postrm
89 + gnome2_schemas_update
90 +}