Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: gui-libs/gtk/
Date: Tue, 04 May 2021 04:11:13
Message-Id: 1620100367.4b99697d5fffa583eb120b8f780405d5d3084c47.mattst88@gentoo
1 commit: 4b99697d5fffa583eb120b8f780405d5d3084c47
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 4 03:52:47 2021 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Tue May 4 03:52:47 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b99697d
7
8 gui-libs/gtk: Version bump to 4.2.1
9
10 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
11
12 gui-libs/gtk/Manifest | 1 +
13 gui-libs/gtk/gtk-4.2.1.ebuild | 183 ++++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 184 insertions(+)
15
16 diff --git a/gui-libs/gtk/Manifest b/gui-libs/gtk/Manifest
17 index dd8c3035545..ae1a4c9b845 100644
18 --- a/gui-libs/gtk/Manifest
19 +++ b/gui-libs/gtk/Manifest
20 @@ -1 +1,2 @@
21 DIST gtk-4.2.0.tar.xz 25772584 BLAKE2B 38c29475050ff6d0aa41299201343d506e051387c44058f8d3e970470e49046bb11eae57d57d8d869577ca2d5f01da507edb3a87f79c98828ec938a0d87e6989 SHA512 12e825245b92f5dc652530c35b9a48a0bb284641d4128d054a19a35cb7814babe78bfbbdfd7fe3f2472d5028d078ae209a6da5d614b023c2b438223e4c5a04a0
22 +DIST gtk-4.2.1.tar.xz 25809520 BLAKE2B 63183950703375b092ce451be93d16d1149eb2095b5f304578a064422821546ae161235b46617647cd67a7d8898e2c3854d87bf31ede0cd6db2138d7e5c36c30 SHA512 a2721d6b9a72be481460081aedfbd713842cb5abdb24d810ec48e346342d0d91271f4ace321a9697214477ad4829d0b0ca67754ea316e719784f01c43f0fe732
23
24 diff --git a/gui-libs/gtk/gtk-4.2.1.ebuild b/gui-libs/gtk/gtk-4.2.1.ebuild
25 new file mode 100644
26 index 00000000000..43ef1917efa
27 --- /dev/null
28 +++ b/gui-libs/gtk/gtk-4.2.1.ebuild
29 @@ -0,0 +1,183 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +inherit gnome.org gnome2-utils meson virtualx xdg
36 +
37 +DESCRIPTION="GTK is a multi-platform toolkit for creating graphical user interfaces"
38 +HOMEPAGE="https://www.gtk.org/ https://gitlab.gnome.org/GNOME/gtk/"
39 +
40 +LICENSE="LGPL-2+"
41 +SLOT="4"
42 +IUSE="aqua broadway cloudprint colord cups examples ffmpeg gstreamer gtk-doc +introspection sysprof test vulkan wayland +X xinerama"
43 +REQUIRED_USE="
44 + || ( aqua wayland X )
45 + gtk-doc? ( introspection )
46 + xinerama? ( X )
47 +"
48 +
49 +KEYWORDS="~amd64"
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
55 + >=media-libs/libepoxy-1.4[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.47.0[introspection?]
59 + >=media-libs/harfbuzz-0.9:=
60 + x11-misc/shared-mime-info
61 +
62 + cloudprint? (
63 + >=net-libs/rest-0.7
64 + >=dev-libs/json-glib-1.0
65 + )
66 + colord? ( >=x11-misc/colord-0.1.9:0= )
67 + cups? ( >=net-print/cups-2.0 )
68 + ffmpeg? ( media-video/ffmpeg )
69 + gstreamer? ( >=media-libs/gst-plugins-bad-1.12.3 )
70 + introspection? ( >=dev-libs/gobject-introspection-1.39:= )
71 + vulkan? ( media-libs/vulkan-loader:= )
72 + wayland? (
73 + >=dev-libs/wayland-1.14.91
74 + >=dev-libs/wayland-protocols-1.20
75 + media-libs/mesa[wayland]
76 + >=x11-libs/libxkbcommon-0.2
77 + )
78 + X? (
79 + >=app-accessibility/at-spi2-atk-2.5.3
80 + media-libs/fontconfig
81 + media-libs/mesa[X(+)]
82 + x11-libs/libX11
83 + >=x11-libs/libXi-1.3
84 + x11-libs/libXext
85 + >=x11-libs/libXrandr-1.5
86 + x11-libs/libXcursor
87 + x11-libs/libXfixes
88 + x11-libs/libXcomposite
89 + x11-libs/libXdamage
90 + xinerama? ( x11-libs/libXinerama )
91 + )
92 +"
93 +DEPEND="${COMMON_DEPEND}
94 + sysprof? ( >=dev-util/sysprof-capture-3.38:4 )
95 + X? ( x11-base/xorg-proto )
96 +"
97 +RDEPEND="${COMMON_DEPEND}
98 + >=dev-util/gtk-update-icon-cache-3
99 +"
100 +# librsvg for svg icons (PDEPEND to avoid circular dep), bug #547710
101 +PDEPEND="
102 + gnome-base/librsvg
103 + >=x11-themes/adwaita-icon-theme-3.14
104 +"
105 +BDEPEND="
106 + app-text/docbook-xml-dtd:4.1.2
107 + app-text/docbook-xsl-stylesheets
108 + dev-lang/sassc
109 + dev-libs/gobject-introspection-common
110 + dev-libs/libxslt
111 + >=dev-util/gdbus-codegen-2.48
112 + dev-util/glib-utils
113 + >=sys-devel/gettext-0.19.7
114 + virtual/pkgconfig
115 + gtk-doc? (
116 + app-text/docbook-xml-dtd:4.3
117 + dev-util/gi-docgen
118 + )
119 + test? (
120 + dev-libs/glib:2
121 + wayland? ( dev-libs/weston )
122 +
123 + media-fonts/font-misc-misc
124 + media-fonts/font-cursor-misc
125 + )
126 +"
127 +
128 +src_configure() {
129 + local emesonargs=(
130 + # GDK backends
131 + $(meson_use X x11-backend)
132 + $(meson_use wayland wayland-backend)
133 + $(meson_use broadway broadway-backend)
134 + -Dwin32-backend=false
135 + $(meson_use aqua macos-backend)
136 +
137 + # Media backends
138 + $(meson_feature ffmpeg media-ffmpeg)
139 + $(meson_feature gstreamer media-gstreamer)
140 +
141 + # Print backends
142 + $(meson_feature cups print-cups)
143 + $(meson_feature cloudprint print-cloudprint)
144 +
145 + # Optional dependencies
146 + $(meson_feature vulkan)
147 + $(meson_feature xinerama)
148 + -Dcloudproviders=disabled # cloudprovider is not packaged in Gentoo yet
149 + $(meson_feature sysprof)
150 + -Dtracker=disabled # tracker3 is not packaged in Gentoo yet
151 + $(meson_feature colord)
152 +
153 + # Documentation and introspection
154 + $(meson_use gtk-doc gtk_doc)
155 + -Dman-pages=true
156 + $(meson_feature introspection)
157 +
158 + # Demos and binaries
159 + $(meson_use examples build-examples)
160 + $(meson_use examples demos)
161 + $(meson_use test build-tests)
162 + -Dinstall-tests=false
163 + )
164 + meson_src_configure
165 +}
166 +
167 +src_test() {
168 + "${BROOT}${GLIB_COMPILE_SCHEMAS}" --allow-any-name "${S}/gtk" || die
169 +
170 + if use X; then
171 + einfo "Running tests under X"
172 + GSETTINGS_SCHEMA_DIR="${S}/gtk" virtx meson_src_test --setup=x11
173 + fi
174 +
175 + if use wayland; then
176 + einfo "Running tests under Weston"
177 +
178 + export XDG_RUNTIME_DIR="$(mktemp -p $(pwd) -d xdg-runtime-XXXXXX)"
179 +
180 + weston --backend=headless-backend.so --socket=wayland-5 --idle-time=0 &
181 + compositor=$!
182 + export WAYLAND_DISPLAY=wayland-5
183 +
184 + GSETTINGS_SCHEMA_DIR="${S}/gtk" meson_src_test --setup=wayland
185 +
186 + exit_code=$?
187 + kill ${compositor}
188 + fi
189 +}
190 +
191 +src_install() {
192 + meson_src_install
193 + mv "${ED}"/usr/share/doc/{gtk4,${P}} || die
194 +}
195 +
196 +pkg_preinst() {
197 + gnome2_schemas_savelist
198 +}
199 +
200 +pkg_postinst() {
201 + gnome2_schemas_update
202 +
203 + if ! has_version "app-text/evince"; then
204 + elog "Please install app-text/evince for print preview functionality."
205 + elog "Alternatively, check \"gtk-print-preview-command\" documentation and"
206 + elog "add it to your settings.ini file."
207 + fi
208 +}
209 +
210 +pkg_postrm() {
211 + gnome2_schemas_update
212 +}