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