commit:     240d0c9699477f1c3871a47da4be620f696b4dc7
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 27 02:03:14 2021 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Tue Apr 27 02:06:33 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=240d0c96

dev-cpp/gconfmm: Fix build with glib-2.68

Also port to EAPI=7 and drop IUSE=doc.

Closes: https://bugs.gentoo.org/785244
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 .../gconfmm-2.28.3-no-extern-c-glib-includes.patch | 44 ++++++++++++++++++++++
 dev-cpp/gconfmm/gconfmm-2.28.3-r1.ebuild           | 30 ++++++---------
 2 files changed, 55 insertions(+), 19 deletions(-)

diff --git 
a/dev-cpp/gconfmm/files/gconfmm-2.28.3-no-extern-c-glib-includes.patch 
b/dev-cpp/gconfmm/files/gconfmm-2.28.3-no-extern-c-glib-includes.patch
new file mode 100644
index 00000000000..b05face5b0a
--- /dev/null
+++ b/dev-cpp/gconfmm/files/gconfmm-2.28.3-no-extern-c-glib-includes.patch
@@ -0,0 +1,44 @@
+diff -Naur gconfmm-2.28.3-original/gconf/gconfmm/callback.h 
gconfmm-2.28.3/gconf/gconfmm/callback.h
+--- gconfmm-2.28.3-original/gconf/gconfmm/callback.h   2011-10-18 
11:33:49.000000000 -0400
++++ gconfmm-2.28.3/gconf/gconfmm/callback.h    2021-02-13 09:21:06.167235506 
-0500
+@@ -22,10 +22,7 @@
+ #ifndef GCONFMM_CALLBACK_H
+ #define GCONFMM_CALLBACK_H
+ 
+-extern "C"
+-{
+ #include <gconf/gconf-client.h>
+-}
+ 
+ #include <glibmm/object.h>
+ #include <gconfmm/entry.h>
+diff -Naur gconfmm-2.28.3-original/gconf/gconfmm/schema.h 
gconfmm-2.28.3/gconf/gconfmm/schema.h
+--- gconfmm-2.28.3-original/gconf/gconfmm/schema.h     2011-10-21 
04:51:27.000000000 -0400
++++ gconfmm-2.28.3/gconf/gconfmm/schema.h      2021-02-13 09:21:24.616354041 
-0500
+@@ -31,10 +31,8 @@
+ #include <gconfmm/value.h>
+ 
+ 
+-extern "C" {
+-    // TODO: do not include this.
++// TODO: do not include this.
+ #include <gconf/gconf-schema.h>
+-}
+ 
+ namespace Gnome
+ {
+diff -Naur gconfmm-2.28.3-original/gconf/src/schema.hg 
gconfmm-2.28.3/gconf/src/schema.hg
+--- gconfmm-2.28.3-original/gconf/src/schema.hg        2011-10-18 
11:33:49.000000000 -0400
++++ gconfmm-2.28.3/gconf/src/schema.hg 2021-02-13 09:21:58.002568546 -0500
+@@ -24,10 +24,8 @@
+ 
+ _DEFS(gconfmm,gconf)
+ 
+-extern "C" {
+-    // TODO: do not include this.
++// TODO: do not include this.
+ #include <gconf/gconf-schema.h>
+-}
+ 
+ namespace Gnome
+ {

diff --git a/dev-cpp/gconfmm/gconfmm-2.28.3-r1.ebuild 
b/dev-cpp/gconfmm/gconfmm-2.28.3-r1.ebuild
index 5fc75bb2c58..745c74a9294 100644
--- a/dev-cpp/gconfmm/gconfmm-2.28.3-r1.ebuild
+++ b/dev-cpp/gconfmm/gconfmm-2.28.3-r1.ebuild
@@ -1,9 +1,7 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="5"
-GCONF_DEBUG="no"
-GNOME2_LA_PUNT="yes"
+EAPI=7
 GNOME_TARBALL_SUFFIX="bz2"
 
 inherit flag-o-matic gnome2
@@ -14,27 +12,21 @@ HOMEPAGE="https://www.gtkmm.org";
 LICENSE="LGPL-2.1"
 SLOT="0"
 KEYWORDS="~alpha amd64 arm ~ia64 ppc ppc64 sparc x86"
-IUSE="doc"
 
-RDEPEND="
+DEPEND="
        >=gnome-base/gconf-2.4:2
-       >=dev-cpp/glibmm-2.12:2[doc?]
+       >=dev-cpp/glibmm-2.12:2
        >=dev-cpp/gtkmm-2.4:2.4
 "
-DEPEND="${RDEPEND}
-       virtual/pkgconfig
-"
+RDEPEND="${DEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+       "${FILESDIR}"/${P}-no-extern-c-glib-includes.patch
+)
 
 src_configure() {
        append-cxxflags -std=c++11 #568580
        gnome2_src_configure \
-               $(use_enable doc documentation)
-}
-
-src_install() {
-       gnome2_src_install
-
-       if use doc ; then
-               dohtml -r docs/reference/html/*
-       fi
+               --disable-documentation
 }

Reply via email to