commit:     8970439d89d47dff5b6df87fd6173907797728d3
Author:     Mart Raudsepp <leio <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 17 19:14:23 2019 +0000
Commit:     Mart Raudsepp <leio <AT> gentoo <DOT> org>
CommitDate: Sun Nov 17 19:15:23 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8970439d

gnome-extra/gnome-contacts: fix build against libhandy-0.0.10+

Closes: https://bugs.gentoo.org/699090
Package-Manager: Portage-2.3.69, Repoman-2.3.12
Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>

 .../files/3.32.1-libhandy-0.0.10-compat.patch      | 30 ++++++++++++++++++++++
 .../gnome-contacts/gnome-contacts-3.32.1.ebuild    |  4 +++
 2 files changed, 34 insertions(+)

diff --git 
a/gnome-extra/gnome-contacts/files/3.32.1-libhandy-0.0.10-compat.patch 
b/gnome-extra/gnome-contacts/files/3.32.1-libhandy-0.0.10-compat.patch
new file mode 100644
index 00000000000..00eff6c686f
--- /dev/null
+++ b/gnome-extra/gnome-contacts/files/3.32.1-libhandy-0.0.10-compat.patch
@@ -0,0 +1,30 @@
+From c5eee38cd2556403a640a0a4c11d36cbf9a5a798 Mon Sep 17 00:00:00 2001
+From: Niels De Graef <[email protected]>
+Date: Thu, 30 May 2019 14:30:54 +0200
+Subject: [PATCH] window: Disambiguate Gtk.HeaderBar
+
+Apparently libhandy also added a HeaderBar type, which means this
+clashes with that of Gtk.
+---
+ src/contacts-window.vala | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/contacts-window.vala b/src/contacts-window.vala
+index 738228d..49f6995 100644
+--- a/src/contacts-window.vala
++++ b/src/contacts-window.vala
+@@ -35,9 +35,9 @@ public class Contacts.Window : Gtk.ApplicationWindow {
+   [GtkChild]
+   private TitleBar titlebar;
+   [GtkChild]
+-  private HeaderBar left_header;
++  private Gtk.HeaderBar left_header;
+   [GtkChild]
+-  private HeaderBar right_header;
++  private Gtk.HeaderBar right_header;
+   [GtkChild]
+   private Overlay notification_overlay;
+   [GtkChild]
+-- 
+2.20.1
+

diff --git a/gnome-extra/gnome-contacts/gnome-contacts-3.32.1.ebuild 
b/gnome-extra/gnome-contacts/gnome-contacts-3.32.1.ebuild
index 371567b764d..4cb92176461 100644
--- a/gnome-extra/gnome-contacts/gnome-contacts-3.32.1.ebuild
+++ b/gnome-extra/gnome-contacts/gnome-contacts-3.32.1.ebuild
@@ -46,6 +46,10 @@ DEPEND="${RDEPEND}
        virtual/pkgconfig
 "
 
+PATCHES=(
+       "${FILESDIR}"/${PV}-libhandy-0.0.10-compat.patch # compatibility with 
libhandy-0.0.10+
+)
+
 src_prepare() {
        xdg_src_prepare
        vala_src_prepare

Reply via email to