git: 901d4d41f866 - main - x11-toolkits/pangomm: unbreak build with pango >= 1.50

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Tue, 04 Jan 2022 02:59:49 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=901d4d41f866b1cf8a7f61ea9494aab8193b6d80

commit 901d4d41f866b1cf8a7f61ea9494aab8193b6d80
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2022-01-04 02:51:24 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2022-01-04 02:57:20 +0000

    x11-toolkits/pangomm: unbreak build with pango >= 1.50
    
    attrlist.cc:38:20: error: use of undeclared identifier 'pango_parse_markup'
      gboolean bTest = pango_parse_markup(markup_text.c_str(), -1 /* means null-terminated */, accel_marker,
                       ^
    attrlist.cc:65:20: error: use of undeclared identifier 'pango_parse_markup'
      gboolean bTest = pango_parse_markup(markup_text.c_str(), -1 /* means null-terminated */, accel_marker,
                       ^
    
    PR:             260916
    Regressed by:   https://gitlab.gnome.org/GNOME/pango/-/commit/d8df0da73752
---
 .../pangomm/files/patch-pango_pangomm_attributes.h | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/x11-toolkits/pangomm/files/patch-pango_pangomm_attributes.h b/x11-toolkits/pangomm/files/patch-pango_pangomm_attributes.h
new file mode 100644
index 000000000000..70e3f057e9f6
--- /dev/null
+++ b/x11-toolkits/pangomm/files/patch-pango_pangomm_attributes.h
@@ -0,0 +1,22 @@
+https://gitlab.gnome.org/GNOME/pangomm/-/commit/a8ab02ac9b96
+https://gitlab.gnome.org/GNOME/pangomm/-/commit/c098f35144ff
+
+attrlist.cc:38:20: error: use of undeclared identifier 'pango_parse_markup'
+  gboolean bTest = pango_parse_markup(markup_text.c_str(), -1 /* means null-terminated */, accel_marker,
+                   ^
+attrlist.cc:65:20: error: use of undeclared identifier 'pango_parse_markup'
+  gboolean bTest = pango_parse_markup(markup_text.c_str(), -1 /* means null-terminated */, accel_marker,
+                   ^
+
+--- pango/pangomm/attributes.h.orig	2016-08-19 13:58:37 UTC
++++ pango/pangomm/attributes.h
+@@ -30,6 +30,9 @@
+ #include <pangomm/color.h>
+ #include <pangomm/fontdescription.h>
+ #include <pango/pango-attributes.h>
++#if __has_include(<pango/pango-markup.h>)
++#include <pango/pango-markup.h>
++#endif
+ #include <glibmm/slisthandle.h>
+ 
+