1 |
commit: 4b1b5b8703380afd1f9b858f8dc5ac9c035df7c3 |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 14 04:25:44 2022 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 14 04:54:17 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b1b5b87 |
7 |
|
8 |
gui-libs/gtk: Version bump to 4.6.4 |
9 |
|
10 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
11 |
|
12 |
gui-libs/gtk/Manifest | 1 + |
13 |
gui-libs/gtk/gtk-4.6.4.ebuild | 212 ++++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 213 insertions(+) |
15 |
|
16 |
diff --git a/gui-libs/gtk/Manifest b/gui-libs/gtk/Manifest |
17 |
index 1de93e0ef6f9..455bd86e6c9b 100644 |
18 |
--- a/gui-libs/gtk/Manifest |
19 |
+++ b/gui-libs/gtk/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST gtk-4.6.1.tar.xz 22882528 BLAKE2B 921f57124af67523e9d820427b1f5a099d8dfe14982630437df9a821b9ba25eb3db6aa494e71aea26cec3dca4d76e958e150c515d128bdda51b1812bd7801c2c SHA512 7184c3a541172bcc712c00c0093426c5ff5cc54ad2de8529cfec17f8185966718b18b46cfb6c3d8067535909eb0275cd57e8887d2be7a2af459d14f5efb4d03b |
22 |
DIST gtk-4.6.2.tar.xz 23060652 BLAKE2B 7cc3d5f06826c6f6d5c66ad251381dc34543672c778254c9044b7f58acfff9f7d0f44cdb0c124177cd0121a844a6168a46b8094d97565ef71c6ecfc9dc018865 SHA512 220959085b43c5a0bc496cb3d67213b73e1c597d6c799e5d788d0b75b664adc573b21c449850c7c0fbb7cbfafd77528c910f0e5eaa75a8fa59bff47e04c77f33 |
23 |
DIST gtk-4.6.3.tar.xz 23060172 BLAKE2B 6ca25528fea54c9be2b8961790bbd8bcb933966c0c5faa203da7d9740a86561954ab595edf31db01df22008f4384648ec748d643369574eae4c4cc54cd06e7f7 SHA512 0e96b39a8171ccefc24808d1af8af8e3cbcc9b403c1bdfd85778ed2e824c93e3687b7baa1237b05fa35181d300eacfd6cc9f79c7a6eef70b365991f0a2769f71 |
24 |
+DIST gtk-4.6.4.tar.xz 23074696 BLAKE2B 90368cc0023dcdba63f2412e67a65a0f4238f1c29e9faee969ada897c3fe21f55e7eb0f5470fc025692b4ea3af2956a32140db060663591b149186c2888cccc6 SHA512 ef18e3d084757a627f09f226cfe8da18634466575b726dd6200b74e65e0a7fc33fa8d8f609c2de09a907dfd6ca90af66e15015612675dc89d43de6e711b173e6 |
25 |
|
26 |
diff --git a/gui-libs/gtk/gtk-4.6.4.ebuild b/gui-libs/gtk/gtk-4.6.4.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..ac2b36e01d7a |
29 |
--- /dev/null |
30 |
+++ b/gui-libs/gtk/gtk-4.6.4.ebuild |
31 |
@@ -0,0 +1,212 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_{8..10} ) |
38 |
+inherit gnome.org gnome2-utils meson optfeature python-any-r1 virtualx xdg |
39 |
+ |
40 |
+DESCRIPTION="GTK is a multi-platform toolkit for creating graphical user interfaces" |
41 |
+HOMEPAGE="https://www.gtk.org/ https://gitlab.gnome.org/GNOME/gtk/" |
42 |
+ |
43 |
+LICENSE="LGPL-2+" |
44 |
+SLOT="4" |
45 |
+IUSE="aqua broadway colord cups examples ffmpeg gstreamer +introspection sysprof test vulkan wayland +X cpu_flags_x86_f16c" |
46 |
+REQUIRED_USE=" |
47 |
+ || ( aqua wayland X ) |
48 |
+ test? ( introspection ) |
49 |
+" |
50 |
+ |
51 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~x86" |
52 |
+ |
53 |
+COMMON_DEPEND=" |
54 |
+ >=dev-libs/fribidi-0.19.7 |
55 |
+ >=dev-libs/glib-2.66.0:2 |
56 |
+ >=media-libs/graphene-1.9.1[introspection?] |
57 |
+ >=media-libs/libepoxy-1.4[X(+)?] |
58 |
+ >=x11-libs/cairo-1.14[aqua?,glib,svg,X?] |
59 |
+ >=x11-libs/gdk-pixbuf-2.30:2[introspection?] |
60 |
+ >=x11-libs/pango-1.50.0[introspection?] |
61 |
+ media-libs/libpng:0= |
62 |
+ media-libs/tiff:0= |
63 |
+ media-libs/libjpeg-turbo:0= |
64 |
+ >=media-libs/harfbuzz-2.1.0:= |
65 |
+ x11-misc/shared-mime-info |
66 |
+ |
67 |
+ colord? ( >=x11-misc/colord-0.1.9:0= ) |
68 |
+ cups? ( >=net-print/cups-2.0 ) |
69 |
+ ffmpeg? ( media-video/ffmpeg ) |
70 |
+ gstreamer? ( |
71 |
+ >=media-libs/gst-plugins-bad-1.12.3 |
72 |
+ >=media-libs/gst-plugins-base-1.12.3[opengl] |
73 |
+ ) |
74 |
+ introspection? ( >=dev-libs/gobject-introspection-1.39:= ) |
75 |
+ vulkan? ( media-libs/vulkan-loader:= ) |
76 |
+ wayland? ( |
77 |
+ >=dev-libs/wayland-1.20.0 |
78 |
+ >=dev-libs/wayland-protocols-1.23 |
79 |
+ media-libs/mesa[wayland] |
80 |
+ >=x11-libs/libxkbcommon-0.2 |
81 |
+ ) |
82 |
+ X? ( |
83 |
+ >=app-accessibility/at-spi2-atk-2.5.3 |
84 |
+ media-libs/fontconfig |
85 |
+ media-libs/mesa[X(+)] |
86 |
+ x11-libs/libX11 |
87 |
+ >=x11-libs/libXi-1.8 |
88 |
+ x11-libs/libXext |
89 |
+ >=x11-libs/libXrandr-1.5 |
90 |
+ x11-libs/libXcursor |
91 |
+ x11-libs/libXfixes |
92 |
+ x11-libs/libXdamage |
93 |
+ x11-libs/libXinerama |
94 |
+ ) |
95 |
+" |
96 |
+DEPEND="${COMMON_DEPEND} |
97 |
+ sysprof? ( >=dev-util/sysprof-capture-3.40.1:4 ) |
98 |
+ X? ( x11-base/xorg-proto ) |
99 |
+" |
100 |
+RDEPEND="${COMMON_DEPEND} |
101 |
+ >=dev-util/gtk-update-icon-cache-3 |
102 |
+" |
103 |
+# librsvg for svg icons (PDEPEND to avoid circular dep), bug #547710 |
104 |
+PDEPEND=" |
105 |
+ gnome-base/librsvg |
106 |
+ >=x11-themes/adwaita-icon-theme-3.14 |
107 |
+" |
108 |
+BDEPEND=" |
109 |
+ dev-libs/gobject-introspection-common |
110 |
+ introspection? ( |
111 |
+ ${PYTHON_DEPS} |
112 |
+ $(python_gen_any_dep ' |
113 |
+ dev-python/pygobject:3[${PYTHON_USEDEP}] |
114 |
+ ') |
115 |
+ ) |
116 |
+ dev-python/docutils |
117 |
+ >=dev-util/gdbus-codegen-2.48 |
118 |
+ dev-util/glib-utils |
119 |
+ >=sys-devel/gettext-0.19.7 |
120 |
+ virtual/pkgconfig |
121 |
+ test? ( |
122 |
+ dev-libs/glib:2 |
123 |
+ wayland? ( dev-libs/weston[headless] ) |
124 |
+ ) |
125 |
+" |
126 |
+ |
127 |
+python_check_deps() { |
128 |
+ python_has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]" || return |
129 |
+} |
130 |
+ |
131 |
+pkg_setup() { |
132 |
+ use introspection && python-any-r1_pkg_setup |
133 |
+} |
134 |
+ |
135 |
+src_prepare() { |
136 |
+ default |
137 |
+ xdg_environment_reset |
138 |
+ |
139 |
+ # dev-python/docutils installs rst2man.py, not rst2man |
140 |
+ sed -i -e "s/'rst2man'/'rst2man.py'/" docs/reference/gtk/meson.build || die |
141 |
+ # Nothing should use gtk4-update-icon-cache and an unversioned one is shipped by dev-util/gtk-update-icon-cache |
142 |
+ sed -i -e '/gtk4-update-icon-cache/d' tools/meson.build || die |
143 |
+ # Workaround RWX ELF sections, https://gitlab.gnome.org/GNOME/gtk/-/issues/4598 |
144 |
+ sed -i -e 's/^ld =.*/ld = disabler()/g' gtk/meson.build demos/gtk-demo/meson.build demos/widget-factory/meson.build || die |
145 |
+ sed -i -e 's/^objcopy =.*/objcopy = disabler()/g' gtk/meson.build demos/gtk-demo/meson.build demos/widget-factory/meson.build || die |
146 |
+} |
147 |
+ |
148 |
+src_configure() { |
149 |
+ local emesonargs=( |
150 |
+ # GDK backends |
151 |
+ $(meson_use X x11-backend) |
152 |
+ $(meson_use wayland wayland-backend) |
153 |
+ $(meson_use broadway broadway-backend) |
154 |
+ -Dwin32-backend=false |
155 |
+ $(meson_use aqua macos-backend) |
156 |
+ |
157 |
+ # Media backends |
158 |
+ $(meson_feature ffmpeg media-ffmpeg) |
159 |
+ $(meson_feature gstreamer media-gstreamer) |
160 |
+ |
161 |
+ # Print backends |
162 |
+ $(meson_feature cups print-cups) |
163 |
+ |
164 |
+ # Optional dependencies |
165 |
+ $(meson_feature vulkan) |
166 |
+ -Dcloudproviders=disabled # cloudprovider is not packaged in Gentoo yet |
167 |
+ $(meson_feature sysprof) |
168 |
+ -Dtracker=disabled # tracker3 is not packaged in Gentoo yet |
169 |
+ $(meson_feature colord) |
170 |
+ # Expected to fail with GCC < 11 |
171 |
+ # See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71993 |
172 |
+ $(meson_feature cpu_flags_x86_f16c f16c) |
173 |
+ |
174 |
+ # Documentation and introspection |
175 |
+ -Dgtk_doc=false # we ship pregenerated API docs from tarball |
176 |
+ -Dman-pages=true |
177 |
+ $(meson_feature introspection) |
178 |
+ |
179 |
+ # Demos and binaries |
180 |
+ $(meson_use examples build-examples) |
181 |
+ $(meson_use examples demos) |
182 |
+ $(meson_use test build-tests) |
183 |
+ -Dinstall-tests=false |
184 |
+ ) |
185 |
+ meson_src_configure |
186 |
+} |
187 |
+ |
188 |
+src_test() { |
189 |
+ "${BROOT}${GLIB_COMPILE_SCHEMAS}" --allow-any-name "${S}/gtk" || die |
190 |
+ |
191 |
+ if use X; then |
192 |
+ einfo "Running tests under X" |
193 |
+ GSETTINGS_SCHEMA_DIR="${S}/gtk" virtx meson_src_test --setup=x11 |
194 |
+ fi |
195 |
+ |
196 |
+ if use wayland; then |
197 |
+ einfo "Running tests under Weston" |
198 |
+ |
199 |
+ export XDG_RUNTIME_DIR="$(mktemp -p $(pwd) -d xdg-runtime-XXXXXX)" |
200 |
+ |
201 |
+ weston --backend=headless-backend.so --socket=wayland-5 --idle-time=0 & |
202 |
+ compositor=$! |
203 |
+ export WAYLAND_DISPLAY=wayland-5 |
204 |
+ |
205 |
+ GSETTINGS_SCHEMA_DIR="${S}/gtk" meson_src_test --setup=wayland |
206 |
+ |
207 |
+ exit_code=$? |
208 |
+ kill ${compositor} |
209 |
+ fi |
210 |
+} |
211 |
+ |
212 |
+src_install() { |
213 |
+ meson_src_install |
214 |
+ |
215 |
+ insinto /usr/share/gtk-doc/html |
216 |
+ # This will install API docs specific to X11 and wayland regardless of USE flags, but this is intentional |
217 |
+ doins -r "${S}"/docs/reference/{gtk/gtk4,gsk/gsk4,gdk/gdk4{,-wayland,-x11}} |
218 |
+} |
219 |
+ |
220 |
+pkg_preinst() { |
221 |
+ xdg_pkg_preinst |
222 |
+ gnome2_schemas_savelist |
223 |
+} |
224 |
+ |
225 |
+pkg_postinst() { |
226 |
+ xdg_pkg_postinst |
227 |
+ gnome2_schemas_update |
228 |
+ |
229 |
+ if ! has_version "app-text/evince"; then |
230 |
+ elog "Please install app-text/evince for print preview functionality." |
231 |
+ elog "Alternatively, check \"gtk-print-preview-command\" documentation and" |
232 |
+ elog "add it to your settings.ini file." |
233 |
+ fi |
234 |
+ |
235 |
+ if use examples ; then |
236 |
+ optfeature "syntax highlighting in gtk4-demo" app-text/highlight |
237 |
+ fi |
238 |
+} |
239 |
+ |
240 |
+pkg_postrm() { |
241 |
+ xdg_pkg_postrm |
242 |
+ gnome2_schemas_update |
243 |
+} |