Gentoo Archives: gentoo-commits

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