1 |
commit: a55fa7e17593c56437944a284532f63a2f4db18f |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 31 17:33:44 2022 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 31 18:23:43 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a55fa7e1 |
7 |
|
8 |
x11-libs/gtk+: Drop old versions |
9 |
|
10 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
11 |
|
12 |
x11-libs/gtk+/Manifest | 4 - |
13 |
x11-libs/gtk+/gtk+-3.24.31.ebuild | 249 --------------------------------- |
14 |
x11-libs/gtk+/gtk+-3.24.32.ebuild | 249 --------------------------------- |
15 |
x11-libs/gtk+/gtk+-3.24.33-r1.ebuild | 257 ----------------------------------- |
16 |
x11-libs/gtk+/gtk+-3.24.33.ebuild | 249 --------------------------------- |
17 |
5 files changed, 1008 deletions(-) |
18 |
|
19 |
diff --git a/x11-libs/gtk+/Manifest b/x11-libs/gtk+/Manifest |
20 |
index 0aeb8586578a..5c83f9e7826d 100644 |
21 |
--- a/x11-libs/gtk+/Manifest |
22 |
+++ b/x11-libs/gtk+/Manifest |
23 |
@@ -1,6 +1,2 @@ |
24 |
DIST gtk+-2.24.33.tar.xz 12661828 BLAKE2B f3488b220aaee54bf36fa77e2112d060152e57938845d240014a7d43a5743b1d4de19cc09c683d9d238fd1967cd67cc3c493f2475e4e481f6709f5cdc652c65c SHA512 71b588797c81f727dfac8dcb1be193f7436f717d30ecf18eae2d3aeb0f445b3be4743400acac16435490db8f564f01032065d3f42d27871317f80c98aef929d5 |
25 |
-DIST gtk+-3.24.31.tar.xz 22449112 BLAKE2B 2a09b199ad88ab8006e8d768ff6d2c5ddbdd22f84aa7d661e8e25f87a7436135edf0116202574a092536d3293800d83d9dcf1affff27e9baedeb27d31291e6a5 SHA512 e7f8e5003a919e297bd3e616acccbc5cc9bf9c9d41377c108c24db51817fcccec919abc12d05c0ed585d49526d52f0395a1c0f3ed9d9ef816bb0c4b2aa615f9b |
26 |
-DIST gtk+-3.24.32.tar.xz 22443900 BLAKE2B 0a07f4159d8c09dc46b22a98398020bf164a0a29ff4bc41aea158d697d95362b74558c9605eaafab366500cfeade9b8794baa980dd3023f71336ae8c49e1e4d7 SHA512 326640621b8aca59e9e46282c19b7a88f15469436e39bde7b845028014f245f23fef482db3589a7dbded20fcc82ec3adac66b837472f2b8c3016d285d38582c4 |
27 |
-DIST gtk+-3.24.33-add-legacy-icons.patch 157847 BLAKE2B 298a872d876421bb0d34f897b5d65984be768f623f294f0dd98e722df16ca2177c417e9508aa14fb81c75e3ff24981e018739d398748b62ae5450804f3286cee SHA512 a11b1e30a67214fbd65182efa0a7c1315a6fe75426d211a48678e5b4c13799b389b487e07b07b7a7044b7d3e277f7342a9842819e53176674ec71668481b9976 |
28 |
-DIST gtk+-3.24.33.tar.xz 22449472 BLAKE2B 7fb75393ecd0a932ed5ef6ea3c694e61dec237403e87addca3bbfdcc1dd8dcd4646d11fab3f0a8b7717bfb8c0c64926132a5aa8b1009e8c20f656c6eaa593c1b SHA512 35c844af67d442a9d55197028c6b660668c701ad8f83a64791669fca2930ada15194452b59b2ee11f8068098986218744fe9fc4742897af5a6b3eba23c98395e |
29 |
DIST gtk+-3.24.34.tar.xz 21587592 BLAKE2B 708e03ee9e62f1a1742faffb63a352ec2d90a1dc46a4e0162e343bf68355ab80fbd30c1f2261b5e5339cbb66a02cfb48addbc5ecbc2b8a37f97aae86c5af1405 SHA512 95af4441b53be175acf16121a90b1db7a152cbfb3e5ed2dffc59f622b2eb5a4d74720ae8e05dc1421b6b23588f28e09e0f153f0b92777c836f522881720fb0a2 |
30 |
|
31 |
diff --git a/x11-libs/gtk+/gtk+-3.24.31.ebuild b/x11-libs/gtk+/gtk+-3.24.31.ebuild |
32 |
deleted file mode 100644 |
33 |
index 4a67c000408c..000000000000 |
34 |
--- a/x11-libs/gtk+/gtk+-3.24.31.ebuild |
35 |
+++ /dev/null |
36 |
@@ -1,249 +0,0 @@ |
37 |
-# Copyright 1999-2022 Gentoo Authors |
38 |
-# Distributed under the terms of the GNU General Public License v2 |
39 |
- |
40 |
-EAPI=7 |
41 |
-GNOME2_EAUTORECONF="yes" |
42 |
- |
43 |
-inherit gnome2 multilib multilib-minimal virtualx |
44 |
- |
45 |
-DESCRIPTION="Gimp ToolKit +" |
46 |
-HOMEPAGE="https://www.gtk.org/" |
47 |
- |
48 |
-LICENSE="LGPL-2+" |
49 |
-SLOT="3" |
50 |
-IUSE="aqua broadway colord cups examples gtk-doc +introspection sysprof test vim-syntax wayland +X xinerama" |
51 |
-REQUIRED_USE=" |
52 |
- || ( aqua wayland X ) |
53 |
- xinerama? ( X ) |
54 |
-" |
55 |
- |
56 |
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
57 |
- |
58 |
-# Upstream wants us to do their job: |
59 |
-# https://bugzilla.gnome.org/show_bug.cgi?id=768662#c1 |
60 |
-RESTRICT="test" |
61 |
- |
62 |
-# FIXME: introspection data is built against system installation of gtk+:3, |
63 |
-# bug #???? |
64 |
-COMMON_DEPEND=" |
65 |
- >=dev-libs/atk-2.32.0[introspection?,${MULTILIB_USEDEP}] |
66 |
- >=dev-libs/fribidi-0.19.7[${MULTILIB_USEDEP}] |
67 |
- >=dev-libs/glib-2.57.2:2[${MULTILIB_USEDEP}] |
68 |
- media-libs/fontconfig[${MULTILIB_USEDEP}] |
69 |
- >=media-libs/harfbuzz-2.2.0:= |
70 |
- >=media-libs/libepoxy-1.4[X(+)?,${MULTILIB_USEDEP}] |
71 |
- virtual/libintl[${MULTILIB_USEDEP}] |
72 |
- >=x11-libs/cairo-1.14[aqua?,glib,svg,X?,${MULTILIB_USEDEP}] |
73 |
- >=x11-libs/gdk-pixbuf-2.30:2[introspection?,${MULTILIB_USEDEP}] |
74 |
- >=x11-libs/pango-1.44.0[introspection?,${MULTILIB_USEDEP}] |
75 |
- x11-misc/shared-mime-info |
76 |
- |
77 |
- colord? ( >=x11-misc/colord-0.1.9:0=[${MULTILIB_USEDEP}] ) |
78 |
- cups? ( >=net-print/cups-2.0[${MULTILIB_USEDEP}] ) |
79 |
- introspection? ( >=dev-libs/gobject-introspection-1.39:= ) |
80 |
- sysprof? ( >=dev-util/sysprof-capture-3.33.2:3[${MULTILIB_USEDEP}] ) |
81 |
- wayland? ( |
82 |
- >=dev-libs/wayland-1.14.91[${MULTILIB_USEDEP}] |
83 |
- >=dev-libs/wayland-protocols-1.17 |
84 |
- media-libs/mesa[wayland,${MULTILIB_USEDEP}] |
85 |
- >=x11-libs/libxkbcommon-0.2[${MULTILIB_USEDEP}] |
86 |
- ) |
87 |
- X? ( |
88 |
- >=app-accessibility/at-spi2-atk-2.15.1[${MULTILIB_USEDEP}] |
89 |
- media-libs/mesa[X(+),${MULTILIB_USEDEP}] |
90 |
- x11-libs/libX11[${MULTILIB_USEDEP}] |
91 |
- x11-libs/libXcomposite[${MULTILIB_USEDEP}] |
92 |
- x11-libs/libXcursor[${MULTILIB_USEDEP}] |
93 |
- x11-libs/libXdamage[${MULTILIB_USEDEP}] |
94 |
- x11-libs/libXext[${MULTILIB_USEDEP}] |
95 |
- x11-libs/libXfixes[${MULTILIB_USEDEP}] |
96 |
- >=x11-libs/libXi-1.8[${MULTILIB_USEDEP}] |
97 |
- >=x11-libs/libXrandr-1.5[${MULTILIB_USEDEP}] |
98 |
- xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] ) |
99 |
- ) |
100 |
-" |
101 |
-DEPEND="${COMMON_DEPEND} |
102 |
- test? ( |
103 |
- media-fonts/font-cursor-misc |
104 |
- media-fonts/font-misc-misc |
105 |
- ) |
106 |
- X? ( x11-base/xorg-proto ) |
107 |
-" |
108 |
-# gtk+-3.2.2 breaks Alt key handling in <=x11-libs/vte-0.30.1:2.90 |
109 |
-# gtk+-3.3.18 breaks scrolling in <=x11-libs/vte-0.31.0:2.90 |
110 |
-RDEPEND="${COMMON_DEPEND} |
111 |
- >=dev-util/gtk-update-icon-cache-3 |
112 |
- !<x11-libs/vte-0.31.0:2.90 |
113 |
-" |
114 |
-# librsvg for svg icons (PDEPEND to avoid circular dep), bug #547710 |
115 |
-PDEPEND=" |
116 |
- gnome-base/librsvg[${MULTILIB_USEDEP}] |
117 |
- >=x11-themes/adwaita-icon-theme-3.14 |
118 |
- vim-syntax? ( app-vim/gtk-syntax ) |
119 |
-" |
120 |
-BDEPEND=" |
121 |
- app-text/docbook-xml-dtd:4.1.2 |
122 |
- app-text/docbook-xsl-stylesheets |
123 |
- dev-libs/gobject-introspection-common |
124 |
- dev-libs/libxslt |
125 |
- >=dev-util/gdbus-codegen-2.48 |
126 |
- dev-util/glib-utils |
127 |
- >=dev-util/gtk-doc-am-1.20 |
128 |
- wayland? ( dev-util/wayland-scanner ) |
129 |
- >=sys-devel/gettext-0.19.7 |
130 |
- virtual/pkgconfig |
131 |
- x11-libs/gdk-pixbuf:2 |
132 |
- gtk-doc? ( |
133 |
- app-text/docbook-xml-dtd:4.3 |
134 |
- >=dev-util/gtk-doc-1.20 |
135 |
- ) |
136 |
-" |
137 |
- |
138 |
-MULTILIB_CHOST_TOOLS=( |
139 |
- /usr/bin/gtk-query-immodules-3.0$(get_exeext) |
140 |
-) |
141 |
- |
142 |
-PATCHES=( |
143 |
- # gtk-update-icon-cache is installed by dev-util/gtk-update-icon-cache |
144 |
- "${FILESDIR}"/${PN}-3.24.25-update-icon-cache.patch |
145 |
- |
146 |
- # Fix broken autotools logic |
147 |
- "${FILESDIR}"/${PN}-3.22.20-libcloudproviders-automagic.patch |
148 |
-) |
149 |
- |
150 |
-strip_builddir() { |
151 |
- local rule=$1 |
152 |
- shift |
153 |
- local directory=$1 |
154 |
- shift |
155 |
- sed -e "s/^\(${rule} =.*\)${directory}\(.*\)$/\1\2/" -i $@ \ |
156 |
- || die "Could not strip director ${directory} from build." |
157 |
-} |
158 |
- |
159 |
-src_prepare() { |
160 |
- if ! use test ; then |
161 |
- # don't waste time building tests |
162 |
- strip_builddir SRC_SUBDIRS testsuite Makefile.{am,in} |
163 |
- |
164 |
- # the tests dir needs to be build now because since commit |
165 |
- # 7ff3c6df80185e165e3bf6aa31bd014d1f8bf224 tests/gtkgears.o needs to be there |
166 |
- # strip_builddir SRC_SUBDIRS tests Makefile.{am,in} |
167 |
- fi |
168 |
- |
169 |
- if ! use examples; then |
170 |
- # don't waste time building demos |
171 |
- strip_builddir SRC_SUBDIRS demos Makefile.{am,in} |
172 |
- strip_builddir SRC_SUBDIRS examples Makefile.{am,in} |
173 |
- fi |
174 |
- |
175 |
- gnome2_src_prepare |
176 |
-} |
177 |
- |
178 |
-multilib_src_configure() { |
179 |
- local myconf=( |
180 |
- $(use_enable aqua quartz-backend) |
181 |
- $(use_enable broadway broadway-backend) |
182 |
- $(use_enable colord) |
183 |
- $(use_enable cups cups auto) |
184 |
- $(multilib_native_use_enable gtk-doc) |
185 |
- $(multilib_native_use_enable introspection) |
186 |
- $(use_enable sysprof profiler) |
187 |
- $(use_enable wayland wayland-backend) |
188 |
- $(use_enable X x11-backend) |
189 |
- $(use_enable X xcomposite) |
190 |
- $(use_enable X xdamage) |
191 |
- $(use_enable X xfixes) |
192 |
- $(use_enable X xkb) |
193 |
- $(use_enable X xrandr) |
194 |
- $(use_enable xinerama) |
195 |
- # cloudprovider is not packaged in Gentoo yet |
196 |
- --disable-cloudproviders |
197 |
- --disable-papi |
198 |
- --enable-man |
199 |
- --with-xml-catalog="${EPREFIX}"/etc/xml/catalog |
200 |
- # need libdir here to avoid a double slash in a path that libtool doesn't |
201 |
- # grok so well during install (// between $EPREFIX and usr ...) |
202 |
- # TODO: Is this still the case? |
203 |
- --libdir="${EPREFIX}"/usr/$(get_libdir) |
204 |
- CUPS_CONFIG="${EPREFIX}/usr/bin/${CHOST}-cups-config" |
205 |
- ) |
206 |
- |
207 |
- if use wayland; then |
208 |
- myconf+=( |
209 |
- # Include wayland immodule into gtk itself, to avoid problems like |
210 |
- # https://gitlab.gnome.org/GNOME/gnome-shell/issues/109 from a |
211 |
- # user overridden GTK_IM_MODULE envvar |
212 |
- --with-included-immodules=wayland |
213 |
- ) |
214 |
- fi; |
215 |
- |
216 |
- ECONF_SOURCE=${S} gnome2_src_configure "${myconf[@]}" |
217 |
- |
218 |
- # work-around gtk-doc out-of-source brokedness |
219 |
- if multilib_is_native_abi; then |
220 |
- local d |
221 |
- for d in gdk gtk libgail-util; do |
222 |
- ln -s "${S}"/docs/reference/${d}/html docs/reference/${d}/html || die |
223 |
- done |
224 |
- fi |
225 |
-} |
226 |
- |
227 |
-multilib_src_test() { |
228 |
- "${EROOT}${GLIB_COMPILE_SCHEMAS}" --allow-any-name "${S}/gtk" || die |
229 |
- GSETTINGS_SCHEMA_DIR="${S}/gtk" virtx emake check |
230 |
-} |
231 |
- |
232 |
-multilib_src_install() { |
233 |
- gnome2_src_install |
234 |
-} |
235 |
- |
236 |
-multilib_src_install_all() { |
237 |
- insinto /etc/gtk-3.0 |
238 |
- doins "${FILESDIR}"/settings.ini |
239 |
- # Skip README.{in,commits,win32} that would get installed by default |
240 |
- DOCS=( AUTHORS ChangeLog NEWS README ) |
241 |
- einstalldocs |
242 |
-} |
243 |
- |
244 |
-pkg_preinst() { |
245 |
- gnome2_pkg_preinst |
246 |
- |
247 |
- multilib_pkg_preinst() { |
248 |
- # Make immodules.cache belongs to gtk+ alone |
249 |
- local cache="/usr/$(get_libdir)/gtk-3.0/3.0.0/immodules.cache" |
250 |
- |
251 |
- if [[ -e ${EROOT}${cache} ]]; then |
252 |
- cp "${EROOT}${cache}" "${ED}${cache}" || die |
253 |
- else |
254 |
- touch "${ED}${cache}" || die |
255 |
- fi |
256 |
- } |
257 |
- multilib_parallel_foreach_abi multilib_pkg_preinst |
258 |
-} |
259 |
- |
260 |
-pkg_postinst() { |
261 |
- gnome2_pkg_postinst |
262 |
- |
263 |
- multilib_pkg_postinst() { |
264 |
- gnome2_query_immodules_gtk3 \ |
265 |
- || die "Update immodules cache failed (for ${ABI})" |
266 |
- } |
267 |
- multilib_parallel_foreach_abi multilib_pkg_postinst |
268 |
- |
269 |
- if ! has_version "app-text/evince"; then |
270 |
- elog "Please install app-text/evince for print preview functionality." |
271 |
- elog "Alternatively, check \"gtk-print-preview-command\" documentation and" |
272 |
- elog "add it to your settings.ini file." |
273 |
- fi |
274 |
-} |
275 |
- |
276 |
-pkg_postrm() { |
277 |
- gnome2_pkg_postrm |
278 |
- |
279 |
- if [[ -z ${REPLACED_BY_VERSION} ]]; then |
280 |
- multilib_pkg_postrm() { |
281 |
- rm -f "${EROOT}/usr/$(get_libdir)/gtk-3.0/3.0.0/immodules.cache" |
282 |
- } |
283 |
- multilib_foreach_abi multilib_pkg_postrm |
284 |
- fi |
285 |
-} |
286 |
|
287 |
diff --git a/x11-libs/gtk+/gtk+-3.24.32.ebuild b/x11-libs/gtk+/gtk+-3.24.32.ebuild |
288 |
deleted file mode 100644 |
289 |
index 52be7e73169b..000000000000 |
290 |
--- a/x11-libs/gtk+/gtk+-3.24.32.ebuild |
291 |
+++ /dev/null |
292 |
@@ -1,249 +0,0 @@ |
293 |
-# Copyright 1999-2022 Gentoo Authors |
294 |
-# Distributed under the terms of the GNU General Public License v2 |
295 |
- |
296 |
-EAPI=7 |
297 |
-GNOME2_EAUTORECONF="yes" |
298 |
- |
299 |
-inherit gnome2 multilib multilib-minimal virtualx |
300 |
- |
301 |
-DESCRIPTION="Gimp ToolKit +" |
302 |
-HOMEPAGE="https://www.gtk.org/" |
303 |
- |
304 |
-LICENSE="LGPL-2+" |
305 |
-SLOT="3" |
306 |
-IUSE="aqua broadway colord cups examples gtk-doc +introspection sysprof test vim-syntax wayland +X xinerama" |
307 |
-REQUIRED_USE=" |
308 |
- || ( aqua wayland X ) |
309 |
- xinerama? ( X ) |
310 |
-" |
311 |
- |
312 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
313 |
- |
314 |
-# Upstream wants us to do their job: |
315 |
-# https://bugzilla.gnome.org/show_bug.cgi?id=768662#c1 |
316 |
-RESTRICT="test" |
317 |
- |
318 |
-# FIXME: introspection data is built against system installation of gtk+:3, |
319 |
-# bug #???? |
320 |
-COMMON_DEPEND=" |
321 |
- >=dev-libs/atk-2.32.0[introspection?,${MULTILIB_USEDEP}] |
322 |
- >=dev-libs/fribidi-0.19.7[${MULTILIB_USEDEP}] |
323 |
- >=dev-libs/glib-2.57.2:2[${MULTILIB_USEDEP}] |
324 |
- media-libs/fontconfig[${MULTILIB_USEDEP}] |
325 |
- >=media-libs/harfbuzz-2.2.0:= |
326 |
- >=media-libs/libepoxy-1.4[X(+)?,${MULTILIB_USEDEP}] |
327 |
- virtual/libintl[${MULTILIB_USEDEP}] |
328 |
- >=x11-libs/cairo-1.14[aqua?,glib,svg,X?,${MULTILIB_USEDEP}] |
329 |
- >=x11-libs/gdk-pixbuf-2.30:2[introspection?,${MULTILIB_USEDEP}] |
330 |
- >=x11-libs/pango-1.44.0[introspection?,${MULTILIB_USEDEP}] |
331 |
- x11-misc/shared-mime-info |
332 |
- |
333 |
- colord? ( >=x11-misc/colord-0.1.9:0=[${MULTILIB_USEDEP}] ) |
334 |
- cups? ( >=net-print/cups-2.0[${MULTILIB_USEDEP}] ) |
335 |
- introspection? ( >=dev-libs/gobject-introspection-1.39:= ) |
336 |
- sysprof? ( >=dev-util/sysprof-capture-3.33.2:3[${MULTILIB_USEDEP}] ) |
337 |
- wayland? ( |
338 |
- >=dev-libs/wayland-1.14.91[${MULTILIB_USEDEP}] |
339 |
- >=dev-libs/wayland-protocols-1.17 |
340 |
- media-libs/mesa[wayland,${MULTILIB_USEDEP}] |
341 |
- >=x11-libs/libxkbcommon-0.2[${MULTILIB_USEDEP}] |
342 |
- ) |
343 |
- X? ( |
344 |
- >=app-accessibility/at-spi2-atk-2.15.1[${MULTILIB_USEDEP}] |
345 |
- media-libs/mesa[X(+),${MULTILIB_USEDEP}] |
346 |
- x11-libs/libX11[${MULTILIB_USEDEP}] |
347 |
- x11-libs/libXcomposite[${MULTILIB_USEDEP}] |
348 |
- x11-libs/libXcursor[${MULTILIB_USEDEP}] |
349 |
- x11-libs/libXdamage[${MULTILIB_USEDEP}] |
350 |
- x11-libs/libXext[${MULTILIB_USEDEP}] |
351 |
- x11-libs/libXfixes[${MULTILIB_USEDEP}] |
352 |
- >=x11-libs/libXi-1.8[${MULTILIB_USEDEP}] |
353 |
- >=x11-libs/libXrandr-1.5[${MULTILIB_USEDEP}] |
354 |
- xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] ) |
355 |
- ) |
356 |
-" |
357 |
-DEPEND="${COMMON_DEPEND} |
358 |
- test? ( |
359 |
- media-fonts/font-cursor-misc |
360 |
- media-fonts/font-misc-misc |
361 |
- ) |
362 |
- X? ( x11-base/xorg-proto ) |
363 |
-" |
364 |
-# gtk+-3.2.2 breaks Alt key handling in <=x11-libs/vte-0.30.1:2.90 |
365 |
-# gtk+-3.3.18 breaks scrolling in <=x11-libs/vte-0.31.0:2.90 |
366 |
-RDEPEND="${COMMON_DEPEND} |
367 |
- >=dev-util/gtk-update-icon-cache-3 |
368 |
- !<x11-libs/vte-0.31.0:2.90 |
369 |
-" |
370 |
-# librsvg for svg icons (PDEPEND to avoid circular dep), bug #547710 |
371 |
-PDEPEND=" |
372 |
- gnome-base/librsvg[${MULTILIB_USEDEP}] |
373 |
- >=x11-themes/adwaita-icon-theme-3.14 |
374 |
- vim-syntax? ( app-vim/gtk-syntax ) |
375 |
-" |
376 |
-BDEPEND=" |
377 |
- app-text/docbook-xml-dtd:4.1.2 |
378 |
- app-text/docbook-xsl-stylesheets |
379 |
- dev-libs/gobject-introspection-common |
380 |
- dev-libs/libxslt |
381 |
- >=dev-util/gdbus-codegen-2.48 |
382 |
- dev-util/glib-utils |
383 |
- >=dev-util/gtk-doc-am-1.20 |
384 |
- wayland? ( dev-util/wayland-scanner ) |
385 |
- >=sys-devel/gettext-0.19.7 |
386 |
- virtual/pkgconfig |
387 |
- x11-libs/gdk-pixbuf:2 |
388 |
- gtk-doc? ( |
389 |
- app-text/docbook-xml-dtd:4.3 |
390 |
- >=dev-util/gtk-doc-1.20 |
391 |
- ) |
392 |
-" |
393 |
- |
394 |
-MULTILIB_CHOST_TOOLS=( |
395 |
- /usr/bin/gtk-query-immodules-3.0$(get_exeext) |
396 |
-) |
397 |
- |
398 |
-PATCHES=( |
399 |
- # gtk-update-icon-cache is installed by dev-util/gtk-update-icon-cache |
400 |
- "${FILESDIR}"/${PN}-3.24.25-update-icon-cache.patch |
401 |
- |
402 |
- # Fix broken autotools logic |
403 |
- "${FILESDIR}"/${PN}-3.22.20-libcloudproviders-automagic.patch |
404 |
-) |
405 |
- |
406 |
-strip_builddir() { |
407 |
- local rule=$1 |
408 |
- shift |
409 |
- local directory=$1 |
410 |
- shift |
411 |
- sed -e "s/^\(${rule} =.*\)${directory}\(.*\)$/\1\2/" -i $@ \ |
412 |
- || die "Could not strip director ${directory} from build." |
413 |
-} |
414 |
- |
415 |
-src_prepare() { |
416 |
- if ! use test ; then |
417 |
- # don't waste time building tests |
418 |
- strip_builddir SRC_SUBDIRS testsuite Makefile.{am,in} |
419 |
- |
420 |
- # the tests dir needs to be build now because since commit |
421 |
- # 7ff3c6df80185e165e3bf6aa31bd014d1f8bf224 tests/gtkgears.o needs to be there |
422 |
- # strip_builddir SRC_SUBDIRS tests Makefile.{am,in} |
423 |
- fi |
424 |
- |
425 |
- if ! use examples; then |
426 |
- # don't waste time building demos |
427 |
- strip_builddir SRC_SUBDIRS demos Makefile.{am,in} |
428 |
- strip_builddir SRC_SUBDIRS examples Makefile.{am,in} |
429 |
- fi |
430 |
- |
431 |
- gnome2_src_prepare |
432 |
-} |
433 |
- |
434 |
-multilib_src_configure() { |
435 |
- local myconf=( |
436 |
- $(use_enable aqua quartz-backend) |
437 |
- $(use_enable broadway broadway-backend) |
438 |
- $(use_enable colord) |
439 |
- $(use_enable cups cups auto) |
440 |
- $(multilib_native_use_enable gtk-doc) |
441 |
- $(multilib_native_use_enable introspection) |
442 |
- $(use_enable sysprof profiler) |
443 |
- $(use_enable wayland wayland-backend) |
444 |
- $(use_enable X x11-backend) |
445 |
- $(use_enable X xcomposite) |
446 |
- $(use_enable X xdamage) |
447 |
- $(use_enable X xfixes) |
448 |
- $(use_enable X xkb) |
449 |
- $(use_enable X xrandr) |
450 |
- $(use_enable xinerama) |
451 |
- # cloudprovider is not packaged in Gentoo yet |
452 |
- --disable-cloudproviders |
453 |
- --disable-papi |
454 |
- --enable-man |
455 |
- --with-xml-catalog="${EPREFIX}"/etc/xml/catalog |
456 |
- # need libdir here to avoid a double slash in a path that libtool doesn't |
457 |
- # grok so well during install (// between $EPREFIX and usr ...) |
458 |
- # TODO: Is this still the case? |
459 |
- --libdir="${EPREFIX}"/usr/$(get_libdir) |
460 |
- CUPS_CONFIG="${EPREFIX}/usr/bin/${CHOST}-cups-config" |
461 |
- ) |
462 |
- |
463 |
- if use wayland; then |
464 |
- myconf+=( |
465 |
- # Include wayland immodule into gtk itself, to avoid problems like |
466 |
- # https://gitlab.gnome.org/GNOME/gnome-shell/issues/109 from a |
467 |
- # user overridden GTK_IM_MODULE envvar |
468 |
- --with-included-immodules=wayland |
469 |
- ) |
470 |
- fi; |
471 |
- |
472 |
- ECONF_SOURCE=${S} gnome2_src_configure "${myconf[@]}" |
473 |
- |
474 |
- # work-around gtk-doc out-of-source brokedness |
475 |
- if multilib_is_native_abi; then |
476 |
- local d |
477 |
- for d in gdk gtk libgail-util; do |
478 |
- ln -s "${S}"/docs/reference/${d}/html docs/reference/${d}/html || die |
479 |
- done |
480 |
- fi |
481 |
-} |
482 |
- |
483 |
-multilib_src_test() { |
484 |
- "${EROOT}${GLIB_COMPILE_SCHEMAS}" --allow-any-name "${S}/gtk" || die |
485 |
- GSETTINGS_SCHEMA_DIR="${S}/gtk" virtx emake check |
486 |
-} |
487 |
- |
488 |
-multilib_src_install() { |
489 |
- gnome2_src_install |
490 |
-} |
491 |
- |
492 |
-multilib_src_install_all() { |
493 |
- insinto /etc/gtk-3.0 |
494 |
- doins "${FILESDIR}"/settings.ini |
495 |
- # Skip README.{in,commits,win32} that would get installed by default |
496 |
- DOCS=( AUTHORS ChangeLog NEWS README ) |
497 |
- einstalldocs |
498 |
-} |
499 |
- |
500 |
-pkg_preinst() { |
501 |
- gnome2_pkg_preinst |
502 |
- |
503 |
- multilib_pkg_preinst() { |
504 |
- # Make immodules.cache belongs to gtk+ alone |
505 |
- local cache="/usr/$(get_libdir)/gtk-3.0/3.0.0/immodules.cache" |
506 |
- |
507 |
- if [[ -e ${EROOT}${cache} ]]; then |
508 |
- cp "${EROOT}${cache}" "${ED}${cache}" || die |
509 |
- else |
510 |
- touch "${ED}${cache}" || die |
511 |
- fi |
512 |
- } |
513 |
- multilib_parallel_foreach_abi multilib_pkg_preinst |
514 |
-} |
515 |
- |
516 |
-pkg_postinst() { |
517 |
- gnome2_pkg_postinst |
518 |
- |
519 |
- multilib_pkg_postinst() { |
520 |
- gnome2_query_immodules_gtk3 \ |
521 |
- || die "Update immodules cache failed (for ${ABI})" |
522 |
- } |
523 |
- multilib_parallel_foreach_abi multilib_pkg_postinst |
524 |
- |
525 |
- if ! has_version "app-text/evince"; then |
526 |
- elog "Please install app-text/evince for print preview functionality." |
527 |
- elog "Alternatively, check \"gtk-print-preview-command\" documentation and" |
528 |
- elog "add it to your settings.ini file." |
529 |
- fi |
530 |
-} |
531 |
- |
532 |
-pkg_postrm() { |
533 |
- gnome2_pkg_postrm |
534 |
- |
535 |
- if [[ -z ${REPLACED_BY_VERSION} ]]; then |
536 |
- multilib_pkg_postrm() { |
537 |
- rm -f "${EROOT}/usr/$(get_libdir)/gtk-3.0/3.0.0/immodules.cache" |
538 |
- } |
539 |
- multilib_foreach_abi multilib_pkg_postrm |
540 |
- fi |
541 |
-} |
542 |
|
543 |
diff --git a/x11-libs/gtk+/gtk+-3.24.33-r1.ebuild b/x11-libs/gtk+/gtk+-3.24.33-r1.ebuild |
544 |
deleted file mode 100644 |
545 |
index e15e573d4fbd..000000000000 |
546 |
--- a/x11-libs/gtk+/gtk+-3.24.33-r1.ebuild |
547 |
+++ /dev/null |
548 |
@@ -1,257 +0,0 @@ |
549 |
-# Copyright 1999-2022 Gentoo Authors |
550 |
-# Distributed under the terms of the GNU General Public License v2 |
551 |
- |
552 |
-EAPI=7 |
553 |
-GNOME2_EAUTORECONF="yes" |
554 |
- |
555 |
-inherit gnome2 multilib multilib-minimal virtualx |
556 |
- |
557 |
-DESCRIPTION="Gimp ToolKit +" |
558 |
-HOMEPAGE="https://www.gtk.org/" |
559 |
- |
560 |
-SRC_URI+=" https://gitlab.gnome.org/GNOME/gtk/-/commit/5a0ffbbb4568e39bdf26006e1bf18c1c1d0d597a.patch -> ${P}-add-legacy-icons.patch" |
561 |
- |
562 |
-LICENSE="LGPL-2+" |
563 |
-SLOT="3" |
564 |
-IUSE="aqua broadway colord cups examples gtk-doc +introspection sysprof test vim-syntax wayland +X xinerama" |
565 |
-REQUIRED_USE=" |
566 |
- || ( aqua wayland X ) |
567 |
- xinerama? ( X ) |
568 |
-" |
569 |
- |
570 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
571 |
- |
572 |
-# Upstream wants us to do their job: |
573 |
-# https://bugzilla.gnome.org/show_bug.cgi?id=768662#c1 |
574 |
-RESTRICT="test" |
575 |
- |
576 |
-# FIXME: introspection data is built against system installation of gtk+:3, |
577 |
-# bug #???? |
578 |
-COMMON_DEPEND=" |
579 |
- >=dev-libs/atk-2.32.0[introspection?,${MULTILIB_USEDEP}] |
580 |
- >=dev-libs/fribidi-0.19.7[${MULTILIB_USEDEP}] |
581 |
- >=dev-libs/glib-2.57.2:2[${MULTILIB_USEDEP}] |
582 |
- media-libs/fontconfig[${MULTILIB_USEDEP}] |
583 |
- >=media-libs/harfbuzz-2.2.0:= |
584 |
- >=media-libs/libepoxy-1.4[X(+)?,${MULTILIB_USEDEP}] |
585 |
- virtual/libintl[${MULTILIB_USEDEP}] |
586 |
- >=x11-libs/cairo-1.14[aqua?,glib,svg,X?,${MULTILIB_USEDEP}] |
587 |
- >=x11-libs/gdk-pixbuf-2.30:2[introspection?,${MULTILIB_USEDEP}] |
588 |
- >=x11-libs/pango-1.44.0[introspection?,${MULTILIB_USEDEP}] |
589 |
- x11-misc/shared-mime-info |
590 |
- |
591 |
- colord? ( >=x11-misc/colord-0.1.9:0=[${MULTILIB_USEDEP}] ) |
592 |
- cups? ( >=net-print/cups-2.0[${MULTILIB_USEDEP}] ) |
593 |
- introspection? ( >=dev-libs/gobject-introspection-1.39:= ) |
594 |
- sysprof? ( >=dev-util/sysprof-capture-3.33.2:3[${MULTILIB_USEDEP}] ) |
595 |
- wayland? ( |
596 |
- >=dev-libs/wayland-1.14.91[${MULTILIB_USEDEP}] |
597 |
- >=dev-libs/wayland-protocols-1.17 |
598 |
- media-libs/mesa[wayland,${MULTILIB_USEDEP}] |
599 |
- >=x11-libs/libxkbcommon-0.2[${MULTILIB_USEDEP}] |
600 |
- ) |
601 |
- X? ( |
602 |
- >=app-accessibility/at-spi2-atk-2.15.1[${MULTILIB_USEDEP}] |
603 |
- media-libs/mesa[X(+),${MULTILIB_USEDEP}] |
604 |
- x11-libs/libX11[${MULTILIB_USEDEP}] |
605 |
- x11-libs/libXcomposite[${MULTILIB_USEDEP}] |
606 |
- x11-libs/libXcursor[${MULTILIB_USEDEP}] |
607 |
- x11-libs/libXdamage[${MULTILIB_USEDEP}] |
608 |
- x11-libs/libXext[${MULTILIB_USEDEP}] |
609 |
- x11-libs/libXfixes[${MULTILIB_USEDEP}] |
610 |
- >=x11-libs/libXi-1.8[${MULTILIB_USEDEP}] |
611 |
- >=x11-libs/libXrandr-1.5[${MULTILIB_USEDEP}] |
612 |
- xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] ) |
613 |
- ) |
614 |
-" |
615 |
-DEPEND="${COMMON_DEPEND} |
616 |
- test? ( |
617 |
- media-fonts/font-cursor-misc |
618 |
- media-fonts/font-misc-misc |
619 |
- ) |
620 |
- X? ( x11-base/xorg-proto ) |
621 |
-" |
622 |
-# gtk+-3.2.2 breaks Alt key handling in <=x11-libs/vte-0.30.1:2.90 |
623 |
-# gtk+-3.3.18 breaks scrolling in <=x11-libs/vte-0.31.0:2.90 |
624 |
-RDEPEND="${COMMON_DEPEND} |
625 |
- >=dev-util/gtk-update-icon-cache-3 |
626 |
- !<x11-libs/vte-0.31.0:2.90 |
627 |
-" |
628 |
-# librsvg for svg icons (PDEPEND to avoid circular dep), bug #547710 |
629 |
-PDEPEND=" |
630 |
- gnome-base/librsvg[${MULTILIB_USEDEP}] |
631 |
- >=x11-themes/adwaita-icon-theme-3.14 |
632 |
- vim-syntax? ( app-vim/gtk-syntax ) |
633 |
-" |
634 |
- |
635 |
-# dev-vcs/git to apply the binary patch in SRC_URI, should be dropped on next release (3.24.34) |
636 |
-BDEPEND=" |
637 |
- app-text/docbook-xml-dtd:4.1.2 |
638 |
- app-text/docbook-xsl-stylesheets |
639 |
- dev-libs/gobject-introspection-common |
640 |
- dev-libs/libxslt |
641 |
- >=dev-util/gdbus-codegen-2.48 |
642 |
- dev-util/glib-utils |
643 |
- >=dev-util/gtk-doc-am-1.20 |
644 |
- wayland? ( dev-util/wayland-scanner ) |
645 |
- >=sys-devel/gettext-0.19.7 |
646 |
- virtual/pkgconfig |
647 |
- x11-libs/gdk-pixbuf:2 |
648 |
- gtk-doc? ( |
649 |
- app-text/docbook-xml-dtd:4.3 |
650 |
- >=dev-util/gtk-doc-1.20 |
651 |
- ) |
652 |
- dev-vcs/git |
653 |
-" |
654 |
- |
655 |
-MULTILIB_CHOST_TOOLS=( |
656 |
- /usr/bin/gtk-query-immodules-3.0$(get_exeext) |
657 |
-) |
658 |
- |
659 |
-PATCHES=( |
660 |
- # gtk-update-icon-cache is installed by dev-util/gtk-update-icon-cache |
661 |
- "${FILESDIR}"/${PN}-3.24.25-update-icon-cache.patch |
662 |
- |
663 |
- # Fix broken autotools logic |
664 |
- "${FILESDIR}"/${PN}-3.22.20-libcloudproviders-automagic.patch |
665 |
-) |
666 |
- |
667 |
-strip_builddir() { |
668 |
- local rule=$1 |
669 |
- shift |
670 |
- local directory=$1 |
671 |
- shift |
672 |
- sed -e "s/^\(${rule} =.*\)${directory}\(.*\)$/\1\2/" -i $@ \ |
673 |
- || die "Could not strip director ${directory} from build." |
674 |
-} |
675 |
- |
676 |
-src_prepare() { |
677 |
- if ! use test ; then |
678 |
- # don't waste time building tests |
679 |
- strip_builddir SRC_SUBDIRS testsuite Makefile.{am,in} |
680 |
- |
681 |
- # the tests dir needs to be build now because since commit |
682 |
- # 7ff3c6df80185e165e3bf6aa31bd014d1f8bf224 tests/gtkgears.o needs to be there |
683 |
- # strip_builddir SRC_SUBDIRS tests Makefile.{am,in} |
684 |
- fi |
685 |
- |
686 |
- if ! use examples; then |
687 |
- # don't waste time building demos |
688 |
- strip_builddir SRC_SUBDIRS demos Makefile.{am,in} |
689 |
- strip_builddir SRC_SUBDIRS examples Makefile.{am,in} |
690 |
- fi |
691 |
- |
692 |
- # bug #835966 |
693 |
- git apply "${DISTDIR}/${P}-add-legacy-icons.patch" || die |
694 |
- |
695 |
- gnome2_src_prepare |
696 |
-} |
697 |
- |
698 |
-multilib_src_configure() { |
699 |
- local myconf=( |
700 |
- $(use_enable aqua quartz-backend) |
701 |
- $(use_enable broadway broadway-backend) |
702 |
- $(use_enable colord) |
703 |
- $(use_enable cups cups auto) |
704 |
- $(multilib_native_use_enable gtk-doc) |
705 |
- $(multilib_native_use_enable introspection) |
706 |
- $(use_enable sysprof profiler) |
707 |
- $(use_enable wayland wayland-backend) |
708 |
- $(use_enable X x11-backend) |
709 |
- $(use_enable X xcomposite) |
710 |
- $(use_enable X xdamage) |
711 |
- $(use_enable X xfixes) |
712 |
- $(use_enable X xkb) |
713 |
- $(use_enable X xrandr) |
714 |
- $(use_enable xinerama) |
715 |
- # cloudprovider is not packaged in Gentoo yet |
716 |
- --disable-cloudproviders |
717 |
- --disable-papi |
718 |
- --enable-man |
719 |
- --with-xml-catalog="${EPREFIX}"/etc/xml/catalog |
720 |
- # need libdir here to avoid a double slash in a path that libtool doesn't |
721 |
- # grok so well during install (// between $EPREFIX and usr ...) |
722 |
- # TODO: Is this still the case? |
723 |
- --libdir="${EPREFIX}"/usr/$(get_libdir) |
724 |
- CUPS_CONFIG="${EPREFIX}/usr/bin/${CHOST}-cups-config" |
725 |
- ) |
726 |
- |
727 |
- if use wayland; then |
728 |
- myconf+=( |
729 |
- # Include wayland immodule into gtk itself, to avoid problems like |
730 |
- # https://gitlab.gnome.org/GNOME/gnome-shell/issues/109 from a |
731 |
- # user overridden GTK_IM_MODULE envvar |
732 |
- --with-included-immodules=wayland |
733 |
- ) |
734 |
- fi; |
735 |
- |
736 |
- ECONF_SOURCE=${S} gnome2_src_configure "${myconf[@]}" |
737 |
- |
738 |
- # work-around gtk-doc out-of-source brokedness |
739 |
- if multilib_is_native_abi; then |
740 |
- local d |
741 |
- for d in gdk gtk libgail-util; do |
742 |
- ln -s "${S}"/docs/reference/${d}/html docs/reference/${d}/html || die |
743 |
- done |
744 |
- fi |
745 |
-} |
746 |
- |
747 |
-multilib_src_test() { |
748 |
- "${EROOT}${GLIB_COMPILE_SCHEMAS}" --allow-any-name "${S}/gtk" || die |
749 |
- GSETTINGS_SCHEMA_DIR="${S}/gtk" virtx emake check |
750 |
-} |
751 |
- |
752 |
-multilib_src_install() { |
753 |
- gnome2_src_install |
754 |
-} |
755 |
- |
756 |
-multilib_src_install_all() { |
757 |
- insinto /etc/gtk-3.0 |
758 |
- doins "${FILESDIR}"/settings.ini |
759 |
- # Skip README.{in,commits,win32} that would get installed by default |
760 |
- DOCS=( AUTHORS ChangeLog NEWS README ) |
761 |
- einstalldocs |
762 |
-} |
763 |
- |
764 |
-pkg_preinst() { |
765 |
- gnome2_pkg_preinst |
766 |
- |
767 |
- multilib_pkg_preinst() { |
768 |
- # Make immodules.cache belongs to gtk+ alone |
769 |
- local cache="/usr/$(get_libdir)/gtk-3.0/3.0.0/immodules.cache" |
770 |
- |
771 |
- if [[ -e ${EROOT}${cache} ]]; then |
772 |
- cp "${EROOT}${cache}" "${ED}${cache}" || die |
773 |
- else |
774 |
- touch "${ED}${cache}" || die |
775 |
- fi |
776 |
- } |
777 |
- multilib_parallel_foreach_abi multilib_pkg_preinst |
778 |
-} |
779 |
- |
780 |
-pkg_postinst() { |
781 |
- gnome2_pkg_postinst |
782 |
- |
783 |
- multilib_pkg_postinst() { |
784 |
- gnome2_query_immodules_gtk3 \ |
785 |
- || die "Update immodules cache failed (for ${ABI})" |
786 |
- } |
787 |
- multilib_parallel_foreach_abi multilib_pkg_postinst |
788 |
- |
789 |
- if ! has_version "app-text/evince"; then |
790 |
- elog "Please install app-text/evince for print preview functionality." |
791 |
- elog "Alternatively, check \"gtk-print-preview-command\" documentation and" |
792 |
- elog "add it to your settings.ini file." |
793 |
- fi |
794 |
-} |
795 |
- |
796 |
-pkg_postrm() { |
797 |
- gnome2_pkg_postrm |
798 |
- |
799 |
- if [[ -z ${REPLACED_BY_VERSION} ]]; then |
800 |
- multilib_pkg_postrm() { |
801 |
- rm -f "${EROOT}/usr/$(get_libdir)/gtk-3.0/3.0.0/immodules.cache" |
802 |
- } |
803 |
- multilib_foreach_abi multilib_pkg_postrm |
804 |
- fi |
805 |
-} |
806 |
|
807 |
diff --git a/x11-libs/gtk+/gtk+-3.24.33.ebuild b/x11-libs/gtk+/gtk+-3.24.33.ebuild |
808 |
deleted file mode 100644 |
809 |
index 52be7e73169b..000000000000 |
810 |
--- a/x11-libs/gtk+/gtk+-3.24.33.ebuild |
811 |
+++ /dev/null |
812 |
@@ -1,249 +0,0 @@ |
813 |
-# Copyright 1999-2022 Gentoo Authors |
814 |
-# Distributed under the terms of the GNU General Public License v2 |
815 |
- |
816 |
-EAPI=7 |
817 |
-GNOME2_EAUTORECONF="yes" |
818 |
- |
819 |
-inherit gnome2 multilib multilib-minimal virtualx |
820 |
- |
821 |
-DESCRIPTION="Gimp ToolKit +" |
822 |
-HOMEPAGE="https://www.gtk.org/" |
823 |
- |
824 |
-LICENSE="LGPL-2+" |
825 |
-SLOT="3" |
826 |
-IUSE="aqua broadway colord cups examples gtk-doc +introspection sysprof test vim-syntax wayland +X xinerama" |
827 |
-REQUIRED_USE=" |
828 |
- || ( aqua wayland X ) |
829 |
- xinerama? ( X ) |
830 |
-" |
831 |
- |
832 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
833 |
- |
834 |
-# Upstream wants us to do their job: |
835 |
-# https://bugzilla.gnome.org/show_bug.cgi?id=768662#c1 |
836 |
-RESTRICT="test" |
837 |
- |
838 |
-# FIXME: introspection data is built against system installation of gtk+:3, |
839 |
-# bug #???? |
840 |
-COMMON_DEPEND=" |
841 |
- >=dev-libs/atk-2.32.0[introspection?,${MULTILIB_USEDEP}] |
842 |
- >=dev-libs/fribidi-0.19.7[${MULTILIB_USEDEP}] |
843 |
- >=dev-libs/glib-2.57.2:2[${MULTILIB_USEDEP}] |
844 |
- media-libs/fontconfig[${MULTILIB_USEDEP}] |
845 |
- >=media-libs/harfbuzz-2.2.0:= |
846 |
- >=media-libs/libepoxy-1.4[X(+)?,${MULTILIB_USEDEP}] |
847 |
- virtual/libintl[${MULTILIB_USEDEP}] |
848 |
- >=x11-libs/cairo-1.14[aqua?,glib,svg,X?,${MULTILIB_USEDEP}] |
849 |
- >=x11-libs/gdk-pixbuf-2.30:2[introspection?,${MULTILIB_USEDEP}] |
850 |
- >=x11-libs/pango-1.44.0[introspection?,${MULTILIB_USEDEP}] |
851 |
- x11-misc/shared-mime-info |
852 |
- |
853 |
- colord? ( >=x11-misc/colord-0.1.9:0=[${MULTILIB_USEDEP}] ) |
854 |
- cups? ( >=net-print/cups-2.0[${MULTILIB_USEDEP}] ) |
855 |
- introspection? ( >=dev-libs/gobject-introspection-1.39:= ) |
856 |
- sysprof? ( >=dev-util/sysprof-capture-3.33.2:3[${MULTILIB_USEDEP}] ) |
857 |
- wayland? ( |
858 |
- >=dev-libs/wayland-1.14.91[${MULTILIB_USEDEP}] |
859 |
- >=dev-libs/wayland-protocols-1.17 |
860 |
- media-libs/mesa[wayland,${MULTILIB_USEDEP}] |
861 |
- >=x11-libs/libxkbcommon-0.2[${MULTILIB_USEDEP}] |
862 |
- ) |
863 |
- X? ( |
864 |
- >=app-accessibility/at-spi2-atk-2.15.1[${MULTILIB_USEDEP}] |
865 |
- media-libs/mesa[X(+),${MULTILIB_USEDEP}] |
866 |
- x11-libs/libX11[${MULTILIB_USEDEP}] |
867 |
- x11-libs/libXcomposite[${MULTILIB_USEDEP}] |
868 |
- x11-libs/libXcursor[${MULTILIB_USEDEP}] |
869 |
- x11-libs/libXdamage[${MULTILIB_USEDEP}] |
870 |
- x11-libs/libXext[${MULTILIB_USEDEP}] |
871 |
- x11-libs/libXfixes[${MULTILIB_USEDEP}] |
872 |
- >=x11-libs/libXi-1.8[${MULTILIB_USEDEP}] |
873 |
- >=x11-libs/libXrandr-1.5[${MULTILIB_USEDEP}] |
874 |
- xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] ) |
875 |
- ) |
876 |
-" |
877 |
-DEPEND="${COMMON_DEPEND} |
878 |
- test? ( |
879 |
- media-fonts/font-cursor-misc |
880 |
- media-fonts/font-misc-misc |
881 |
- ) |
882 |
- X? ( x11-base/xorg-proto ) |
883 |
-" |
884 |
-# gtk+-3.2.2 breaks Alt key handling in <=x11-libs/vte-0.30.1:2.90 |
885 |
-# gtk+-3.3.18 breaks scrolling in <=x11-libs/vte-0.31.0:2.90 |
886 |
-RDEPEND="${COMMON_DEPEND} |
887 |
- >=dev-util/gtk-update-icon-cache-3 |
888 |
- !<x11-libs/vte-0.31.0:2.90 |
889 |
-" |
890 |
-# librsvg for svg icons (PDEPEND to avoid circular dep), bug #547710 |
891 |
-PDEPEND=" |
892 |
- gnome-base/librsvg[${MULTILIB_USEDEP}] |
893 |
- >=x11-themes/adwaita-icon-theme-3.14 |
894 |
- vim-syntax? ( app-vim/gtk-syntax ) |
895 |
-" |
896 |
-BDEPEND=" |
897 |
- app-text/docbook-xml-dtd:4.1.2 |
898 |
- app-text/docbook-xsl-stylesheets |
899 |
- dev-libs/gobject-introspection-common |
900 |
- dev-libs/libxslt |
901 |
- >=dev-util/gdbus-codegen-2.48 |
902 |
- dev-util/glib-utils |
903 |
- >=dev-util/gtk-doc-am-1.20 |
904 |
- wayland? ( dev-util/wayland-scanner ) |
905 |
- >=sys-devel/gettext-0.19.7 |
906 |
- virtual/pkgconfig |
907 |
- x11-libs/gdk-pixbuf:2 |
908 |
- gtk-doc? ( |
909 |
- app-text/docbook-xml-dtd:4.3 |
910 |
- >=dev-util/gtk-doc-1.20 |
911 |
- ) |
912 |
-" |
913 |
- |
914 |
-MULTILIB_CHOST_TOOLS=( |
915 |
- /usr/bin/gtk-query-immodules-3.0$(get_exeext) |
916 |
-) |
917 |
- |
918 |
-PATCHES=( |
919 |
- # gtk-update-icon-cache is installed by dev-util/gtk-update-icon-cache |
920 |
- "${FILESDIR}"/${PN}-3.24.25-update-icon-cache.patch |
921 |
- |
922 |
- # Fix broken autotools logic |
923 |
- "${FILESDIR}"/${PN}-3.22.20-libcloudproviders-automagic.patch |
924 |
-) |
925 |
- |
926 |
-strip_builddir() { |
927 |
- local rule=$1 |
928 |
- shift |
929 |
- local directory=$1 |
930 |
- shift |
931 |
- sed -e "s/^\(${rule} =.*\)${directory}\(.*\)$/\1\2/" -i $@ \ |
932 |
- || die "Could not strip director ${directory} from build." |
933 |
-} |
934 |
- |
935 |
-src_prepare() { |
936 |
- if ! use test ; then |
937 |
- # don't waste time building tests |
938 |
- strip_builddir SRC_SUBDIRS testsuite Makefile.{am,in} |
939 |
- |
940 |
- # the tests dir needs to be build now because since commit |
941 |
- # 7ff3c6df80185e165e3bf6aa31bd014d1f8bf224 tests/gtkgears.o needs to be there |
942 |
- # strip_builddir SRC_SUBDIRS tests Makefile.{am,in} |
943 |
- fi |
944 |
- |
945 |
- if ! use examples; then |
946 |
- # don't waste time building demos |
947 |
- strip_builddir SRC_SUBDIRS demos Makefile.{am,in} |
948 |
- strip_builddir SRC_SUBDIRS examples Makefile.{am,in} |
949 |
- fi |
950 |
- |
951 |
- gnome2_src_prepare |
952 |
-} |
953 |
- |
954 |
-multilib_src_configure() { |
955 |
- local myconf=( |
956 |
- $(use_enable aqua quartz-backend) |
957 |
- $(use_enable broadway broadway-backend) |
958 |
- $(use_enable colord) |
959 |
- $(use_enable cups cups auto) |
960 |
- $(multilib_native_use_enable gtk-doc) |
961 |
- $(multilib_native_use_enable introspection) |
962 |
- $(use_enable sysprof profiler) |
963 |
- $(use_enable wayland wayland-backend) |
964 |
- $(use_enable X x11-backend) |
965 |
- $(use_enable X xcomposite) |
966 |
- $(use_enable X xdamage) |
967 |
- $(use_enable X xfixes) |
968 |
- $(use_enable X xkb) |
969 |
- $(use_enable X xrandr) |
970 |
- $(use_enable xinerama) |
971 |
- # cloudprovider is not packaged in Gentoo yet |
972 |
- --disable-cloudproviders |
973 |
- --disable-papi |
974 |
- --enable-man |
975 |
- --with-xml-catalog="${EPREFIX}"/etc/xml/catalog |
976 |
- # need libdir here to avoid a double slash in a path that libtool doesn't |
977 |
- # grok so well during install (// between $EPREFIX and usr ...) |
978 |
- # TODO: Is this still the case? |
979 |
- --libdir="${EPREFIX}"/usr/$(get_libdir) |
980 |
- CUPS_CONFIG="${EPREFIX}/usr/bin/${CHOST}-cups-config" |
981 |
- ) |
982 |
- |
983 |
- if use wayland; then |
984 |
- myconf+=( |
985 |
- # Include wayland immodule into gtk itself, to avoid problems like |
986 |
- # https://gitlab.gnome.org/GNOME/gnome-shell/issues/109 from a |
987 |
- # user overridden GTK_IM_MODULE envvar |
988 |
- --with-included-immodules=wayland |
989 |
- ) |
990 |
- fi; |
991 |
- |
992 |
- ECONF_SOURCE=${S} gnome2_src_configure "${myconf[@]}" |
993 |
- |
994 |
- # work-around gtk-doc out-of-source brokedness |
995 |
- if multilib_is_native_abi; then |
996 |
- local d |
997 |
- for d in gdk gtk libgail-util; do |
998 |
- ln -s "${S}"/docs/reference/${d}/html docs/reference/${d}/html || die |
999 |
- done |
1000 |
- fi |
1001 |
-} |
1002 |
- |
1003 |
-multilib_src_test() { |
1004 |
- "${EROOT}${GLIB_COMPILE_SCHEMAS}" --allow-any-name "${S}/gtk" || die |
1005 |
- GSETTINGS_SCHEMA_DIR="${S}/gtk" virtx emake check |
1006 |
-} |
1007 |
- |
1008 |
-multilib_src_install() { |
1009 |
- gnome2_src_install |
1010 |
-} |
1011 |
- |
1012 |
-multilib_src_install_all() { |
1013 |
- insinto /etc/gtk-3.0 |
1014 |
- doins "${FILESDIR}"/settings.ini |
1015 |
- # Skip README.{in,commits,win32} that would get installed by default |
1016 |
- DOCS=( AUTHORS ChangeLog NEWS README ) |
1017 |
- einstalldocs |
1018 |
-} |
1019 |
- |
1020 |
-pkg_preinst() { |
1021 |
- gnome2_pkg_preinst |
1022 |
- |
1023 |
- multilib_pkg_preinst() { |
1024 |
- # Make immodules.cache belongs to gtk+ alone |
1025 |
- local cache="/usr/$(get_libdir)/gtk-3.0/3.0.0/immodules.cache" |
1026 |
- |
1027 |
- if [[ -e ${EROOT}${cache} ]]; then |
1028 |
- cp "${EROOT}${cache}" "${ED}${cache}" || die |
1029 |
- else |
1030 |
- touch "${ED}${cache}" || die |
1031 |
- fi |
1032 |
- } |
1033 |
- multilib_parallel_foreach_abi multilib_pkg_preinst |
1034 |
-} |
1035 |
- |
1036 |
-pkg_postinst() { |
1037 |
- gnome2_pkg_postinst |
1038 |
- |
1039 |
- multilib_pkg_postinst() { |
1040 |
- gnome2_query_immodules_gtk3 \ |
1041 |
- || die "Update immodules cache failed (for ${ABI})" |
1042 |
- } |
1043 |
- multilib_parallel_foreach_abi multilib_pkg_postinst |
1044 |
- |
1045 |
- if ! has_version "app-text/evince"; then |
1046 |
- elog "Please install app-text/evince for print preview functionality." |
1047 |
- elog "Alternatively, check \"gtk-print-preview-command\" documentation and" |
1048 |
- elog "add it to your settings.ini file." |
1049 |
- fi |
1050 |
-} |
1051 |
- |
1052 |
-pkg_postrm() { |
1053 |
- gnome2_pkg_postrm |
1054 |
- |
1055 |
- if [[ -z ${REPLACED_BY_VERSION} ]]; then |
1056 |
- multilib_pkg_postrm() { |
1057 |
- rm -f "${EROOT}/usr/$(get_libdir)/gtk-3.0/3.0.0/immodules.cache" |
1058 |
- } |
1059 |
- multilib_foreach_abi multilib_pkg_postrm |
1060 |
- fi |
1061 |
-} |