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