1 |
commit: 7e968478d0c4b3305e56b12e1adc7438cbe8569e |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 27 04:13:22 2022 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 27 04:43:53 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e968478 |
7 |
|
8 |
x11-libs/gtk+: Version bump to 3.24.33 |
9 |
|
10 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
11 |
|
12 |
x11-libs/gtk+/Manifest | 1 + |
13 |
x11-libs/gtk+/gtk+-3.24.33.ebuild | 249 ++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 250 insertions(+) |
15 |
|
16 |
diff --git a/x11-libs/gtk+/Manifest b/x11-libs/gtk+/Manifest |
17 |
index eaa349bff470..436bf39c5d33 100644 |
18 |
--- a/x11-libs/gtk+/Manifest |
19 |
+++ b/x11-libs/gtk+/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST gtk+-2.24.33.tar.xz 12661828 BLAKE2B f3488b220aaee54bf36fa77e2112d060152e57938845d240014a7d43a5743b1d4de19cc09c683d9d238fd1967cd67cc3c493f2475e4e481f6709f5cdc652c65c SHA512 71b588797c81f727dfac8dcb1be193f7436f717d30ecf18eae2d3aeb0f445b3be4743400acac16435490db8f564f01032065d3f42d27871317f80c98aef929d5 |
22 |
DIST gtk+-3.24.31.tar.xz 22449112 BLAKE2B 2a09b199ad88ab8006e8d768ff6d2c5ddbdd22f84aa7d661e8e25f87a7436135edf0116202574a092536d3293800d83d9dcf1affff27e9baedeb27d31291e6a5 SHA512 e7f8e5003a919e297bd3e616acccbc5cc9bf9c9d41377c108c24db51817fcccec919abc12d05c0ed585d49526d52f0395a1c0f3ed9d9ef816bb0c4b2aa615f9b |
23 |
DIST gtk+-3.24.32.tar.xz 22443900 BLAKE2B 0a07f4159d8c09dc46b22a98398020bf164a0a29ff4bc41aea158d697d95362b74558c9605eaafab366500cfeade9b8794baa980dd3023f71336ae8c49e1e4d7 SHA512 326640621b8aca59e9e46282c19b7a88f15469436e39bde7b845028014f245f23fef482db3589a7dbded20fcc82ec3adac66b837472f2b8c3016d285d38582c4 |
24 |
+DIST gtk+-3.24.33.tar.xz 22449472 BLAKE2B 7fb75393ecd0a932ed5ef6ea3c694e61dec237403e87addca3bbfdcc1dd8dcd4646d11fab3f0a8b7717bfb8c0c64926132a5aa8b1009e8c20f656c6eaa593c1b SHA512 35c844af67d442a9d55197028c6b660668c701ad8f83a64791669fca2930ada15194452b59b2ee11f8068098986218744fe9fc4742897af5a6b3eba23c98395e |
25 |
|
26 |
diff --git a/x11-libs/gtk+/gtk+-3.24.33.ebuild b/x11-libs/gtk+/gtk+-3.24.33.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..52be7e73169b |
29 |
--- /dev/null |
30 |
+++ b/x11-libs/gtk+/gtk+-3.24.33.ebuild |
31 |
@@ -0,0 +1,249 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+GNOME2_EAUTORECONF="yes" |
37 |
+ |
38 |
+inherit gnome2 multilib multilib-minimal virtualx |
39 |
+ |
40 |
+DESCRIPTION="Gimp ToolKit +" |
41 |
+HOMEPAGE="https://www.gtk.org/" |
42 |
+ |
43 |
+LICENSE="LGPL-2+" |
44 |
+SLOT="3" |
45 |
+IUSE="aqua broadway colord cups examples gtk-doc +introspection sysprof test vim-syntax wayland +X xinerama" |
46 |
+REQUIRED_USE=" |
47 |
+ || ( aqua wayland X ) |
48 |
+ xinerama? ( X ) |
49 |
+" |
50 |
+ |
51 |
+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" |
52 |
+ |
53 |
+# Upstream wants us to do their job: |
54 |
+# https://bugzilla.gnome.org/show_bug.cgi?id=768662#c1 |
55 |
+RESTRICT="test" |
56 |
+ |
57 |
+# FIXME: introspection data is built against system installation of gtk+:3, |
58 |
+# bug #???? |
59 |
+COMMON_DEPEND=" |
60 |
+ >=dev-libs/atk-2.32.0[introspection?,${MULTILIB_USEDEP}] |
61 |
+ >=dev-libs/fribidi-0.19.7[${MULTILIB_USEDEP}] |
62 |
+ >=dev-libs/glib-2.57.2:2[${MULTILIB_USEDEP}] |
63 |
+ media-libs/fontconfig[${MULTILIB_USEDEP}] |
64 |
+ >=media-libs/harfbuzz-2.2.0:= |
65 |
+ >=media-libs/libepoxy-1.4[X(+)?,${MULTILIB_USEDEP}] |
66 |
+ virtual/libintl[${MULTILIB_USEDEP}] |
67 |
+ >=x11-libs/cairo-1.14[aqua?,glib,svg,X?,${MULTILIB_USEDEP}] |
68 |
+ >=x11-libs/gdk-pixbuf-2.30:2[introspection?,${MULTILIB_USEDEP}] |
69 |
+ >=x11-libs/pango-1.44.0[introspection?,${MULTILIB_USEDEP}] |
70 |
+ x11-misc/shared-mime-info |
71 |
+ |
72 |
+ colord? ( >=x11-misc/colord-0.1.9:0=[${MULTILIB_USEDEP}] ) |
73 |
+ cups? ( >=net-print/cups-2.0[${MULTILIB_USEDEP}] ) |
74 |
+ introspection? ( >=dev-libs/gobject-introspection-1.39:= ) |
75 |
+ sysprof? ( >=dev-util/sysprof-capture-3.33.2:3[${MULTILIB_USEDEP}] ) |
76 |
+ wayland? ( |
77 |
+ >=dev-libs/wayland-1.14.91[${MULTILIB_USEDEP}] |
78 |
+ >=dev-libs/wayland-protocols-1.17 |
79 |
+ media-libs/mesa[wayland,${MULTILIB_USEDEP}] |
80 |
+ >=x11-libs/libxkbcommon-0.2[${MULTILIB_USEDEP}] |
81 |
+ ) |
82 |
+ X? ( |
83 |
+ >=app-accessibility/at-spi2-atk-2.15.1[${MULTILIB_USEDEP}] |
84 |
+ media-libs/mesa[X(+),${MULTILIB_USEDEP}] |
85 |
+ x11-libs/libX11[${MULTILIB_USEDEP}] |
86 |
+ x11-libs/libXcomposite[${MULTILIB_USEDEP}] |
87 |
+ x11-libs/libXcursor[${MULTILIB_USEDEP}] |
88 |
+ x11-libs/libXdamage[${MULTILIB_USEDEP}] |
89 |
+ x11-libs/libXext[${MULTILIB_USEDEP}] |
90 |
+ x11-libs/libXfixes[${MULTILIB_USEDEP}] |
91 |
+ >=x11-libs/libXi-1.8[${MULTILIB_USEDEP}] |
92 |
+ >=x11-libs/libXrandr-1.5[${MULTILIB_USEDEP}] |
93 |
+ xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] ) |
94 |
+ ) |
95 |
+" |
96 |
+DEPEND="${COMMON_DEPEND} |
97 |
+ test? ( |
98 |
+ media-fonts/font-cursor-misc |
99 |
+ media-fonts/font-misc-misc |
100 |
+ ) |
101 |
+ X? ( x11-base/xorg-proto ) |
102 |
+" |
103 |
+# gtk+-3.2.2 breaks Alt key handling in <=x11-libs/vte-0.30.1:2.90 |
104 |
+# gtk+-3.3.18 breaks scrolling in <=x11-libs/vte-0.31.0:2.90 |
105 |
+RDEPEND="${COMMON_DEPEND} |
106 |
+ >=dev-util/gtk-update-icon-cache-3 |
107 |
+ !<x11-libs/vte-0.31.0:2.90 |
108 |
+" |
109 |
+# librsvg for svg icons (PDEPEND to avoid circular dep), bug #547710 |
110 |
+PDEPEND=" |
111 |
+ gnome-base/librsvg[${MULTILIB_USEDEP}] |
112 |
+ >=x11-themes/adwaita-icon-theme-3.14 |
113 |
+ vim-syntax? ( app-vim/gtk-syntax ) |
114 |
+" |
115 |
+BDEPEND=" |
116 |
+ app-text/docbook-xml-dtd:4.1.2 |
117 |
+ app-text/docbook-xsl-stylesheets |
118 |
+ dev-libs/gobject-introspection-common |
119 |
+ dev-libs/libxslt |
120 |
+ >=dev-util/gdbus-codegen-2.48 |
121 |
+ dev-util/glib-utils |
122 |
+ >=dev-util/gtk-doc-am-1.20 |
123 |
+ wayland? ( dev-util/wayland-scanner ) |
124 |
+ >=sys-devel/gettext-0.19.7 |
125 |
+ virtual/pkgconfig |
126 |
+ x11-libs/gdk-pixbuf:2 |
127 |
+ gtk-doc? ( |
128 |
+ app-text/docbook-xml-dtd:4.3 |
129 |
+ >=dev-util/gtk-doc-1.20 |
130 |
+ ) |
131 |
+" |
132 |
+ |
133 |
+MULTILIB_CHOST_TOOLS=( |
134 |
+ /usr/bin/gtk-query-immodules-3.0$(get_exeext) |
135 |
+) |
136 |
+ |
137 |
+PATCHES=( |
138 |
+ # gtk-update-icon-cache is installed by dev-util/gtk-update-icon-cache |
139 |
+ "${FILESDIR}"/${PN}-3.24.25-update-icon-cache.patch |
140 |
+ |
141 |
+ # Fix broken autotools logic |
142 |
+ "${FILESDIR}"/${PN}-3.22.20-libcloudproviders-automagic.patch |
143 |
+) |
144 |
+ |
145 |
+strip_builddir() { |
146 |
+ local rule=$1 |
147 |
+ shift |
148 |
+ local directory=$1 |
149 |
+ shift |
150 |
+ sed -e "s/^\(${rule} =.*\)${directory}\(.*\)$/\1\2/" -i $@ \ |
151 |
+ || die "Could not strip director ${directory} from build." |
152 |
+} |
153 |
+ |
154 |
+src_prepare() { |
155 |
+ if ! use test ; then |
156 |
+ # don't waste time building tests |
157 |
+ strip_builddir SRC_SUBDIRS testsuite Makefile.{am,in} |
158 |
+ |
159 |
+ # the tests dir needs to be build now because since commit |
160 |
+ # 7ff3c6df80185e165e3bf6aa31bd014d1f8bf224 tests/gtkgears.o needs to be there |
161 |
+ # strip_builddir SRC_SUBDIRS tests Makefile.{am,in} |
162 |
+ fi |
163 |
+ |
164 |
+ if ! use examples; then |
165 |
+ # don't waste time building demos |
166 |
+ strip_builddir SRC_SUBDIRS demos Makefile.{am,in} |
167 |
+ strip_builddir SRC_SUBDIRS examples Makefile.{am,in} |
168 |
+ fi |
169 |
+ |
170 |
+ gnome2_src_prepare |
171 |
+} |
172 |
+ |
173 |
+multilib_src_configure() { |
174 |
+ local myconf=( |
175 |
+ $(use_enable aqua quartz-backend) |
176 |
+ $(use_enable broadway broadway-backend) |
177 |
+ $(use_enable colord) |
178 |
+ $(use_enable cups cups auto) |
179 |
+ $(multilib_native_use_enable gtk-doc) |
180 |
+ $(multilib_native_use_enable introspection) |
181 |
+ $(use_enable sysprof profiler) |
182 |
+ $(use_enable wayland wayland-backend) |
183 |
+ $(use_enable X x11-backend) |
184 |
+ $(use_enable X xcomposite) |
185 |
+ $(use_enable X xdamage) |
186 |
+ $(use_enable X xfixes) |
187 |
+ $(use_enable X xkb) |
188 |
+ $(use_enable X xrandr) |
189 |
+ $(use_enable xinerama) |
190 |
+ # cloudprovider is not packaged in Gentoo yet |
191 |
+ --disable-cloudproviders |
192 |
+ --disable-papi |
193 |
+ --enable-man |
194 |
+ --with-xml-catalog="${EPREFIX}"/etc/xml/catalog |
195 |
+ # need libdir here to avoid a double slash in a path that libtool doesn't |
196 |
+ # grok so well during install (// between $EPREFIX and usr ...) |
197 |
+ # TODO: Is this still the case? |
198 |
+ --libdir="${EPREFIX}"/usr/$(get_libdir) |
199 |
+ CUPS_CONFIG="${EPREFIX}/usr/bin/${CHOST}-cups-config" |
200 |
+ ) |
201 |
+ |
202 |
+ if use wayland; then |
203 |
+ myconf+=( |
204 |
+ # Include wayland immodule into gtk itself, to avoid problems like |
205 |
+ # https://gitlab.gnome.org/GNOME/gnome-shell/issues/109 from a |
206 |
+ # user overridden GTK_IM_MODULE envvar |
207 |
+ --with-included-immodules=wayland |
208 |
+ ) |
209 |
+ fi; |
210 |
+ |
211 |
+ ECONF_SOURCE=${S} gnome2_src_configure "${myconf[@]}" |
212 |
+ |
213 |
+ # work-around gtk-doc out-of-source brokedness |
214 |
+ if multilib_is_native_abi; then |
215 |
+ local d |
216 |
+ for d in gdk gtk libgail-util; do |
217 |
+ ln -s "${S}"/docs/reference/${d}/html docs/reference/${d}/html || die |
218 |
+ done |
219 |
+ fi |
220 |
+} |
221 |
+ |
222 |
+multilib_src_test() { |
223 |
+ "${EROOT}${GLIB_COMPILE_SCHEMAS}" --allow-any-name "${S}/gtk" || die |
224 |
+ GSETTINGS_SCHEMA_DIR="${S}/gtk" virtx emake check |
225 |
+} |
226 |
+ |
227 |
+multilib_src_install() { |
228 |
+ gnome2_src_install |
229 |
+} |
230 |
+ |
231 |
+multilib_src_install_all() { |
232 |
+ insinto /etc/gtk-3.0 |
233 |
+ doins "${FILESDIR}"/settings.ini |
234 |
+ # Skip README.{in,commits,win32} that would get installed by default |
235 |
+ DOCS=( AUTHORS ChangeLog NEWS README ) |
236 |
+ einstalldocs |
237 |
+} |
238 |
+ |
239 |
+pkg_preinst() { |
240 |
+ gnome2_pkg_preinst |
241 |
+ |
242 |
+ multilib_pkg_preinst() { |
243 |
+ # Make immodules.cache belongs to gtk+ alone |
244 |
+ local cache="/usr/$(get_libdir)/gtk-3.0/3.0.0/immodules.cache" |
245 |
+ |
246 |
+ if [[ -e ${EROOT}${cache} ]]; then |
247 |
+ cp "${EROOT}${cache}" "${ED}${cache}" || die |
248 |
+ else |
249 |
+ touch "${ED}${cache}" || die |
250 |
+ fi |
251 |
+ } |
252 |
+ multilib_parallel_foreach_abi multilib_pkg_preinst |
253 |
+} |
254 |
+ |
255 |
+pkg_postinst() { |
256 |
+ gnome2_pkg_postinst |
257 |
+ |
258 |
+ multilib_pkg_postinst() { |
259 |
+ gnome2_query_immodules_gtk3 \ |
260 |
+ || die "Update immodules cache failed (for ${ABI})" |
261 |
+ } |
262 |
+ multilib_parallel_foreach_abi multilib_pkg_postinst |
263 |
+ |
264 |
+ if ! has_version "app-text/evince"; then |
265 |
+ elog "Please install app-text/evince for print preview functionality." |
266 |
+ elog "Alternatively, check \"gtk-print-preview-command\" documentation and" |
267 |
+ elog "add it to your settings.ini file." |
268 |
+ fi |
269 |
+} |
270 |
+ |
271 |
+pkg_postrm() { |
272 |
+ gnome2_pkg_postrm |
273 |
+ |
274 |
+ if [[ -z ${REPLACED_BY_VERSION} ]]; then |
275 |
+ multilib_pkg_postrm() { |
276 |
+ rm -f "${EROOT}/usr/$(get_libdir)/gtk-3.0/3.0.0/immodules.cache" |
277 |
+ } |
278 |
+ multilib_foreach_abi multilib_pkg_postrm |
279 |
+ fi |
280 |
+} |