1 |
commit: 240d0c9699477f1c3871a47da4be620f696b4dc7 |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Apr 27 02:03:14 2021 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 27 02:06:33 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=240d0c96 |
7 |
|
8 |
dev-cpp/gconfmm: Fix build with glib-2.68 |
9 |
|
10 |
Also port to EAPI=7 and drop IUSE=doc. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/785244 |
13 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
14 |
|
15 |
.../gconfmm-2.28.3-no-extern-c-glib-includes.patch | 44 ++++++++++++++++++++++ |
16 |
dev-cpp/gconfmm/gconfmm-2.28.3-r1.ebuild | 30 ++++++--------- |
17 |
2 files changed, 55 insertions(+), 19 deletions(-) |
18 |
|
19 |
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 |
20 |
new file mode 100644 |
21 |
index 00000000000..b05face5b0a |
22 |
--- /dev/null |
23 |
+++ b/dev-cpp/gconfmm/files/gconfmm-2.28.3-no-extern-c-glib-includes.patch |
24 |
@@ -0,0 +1,44 @@ |
25 |
+diff -Naur gconfmm-2.28.3-original/gconf/gconfmm/callback.h gconfmm-2.28.3/gconf/gconfmm/callback.h |
26 |
+--- gconfmm-2.28.3-original/gconf/gconfmm/callback.h 2011-10-18 11:33:49.000000000 -0400 |
27 |
++++ gconfmm-2.28.3/gconf/gconfmm/callback.h 2021-02-13 09:21:06.167235506 -0500 |
28 |
+@@ -22,10 +22,7 @@ |
29 |
+ #ifndef GCONFMM_CALLBACK_H |
30 |
+ #define GCONFMM_CALLBACK_H |
31 |
+ |
32 |
+-extern "C" |
33 |
+-{ |
34 |
+ #include <gconf/gconf-client.h> |
35 |
+-} |
36 |
+ |
37 |
+ #include <glibmm/object.h> |
38 |
+ #include <gconfmm/entry.h> |
39 |
+diff -Naur gconfmm-2.28.3-original/gconf/gconfmm/schema.h gconfmm-2.28.3/gconf/gconfmm/schema.h |
40 |
+--- gconfmm-2.28.3-original/gconf/gconfmm/schema.h 2011-10-21 04:51:27.000000000 -0400 |
41 |
++++ gconfmm-2.28.3/gconf/gconfmm/schema.h 2021-02-13 09:21:24.616354041 -0500 |
42 |
+@@ -31,10 +31,8 @@ |
43 |
+ #include <gconfmm/value.h> |
44 |
+ |
45 |
+ |
46 |
+-extern "C" { |
47 |
+- // TODO: do not include this. |
48 |
++// TODO: do not include this. |
49 |
+ #include <gconf/gconf-schema.h> |
50 |
+-} |
51 |
+ |
52 |
+ namespace Gnome |
53 |
+ { |
54 |
+diff -Naur gconfmm-2.28.3-original/gconf/src/schema.hg gconfmm-2.28.3/gconf/src/schema.hg |
55 |
+--- gconfmm-2.28.3-original/gconf/src/schema.hg 2011-10-18 11:33:49.000000000 -0400 |
56 |
++++ gconfmm-2.28.3/gconf/src/schema.hg 2021-02-13 09:21:58.002568546 -0500 |
57 |
+@@ -24,10 +24,8 @@ |
58 |
+ |
59 |
+ _DEFS(gconfmm,gconf) |
60 |
+ |
61 |
+-extern "C" { |
62 |
+- // TODO: do not include this. |
63 |
++// TODO: do not include this. |
64 |
+ #include <gconf/gconf-schema.h> |
65 |
+-} |
66 |
+ |
67 |
+ namespace Gnome |
68 |
+ { |
69 |
|
70 |
diff --git a/dev-cpp/gconfmm/gconfmm-2.28.3-r1.ebuild b/dev-cpp/gconfmm/gconfmm-2.28.3-r1.ebuild |
71 |
index 5fc75bb2c58..745c74a9294 100644 |
72 |
--- a/dev-cpp/gconfmm/gconfmm-2.28.3-r1.ebuild |
73 |
+++ b/dev-cpp/gconfmm/gconfmm-2.28.3-r1.ebuild |
74 |
@@ -1,9 +1,7 @@ |
75 |
-# Copyright 1999-2020 Gentoo Authors |
76 |
+# Copyright 1999-2021 Gentoo Authors |
77 |
# Distributed under the terms of the GNU General Public License v2 |
78 |
|
79 |
-EAPI="5" |
80 |
-GCONF_DEBUG="no" |
81 |
-GNOME2_LA_PUNT="yes" |
82 |
+EAPI=7 |
83 |
GNOME_TARBALL_SUFFIX="bz2" |
84 |
|
85 |
inherit flag-o-matic gnome2 |
86 |
@@ -14,27 +12,21 @@ HOMEPAGE="https://www.gtkmm.org" |
87 |
LICENSE="LGPL-2.1" |
88 |
SLOT="0" |
89 |
KEYWORDS="~alpha amd64 arm ~ia64 ppc ppc64 sparc x86" |
90 |
-IUSE="doc" |
91 |
|
92 |
-RDEPEND=" |
93 |
+DEPEND=" |
94 |
>=gnome-base/gconf-2.4:2 |
95 |
- >=dev-cpp/glibmm-2.12:2[doc?] |
96 |
+ >=dev-cpp/glibmm-2.12:2 |
97 |
>=dev-cpp/gtkmm-2.4:2.4 |
98 |
" |
99 |
-DEPEND="${RDEPEND} |
100 |
- virtual/pkgconfig |
101 |
-" |
102 |
+RDEPEND="${DEPEND}" |
103 |
+BDEPEND="virtual/pkgconfig" |
104 |
+ |
105 |
+PATCHES=( |
106 |
+ "${FILESDIR}"/${P}-no-extern-c-glib-includes.patch |
107 |
+) |
108 |
|
109 |
src_configure() { |
110 |
append-cxxflags -std=c++11 #568580 |
111 |
gnome2_src_configure \ |
112 |
- $(use_enable doc documentation) |
113 |
-} |
114 |
- |
115 |
-src_install() { |
116 |
- gnome2_src_install |
117 |
- |
118 |
- if use doc ; then |
119 |
- dohtml -r docs/reference/html/* |
120 |
- fi |
121 |
+ --disable-documentation |
122 |
} |