commit: 367cde0860c452acf895c312e5d5f4f80a953bde Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> AuthorDate: Wed Jan 17 13:45:18 2018 +0000 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> CommitDate: Wed Jan 17 13:46:10 2018 +0000 URL: https://gitweb.gentoo.org/proj/gnome.git/commit/?id=367cde08
gnome-extra/gnome-todo: bump to 3.26.2, always build introspection gnome-todo introspection support is used by its own plugins, so if we enable score and unscheduled plugin, introspection should be enabled as well. Because libpeas already always pulls in gobject-introspection, we have no extra dependency cost here anyways, so just always enable it. Conversion to use meson, thus adding USE=doc for gtk-doc as they aren't shipped pregenerated in tarball with meson (USE flag name still to be discussed globally). Backport libical3 compat patch - file to patch seems to have moved for 3.26 compared to 3.24, and then again on master where it was backported from. Package-Manager: Portage-2.3.19, Repoman-2.3.6 .../gnome-todo/files/3.26.2-libical3-compat.patch | 27 ++++++++++++ gnome-extra/gnome-todo/gnome-todo-3.26.2.ebuild | 51 ++++++++++++++++++++++ 2 files changed, 78 insertions(+) diff --git a/gnome-extra/gnome-todo/files/3.26.2-libical3-compat.patch b/gnome-extra/gnome-todo/files/3.26.2-libical3-compat.patch new file mode 100644 index 00000000..efad2e6d --- /dev/null +++ b/gnome-extra/gnome-todo/files/3.26.2-libical3-compat.patch @@ -0,0 +1,27 @@ +From 7362e5becc32cec8eebea5d41d95db8d9ad816bc Mon Sep 17 00:00:00 2001 +From: Mart Raudsepp <[email protected]> +Date: Wed, 17 Jan 2018 14:29:38 +0200 +Subject: [PATCH] eds: Build with libical 3.0 + +Backport of 6de8adc351b758c1d608ae0ea8acf6d35ed502ea +--- + src/gtd-task.c | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/src/gtd-task.c b/src/gtd-task.c +index 389f5ad..219ab44 100644 +--- a/src/gtd-task.c ++++ b/src/gtd-task.c +@@ -777,8 +777,7 @@ gtd_task_set_complete (GtdTask *task, + dt->hour = g_date_time_get_hour (now); + dt->minute = g_date_time_get_minute (now); + dt->second = g_date_time_get_seconds (now); +- dt->is_date = 0; +- dt->is_utc = 1; ++ dt->zone = icaltimezone_get_utc_timezone (); + + /* convert timezone + * +-- +2.10.2 + diff --git a/gnome-extra/gnome-todo/gnome-todo-3.26.2.ebuild b/gnome-extra/gnome-todo/gnome-todo-3.26.2.ebuild new file mode 100644 index 00000000..2e056593 --- /dev/null +++ b/gnome-extra/gnome-todo/gnome-todo-3.26.2.ebuild @@ -0,0 +1,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" + +# TODO: Todoist plugin seems to require 3.26 GOA for being able to add a Todoist account +RDEPEND=" + >=dev-libs/glib-2.43.4:2 + >=x11-libs/gtk+-3.22.0:3 + >=net-libs/gnome-online-accounts-3.2.0 + >=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? + 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 +}
