1 |
commit: 84993a1f3cb3db508333620a7af68da09510bdfd |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 22 15:04:38 2020 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 27 17:51:38 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84993a1f |
7 |
|
8 |
x11-libs/gtkglext: Drop x11-libs/pangox-compat dependency |
9 |
|
10 |
Bug: https://bugs.gentoo.org/698950 |
11 |
Bug: https://bugs.gentoo.org/706344 |
12 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
13 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
14 |
|
15 |
.../gtkglext/files/gtkglext-1.2.0-no-pangox.patch | 184 +++++++++++++++++++++ |
16 |
x11-libs/gtkglext/gtkglext-1.2.0-r5.ebuild | 62 +++++++ |
17 |
2 files changed, 246 insertions(+) |
18 |
|
19 |
diff --git a/x11-libs/gtkglext/files/gtkglext-1.2.0-no-pangox.patch b/x11-libs/gtkglext/files/gtkglext-1.2.0-no-pangox.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..1a0799959be |
22 |
--- /dev/null |
23 |
+++ b/x11-libs/gtkglext/files/gtkglext-1.2.0-no-pangox.patch |
24 |
@@ -0,0 +1,184 @@ |
25 |
+diff -up gtkglext-1.2.0/configure.in.nopangox gtkglext-1.2.0/configure.in |
26 |
+--- gtkglext-1.2.0/configure.in.nopangox 2006-02-04 22:17:19.000000000 -0500 |
27 |
++++ gtkglext-1.2.0/configure.in 2020-07-13 15:52:42.616448758 -0400 |
28 |
+@@ -59,10 +59,6 @@ m4_define([gmodule_required_version], [2 |
29 |
+ m4_define([pango_pkg], [pango]) |
30 |
+ m4_define([pango_required_version], [1.0.0]) |
31 |
+ |
32 |
+-# Pangox |
33 |
+-m4_define([pangox_pkg], [pangox]) |
34 |
+-m4_define([pangox_required_version], [1.0.0]) |
35 |
+- |
36 |
+ # PangoFT2 |
37 |
+ m4_define([pangoft2_pkg], [pangoft2]) |
38 |
+ m4_define([pangoft2_required_version], [1.0.0]) |
39 |
+@@ -349,7 +345,6 @@ PKG_CHECK_MODULES([BASE_DEPENDENCIES], [ |
40 |
+ gtk_pkg >= gtk_required_version \ |
41 |
+ gdk_pkg >= gdk_required_version \ |
42 |
+ pango_pkg >= pango_required_version \ |
43 |
+-pangox_pkg >= pangox_required_version \ |
44 |
+ gmodule_pkg >= gmodule_required_version \ |
45 |
+ ]) |
46 |
+ |
47 |
+@@ -794,7 +789,7 @@ LIBS="$save_LIBS" |
48 |
+ # CFLAGS and LIBS |
49 |
+ ################################################## |
50 |
+ |
51 |
+-GDKGLEXT_PACKAGES="gdk_pkg pango_pkg pangox_pkg gmodule_pkg" |
52 |
++GDKGLEXT_PACKAGES="gdk_pkg pango_pkg gmodule_pkg" |
53 |
+ GDKGLEXT_EXTRA_CFLAGS="$GL_CFLAGS $GDKGLEXT_WIN_CFLAGS" |
54 |
+ GDKGLEXT_EXTRA_LIBS="$GL_LIBS $GDKGLEXT_WIN_LIBS" |
55 |
+ GDKGLEXT_DEP_CFLAGS="$GDKGLEXT_EXTRA_CFLAGS `$PKG_CONFIG --cflags $GDKGLEXT_PACKAGES`" |
56 |
+diff -up gtkglext-1.2.0/configure.nopangox gtkglext-1.2.0/configure |
57 |
+--- gtkglext-1.2.0/configure.nopangox 2006-02-04 22:17:47.000000000 -0500 |
58 |
++++ gtkglext-1.2.0/configure 2020-07-13 15:52:42.619448711 -0400 |
59 |
+@@ -19880,14 +19880,12 @@ if test -n "$PKG_CONFIG"; then |
60 |
+ gtk+-2.0 >= 2.0.0 \\ |
61 |
+ gdk-2.0 >= 2.0.0 \\ |
62 |
+ pango >= 1.0.0 \\ |
63 |
+-pangox >= 1.0.0 \\ |
64 |
+ gmodule-2.0 >= 2.0.0 \\ |
65 |
+ \"") >&5 |
66 |
+ ($PKG_CONFIG --exists --print-errors "\ |
67 |
+ gtk+-2.0 >= 2.0.0 \ |
68 |
+ gdk-2.0 >= 2.0.0 \ |
69 |
+ pango >= 1.0.0 \ |
70 |
+-pangox >= 1.0.0 \ |
71 |
+ gmodule-2.0 >= 2.0.0 \ |
72 |
+ ") 2>&5 |
73 |
+ ac_status=$? |
74 |
+@@ -19897,7 +19895,6 @@ gmodule-2.0 >= 2.0.0 \ |
75 |
+ gtk+-2.0 >= 2.0.0 \ |
76 |
+ gdk-2.0 >= 2.0.0 \ |
77 |
+ pango >= 1.0.0 \ |
78 |
+-pangox >= 1.0.0 \ |
79 |
+ gmodule-2.0 >= 2.0.0 \ |
80 |
+ " 2>/dev/null` |
81 |
+ else |
82 |
+@@ -19916,14 +19913,12 @@ if test -n "$PKG_CONFIG"; then |
83 |
+ gtk+-2.0 >= 2.0.0 \\ |
84 |
+ gdk-2.0 >= 2.0.0 \\ |
85 |
+ pango >= 1.0.0 \\ |
86 |
+-pangox >= 1.0.0 \\ |
87 |
+ gmodule-2.0 >= 2.0.0 \\ |
88 |
+ \"") >&5 |
89 |
+ ($PKG_CONFIG --exists --print-errors "\ |
90 |
+ gtk+-2.0 >= 2.0.0 \ |
91 |
+ gdk-2.0 >= 2.0.0 \ |
92 |
+ pango >= 1.0.0 \ |
93 |
+-pangox >= 1.0.0 \ |
94 |
+ gmodule-2.0 >= 2.0.0 \ |
95 |
+ ") 2>&5 |
96 |
+ ac_status=$? |
97 |
+@@ -19933,7 +19928,6 @@ gmodule-2.0 >= 2.0.0 \ |
98 |
+ gtk+-2.0 >= 2.0.0 \ |
99 |
+ gdk-2.0 >= 2.0.0 \ |
100 |
+ pango >= 1.0.0 \ |
101 |
+-pangox >= 1.0.0 \ |
102 |
+ gmodule-2.0 >= 2.0.0 \ |
103 |
+ " 2>/dev/null` |
104 |
+ else |
105 |
+@@ -19958,7 +19952,6 @@ fi |
106 |
+ gtk+-2.0 >= 2.0.0 \ |
107 |
+ gdk-2.0 >= 2.0.0 \ |
108 |
+ pango >= 1.0.0 \ |
109 |
+-pangox >= 1.0.0 \ |
110 |
+ gmodule-2.0 >= 2.0.0 \ |
111 |
+ "` |
112 |
+ else |
113 |
+@@ -19966,7 +19959,6 @@ gmodule-2.0 >= 2.0.0 \ |
114 |
+ gtk+-2.0 >= 2.0.0 \ |
115 |
+ gdk-2.0 >= 2.0.0 \ |
116 |
+ pango >= 1.0.0 \ |
117 |
+-pangox >= 1.0.0 \ |
118 |
+ gmodule-2.0 >= 2.0.0 \ |
119 |
+ "` |
120 |
+ fi |
121 |
+@@ -19977,7 +19969,6 @@ gmodule-2.0 >= 2.0.0 \ |
122 |
+ gtk+-2.0 >= 2.0.0 \ |
123 |
+ gdk-2.0 >= 2.0.0 \ |
124 |
+ pango >= 1.0.0 \ |
125 |
+-pangox >= 1.0.0 \ |
126 |
+ gmodule-2.0 >= 2.0.0 \ |
127 |
+ ) were not met: |
128 |
+ |
129 |
+@@ -19994,7 +19985,6 @@ echo "$as_me: error: Package requirement |
130 |
+ gtk+-2.0 >= 2.0.0 \ |
131 |
+ gdk-2.0 >= 2.0.0 \ |
132 |
+ pango >= 1.0.0 \ |
133 |
+-pangox >= 1.0.0 \ |
134 |
+ gmodule-2.0 >= 2.0.0 \ |
135 |
+ ) were not met: |
136 |
+ |
137 |
+@@ -25420,7 +25410,7 @@ LIBS="$save_LIBS" |
138 |
+ # CFLAGS and LIBS |
139 |
+ ################################################## |
140 |
+ |
141 |
+-GDKGLEXT_PACKAGES="gdk-2.0 pango pangox gmodule-2.0" |
142 |
++GDKGLEXT_PACKAGES="gdk-2.0 pango gmodule-2.0" |
143 |
+ GDKGLEXT_EXTRA_CFLAGS="$GL_CFLAGS $GDKGLEXT_WIN_CFLAGS" |
144 |
+ GDKGLEXT_EXTRA_LIBS="$GL_LIBS $GDKGLEXT_WIN_LIBS" |
145 |
+ GDKGLEXT_DEP_CFLAGS="$GDKGLEXT_EXTRA_CFLAGS `$PKG_CONFIG --cflags $GDKGLEXT_PACKAGES`" |
146 |
+diff -up gtkglext-1.2.0/gdk/x11/gdkglfont-x11.c.nopangox gtkglext-1.2.0/gdk/x11/gdkglfont-x11.c |
147 |
+--- gtkglext-1.2.0/gdk/x11/gdkglfont-x11.c.nopangox 2004-02-20 04:38:14.000000000 -0500 |
148 |
++++ gtkglext-1.2.0/gdk/x11/gdkglfont-x11.c 2020-07-13 15:55:19.720973082 -0400 |
149 |
+@@ -18,7 +18,8 @@ |
150 |
+ |
151 |
+ #include <string.h> |
152 |
+ |
153 |
+-#include <pango/pangox.h> |
154 |
++//#include <pango/pangox.h> |
155 |
++#include <pango/pangocairo.h> |
156 |
+ |
157 |
+ #include "gdkglx.h" |
158 |
+ #include "gdkglprivate-x11.h" |
159 |
+@@ -77,9 +78,9 @@ gdk_gl_font_use_pango_font_common (Pango |
160 |
+ { |
161 |
+ PangoFont *font = NULL; |
162 |
+ gchar *charset = NULL; |
163 |
+- PangoXSubfont subfont_id; |
164 |
++ //PangoXSubfont subfont_id; |
165 |
+ gchar *xlfd = NULL; |
166 |
+- PangoXFontCache *font_cache; |
167 |
++ //PangoXFontCache *font_cache; |
168 |
+ XFontStruct *fs; |
169 |
+ |
170 |
+ GDK_GL_NOTE_FUNC_PRIVATE (); |
171 |
+@@ -91,6 +92,7 @@ gdk_gl_font_use_pango_font_common (Pango |
172 |
+ goto FAIL; |
173 |
+ } |
174 |
+ |
175 |
++ /* |
176 |
+ charset = gdk_gl_font_charset_for_locale (); |
177 |
+ if (!pango_x_find_first_subfont (font, &charset, 1, &subfont_id)) |
178 |
+ { |
179 |
+@@ -114,6 +116,7 @@ gdk_gl_font_use_pango_font_common (Pango |
180 |
+ glXUseXFont (fs->fid, first, count, list_base); |
181 |
+ |
182 |
+ pango_x_font_cache_unload (font_cache, fs); |
183 |
++ */ |
184 |
+ |
185 |
+ FAIL: |
186 |
+ |
187 |
+@@ -149,11 +152,7 @@ gdk_gl_font_use_pango_font (const PangoF |
188 |
+ |
189 |
+ GDK_GL_NOTE_FUNC (); |
190 |
+ |
191 |
+-#ifdef GDKGLEXT_MULTIHEAD_SUPPORT |
192 |
+- font_map = pango_x_font_map_for_display (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ())); |
193 |
+-#else /* GDKGLEXT_MULTIHEAD_SUPPORT */ |
194 |
+- font_map = pango_x_font_map_for_display (gdk_x11_get_default_xdisplay ()); |
195 |
+-#endif /* GDKGLEXT_MULTIHEAD_SUPPORT */ |
196 |
++ font_map = pango_cairo_font_map_get_default (); |
197 |
+ |
198 |
+ return gdk_gl_font_use_pango_font_common (font_map, font_desc, |
199 |
+ first, count, list_base); |
200 |
+@@ -187,7 +186,7 @@ gdk_gl_font_use_pango_font_for_display ( |
201 |
+ |
202 |
+ GDK_GL_NOTE_FUNC (); |
203 |
+ |
204 |
+- font_map = pango_x_font_map_for_display (GDK_DISPLAY_XDISPLAY (display)); |
205 |
++ font_map = pango_cairo_font_map_get_default (); |
206 |
+ |
207 |
+ return gdk_gl_font_use_pango_font_common (font_map, font_desc, |
208 |
+ first, count, list_base); |
209 |
|
210 |
diff --git a/x11-libs/gtkglext/gtkglext-1.2.0-r5.ebuild b/x11-libs/gtkglext/gtkglext-1.2.0-r5.ebuild |
211 |
new file mode 100644 |
212 |
index 00000000000..ff4f55ef325 |
213 |
--- /dev/null |
214 |
+++ b/x11-libs/gtkglext/gtkglext-1.2.0-r5.ebuild |
215 |
@@ -0,0 +1,62 @@ |
216 |
+# Copyright 1999-2020 Gentoo Authors |
217 |
+# Distributed under the terms of the GNU General Public License v2 |
218 |
+ |
219 |
+EAPI=6 |
220 |
+ |
221 |
+inherit autotools gnome2 multilib-minimal |
222 |
+ |
223 |
+DESCRIPTION="GL extensions for Gtk+ 2.0" |
224 |
+HOMEPAGE="http://gtkglext.sourceforge.net/" |
225 |
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" |
226 |
+ |
227 |
+LICENSE="GPL-2+ LGPL-2.1+" |
228 |
+SLOT="0" |
229 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" |
230 |
+IUSE="" |
231 |
+ |
232 |
+RDEPEND=" |
233 |
+ >=dev-libs/glib-2.34.3:2[${MULTILIB_USEDEP}] |
234 |
+ >=x11-libs/gtk+-2.24.23:2[${MULTILIB_USEDEP}] |
235 |
+ >=x11-libs/pango-1.36.3[${MULTILIB_USEDEP}] |
236 |
+ >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
237 |
+ >=x11-libs/libXmu-1.1.1-r1[${MULTILIB_USEDEP}] |
238 |
+ >=virtual/glu-9.0-r1[${MULTILIB_USEDEP}] |
239 |
+ >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] |
240 |
+" |
241 |
+DEPEND="${RDEPEND} |
242 |
+ dev-util/glib-utils |
243 |
+ >=sys-devel/autoconf-archive-2014.02.28 |
244 |
+ virtual/pkgconfig |
245 |
+" |
246 |
+ |
247 |
+src_prepare() { |
248 |
+ # Fix build issues with gcc patch from Fedora, bug #649718 |
249 |
+ eapply "${FILESDIR}"/${P}-gcc8-fixes.patch |
250 |
+ |
251 |
+ # Ancient configure.in with broken multilib gl detection (bug #543050) |
252 |
+ # Backport some configure updates from upstream git master to fix |
253 |
+ eapply "${FILESDIR}"/${P}-gl-configure.patch |
254 |
+ |
255 |
+ # Drop pangox-compat dep with patch from Fedora, bugs #698950, #706344 |
256 |
+ eapply "${FILESDIR}"/${P}-no-pangox.patch |
257 |
+ |
258 |
+ mv configure.{in,ac} || die "mv failed" |
259 |
+ eautoreconf |
260 |
+ |
261 |
+ gnome2_src_prepare |
262 |
+} |
263 |
+ |
264 |
+multilib_src_configure() { |
265 |
+ ECONF_SOURCE=${S} \ |
266 |
+ gnome2_src_configure \ |
267 |
+ --disable-static |
268 |
+} |
269 |
+ |
270 |
+multilib_src_install() { |
271 |
+ gnome2_src_install |
272 |
+} |
273 |
+ |
274 |
+multilib_src_install_all() { |
275 |
+ local DOCS=( AUTHORS ChangeLog{,.pre-1-0} NEWS README TODO ) |
276 |
+ einstalldocs |
277 |
+} |