Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-libs/gtk+/
Date: Fri, 30 Dec 2016 02:11:49
Message-Id: 1483063842.5df52408930eb87bbe8787d6ec7b9c27d3340a8d.leio@gentoo
1 commit: 5df52408930eb87bbe8787d6ec7b9c27d3340a8d
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 30 02:10:42 2016 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 30 02:10:42 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5df52408
7
8 x11-libs/gtk+: Remove old
9
10 Package-Manager: portage-2.3.3
11
12 x11-libs/gtk+/Manifest | 2 -
13 x11-libs/gtk+/gtk+-3.22.2.ebuild | 234 ---------------------------------------
14 x11-libs/gtk+/gtk+-3.22.3.ebuild | 234 ---------------------------------------
15 3 files changed, 470 deletions(-)
16
17 diff --git a/x11-libs/gtk+/Manifest b/x11-libs/gtk+/Manifest
18 index d419f2b..0669b86 100644
19 --- a/x11-libs/gtk+/Manifest
20 +++ b/x11-libs/gtk+/Manifest
21 @@ -6,6 +6,4 @@ DIST gtk+-2.24.31.tar.xz 12805344 SHA256 68c1922732c7efc08df4656a5366dcc3afdc879
22 DIST gtk+-3.16.7.tar.xz 18294656 SHA256 19689d14de54d182fad538153dbff6d41f53841f940aa871585fdea0306c7fba SHA512 8f74b3a4093ecf776466d3988806fdae081d10d5e74c66770b52f624076afe92d58efb68ace47fd0dbc5a170a577fc9a8d1b4768794aa4249433c95198db00c8 WHIRLPOOL f8b4d9fa6b7b3ed9702f76d28d729b745217e072898239517d320f0635e87691ca874a136607566cf53d73aead53833c5ecf484fc7aea74f3c26a1f14cc5a9b4
23 DIST gtk+-3.18.9.tar.xz 16800896 SHA256 783d7f8b00f9b4224cc94d7da885a67598e711c2d6d79c9c873c6b203e83acbd SHA512 348ff28fe2674ac50653cdd6909f028dee823bbaac786b21163f1896cac7b2ea1dbdc4ab54453402ac5b715317e42d6fe677fd0247364397a13bcb8757ab720c WHIRLPOOL f9e03ab29c15a130894524a0b270448990e756285e4af8e88de82c19cbece325e2532a06e091bff1e699374fc20c6b692ce7387576697378624989f55c0fa635
24 DIST gtk+-3.20.9.tar.xz 17174872 SHA256 83a609ba2f3424b5509e73967c49c67833af466d6f91081b24ee5c64fce6ac17 SHA512 5848403959f76633511009231c80a814cfe24a7ba07c9429704f432191e51b54d3e6621ce5b578f79999f21993920af3a45c8d03dad6ba03af5f9a342b32626e WHIRLPOOL 7964b82dabf72b5d45a34565874ba02e0dda09b0f358f640ca0c602c3c7aa4618432829d047794f5f202424c34c837bbdc31ccb3c5457768e252f048afd30107
25 -DIST gtk+-3.22.2.tar.xz 18257964 SHA256 2343dcaed2fc237ef718136ff4110fef7eb1ebfe178a9b064aa21cd74ecb6946 SHA512 edf8c3fa858d87605df1d244d5103a2d4cabbbe3aa4213220342ad84fd595df94fa5526db5b51a3d89bba1e3548d47d9c15dbb68a8ae3bcd99ebfa333797a2ee WHIRLPOOL 4d8f33425f4f5658444e8da4520c57a88df626fb59084dd79f85258f7219d93b28498c12fd8ffadab21428da3d0b6da0542e6e8e4f32fc6d71298ff256a5848e
26 -DIST gtk+-3.22.3.tar.xz 18236932 SHA256 e190ab1a9a893861b8e8be341aa57bce8b7146d6445ebfe5a8ab64236fe82ed3 SHA512 c9b75f5094c05d9ce329f0cfeed4493209920d9c79e3b8cfadeae21b3079e7e6facadd82d2d36037e567669eb58af0319bb84df78a8d910eac318512200800ac WHIRLPOOL 6b9276e01df8f0bbcde8c89667fa1b416cf88797698782d81b74a41119d19341eac481278c74a00027b991d0b06991264679e30a6c745003377b9829e311ad92
27 DIST gtk+-3.22.4.tar.xz 18243596 SHA256 7094a6fcfe133d01c578358bd5d3e499715f1a0206e87bd5cf6c834e301f387f SHA512 d929dd3528a8ac29946a81e3140e69918c07c6d7eca35a69232307e1a63a263ebc787d5ff1077bc7d27da8ad45e151ac191adf57e09987d15d28b483428192e7 WHIRLPOOL d222e4c30fbafb03dcc30450cdc52f0f8b8bc830e4ae0abd07cbf0a8f2cfc5df6fd8de247f0337f467c41d85bf37889de66cfcfee050812f8f25ee6f85e56812
28
29 diff --git a/x11-libs/gtk+/gtk+-3.22.2.ebuild b/x11-libs/gtk+/gtk+-3.22.2.ebuild
30 deleted file mode 100644
31 index 33ba261..00000000
32 --- a/x11-libs/gtk+/gtk+-3.22.2.ebuild
33 +++ /dev/null
34 @@ -1,234 +0,0 @@
35 -# Copyright 1999-2016 Gentoo Foundation
36 -# Distributed under the terms of the GNU General Public License v2
37 -# $Id$
38 -
39 -EAPI=6
40 -GNOME2_LA_PUNT="yes"
41 -
42 -inherit autotools eutils flag-o-matic gnome2 multilib virtualx multilib-minimal
43 -
44 -DESCRIPTION="Gimp ToolKit +"
45 -HOMEPAGE="http://www.gtk.org/"
46 -
47 -LICENSE="LGPL-2+"
48 -SLOT="3"
49 -IUSE="aqua broadway cloudprint colord cups examples +introspection test vim-syntax wayland X xinerama"
50 -REQUIRED_USE="
51 - || ( aqua wayland X )
52 - xinerama? ( X )
53 -"
54 -
55 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
56 -
57 -# Upstream wants us to do their job:
58 -# https://bugzilla.gnome.org/show_bug.cgi?id=768662#c1
59 -RESTRICT="test"
60 -
61 -# FIXME: introspection data is built against system installation of gtk+:3,
62 -# bug #????
63 -# NOTE: cairo[svg] dep is due to bug 291283 (not patched to avoid eautoreconf)
64 -COMMON_DEPEND="
65 - >=dev-libs/atk-2.15[introspection?,${MULTILIB_USEDEP}]
66 - >=dev-libs/glib-2.49.4:2[${MULTILIB_USEDEP}]
67 - media-libs/fontconfig[${MULTILIB_USEDEP}]
68 - >=media-libs/libepoxy-1.0[${MULTILIB_USEDEP}]
69 - >=x11-libs/cairo-1.14[aqua?,glib,svg,X?,${MULTILIB_USEDEP}]
70 - >=x11-libs/gdk-pixbuf-2.30:2[introspection?,X?,${MULTILIB_USEDEP}]
71 - >=x11-libs/pango-1.37.3[introspection?,${MULTILIB_USEDEP}]
72 - x11-misc/shared-mime-info
73 -
74 - cloudprint? (
75 - >=net-libs/rest-0.7[${MULTILIB_USEDEP}]
76 - >=dev-libs/json-glib-1.0[${MULTILIB_USEDEP}] )
77 - colord? ( >=x11-misc/colord-0.1.9:0=[${MULTILIB_USEDEP}] )
78 - cups? ( >=net-print/cups-1.2[${MULTILIB_USEDEP}] )
79 - introspection? ( >=dev-libs/gobject-introspection-1.39:= )
80 - wayland? (
81 - >=dev-libs/wayland-1.9.91[${MULTILIB_USEDEP}]
82 - >=dev-libs/wayland-protocols-1.7
83 - media-libs/mesa[wayland,${MULTILIB_USEDEP}]
84 - >=x11-libs/libxkbcommon-0.2[${MULTILIB_USEDEP}]
85 - )
86 - X? (
87 - >=app-accessibility/at-spi2-atk-2.5.3[${MULTILIB_USEDEP}]
88 - x11-libs/libXrender[${MULTILIB_USEDEP}]
89 - x11-libs/libX11[${MULTILIB_USEDEP}]
90 - >=x11-libs/libXi-1.3[${MULTILIB_USEDEP}]
91 - x11-libs/libXext[${MULTILIB_USEDEP}]
92 - >=x11-libs/libXrandr-1.5[${MULTILIB_USEDEP}]
93 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
94 - x11-libs/libXfixes[${MULTILIB_USEDEP}]
95 - x11-libs/libXcomposite[${MULTILIB_USEDEP}]
96 - x11-libs/libXdamage[${MULTILIB_USEDEP}]
97 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
98 - )
99 -"
100 -DEPEND="${COMMON_DEPEND}
101 - app-text/docbook-xsl-stylesheets
102 - app-text/docbook-xml-dtd:4.1.2
103 - dev-libs/libxslt
104 - dev-libs/gobject-introspection-common
105 - >=dev-util/gdbus-codegen-2.48
106 - >=dev-util/gtk-doc-am-1.20
107 - >=sys-devel/gettext-0.19.7[${MULTILIB_USEDEP}]
108 - virtual/pkgconfig[${MULTILIB_USEDEP}]
109 - X? (
110 - x11-proto/xextproto[${MULTILIB_USEDEP}]
111 - x11-proto/xproto[${MULTILIB_USEDEP}]
112 - x11-proto/inputproto[${MULTILIB_USEDEP}]
113 - x11-proto/damageproto[${MULTILIB_USEDEP}]
114 - xinerama? ( x11-proto/xineramaproto[${MULTILIB_USEDEP}] )
115 - )
116 - test? (
117 - media-fonts/font-misc-misc
118 - media-fonts/font-cursor-misc )
119 -"
120 -# gtk+-3.2.2 breaks Alt key handling in <=x11-libs/vte-0.30.1:2.90
121 -# gtk+-3.3.18 breaks scrolling in <=x11-libs/vte-0.31.0:2.90
122 -# >=xorg-server-1.11.4 needed for
123 -# https://mail.gnome.org/archives/desktop-devel-list/2012-March/msg00024.html
124 -RDEPEND="${COMMON_DEPEND}
125 - >=dev-util/gtk-update-icon-cache-3
126 - !<gnome-base/gail-1000
127 - !<x11-libs/vte-0.31.0:2.90
128 - >=x11-themes/adwaita-icon-theme-3.14
129 - X? ( !<x11-base/xorg-server-1.11.4 )
130 -"
131 -# librsvg for svg icons (PDEPEND to avoid circular dep), bug #547710
132 -PDEPEND="
133 - gnome-base/librsvg[${MULTILIB_USEDEP}]
134 - vim-syntax? ( app-vim/gtk-syntax )
135 -"
136 -
137 -MULTILIB_CHOST_TOOLS=(
138 - /usr/bin/gtk-query-immodules-3.0$(get_exeext)
139 -)
140 -
141 -strip_builddir() {
142 - local rule=$1
143 - shift
144 - local directory=$1
145 - shift
146 - sed -e "s/^\(${rule} =.*\)${directory}\(.*\)$/\1\2/" -i $@ \
147 - || die "Could not strip director ${directory} from build."
148 -}
149 -
150 -src_prepare() {
151 - # -O3 and company cause random crashes in applications. Bug #133469
152 - replace-flags -O3 -O2
153 - strip-flags
154 -
155 - if ! use test ; then
156 - # don't waste time building tests
157 - strip_builddir SRC_SUBDIRS testsuite Makefile.{am,in}
158 -
159 - # the tests dir needs to be build now because since commit
160 - # 7ff3c6df80185e165e3bf6aa31bd014d1f8bf224 tests/gtkgears.o needs to be there
161 - # strip_builddir SRC_SUBDIRS tests Makefile.{am,in}
162 - fi
163 -
164 - if ! use examples; then
165 - # don't waste time building demos
166 - strip_builddir SRC_SUBDIRS demos Makefile.{am,in}
167 - strip_builddir SRC_SUBDIRS examples Makefile.{am,in}
168 - fi
169 -
170 - # gtk-update-icon-cache is installed by dev-util/gtk-update-icon-cache
171 - eapply "${FILESDIR}"/${PN}-3.22.2-update-icon-cache.patch
172 -
173 - eautoreconf
174 - gnome2_src_prepare
175 -}
176 -
177 -multilib_src_configure() {
178 - # need libdir here to avoid a double slash in a path that libtool doesn't
179 - # grok so well during install (// between $EPREFIX and usr ...)
180 - ECONF_SOURCE=${S} \
181 - gnome2_src_configure \
182 - $(use_enable aqua quartz-backend) \
183 - $(use_enable broadway broadway-backend) \
184 - $(use_enable cloudprint) \
185 - $(use_enable colord) \
186 - $(use_enable cups cups auto) \
187 - $(multilib_native_use_enable introspection) \
188 - $(use_enable wayland wayland-backend) \
189 - $(use_enable X x11-backend) \
190 - $(use_enable X xcomposite) \
191 - $(use_enable X xdamage) \
192 - $(use_enable X xfixes) \
193 - $(use_enable X xkb) \
194 - $(use_enable X xrandr) \
195 - $(use_enable xinerama) \
196 - --disable-papi \
197 - --disable-mir-backend \
198 - --enable-man \
199 - --with-xml-catalog="${EPREFIX}"/etc/xml/catalog \
200 - --libdir="${EPREFIX}"/usr/$(get_libdir) \
201 - CUPS_CONFIG="${EPREFIX}/usr/bin/${CHOST}-cups-config"
202 -
203 - # work-around gtk-doc out-of-source brokedness
204 - if multilib_is_native_abi; then
205 - local d
206 - for d in gdk gtk libgail-util; do
207 - ln -s "${S}"/docs/reference/${d}/html docs/reference/${d}/html || die
208 - done
209 - fi
210 -}
211 -
212 -multilib_src_test() {
213 - "${EROOT}${GLIB_COMPILE_SCHEMAS}" --allow-any-name "${S}/gtk" || die
214 - GSETTINGS_SCHEMA_DIR="${S}/gtk" virtx emake check
215 -}
216 -
217 -multilib_src_install() {
218 - gnome2_src_install
219 -}
220 -
221 -multilib_src_install_all() {
222 - insinto /etc/gtk-3.0
223 - doins "${FILESDIR}"/settings.ini
224 - einstalldocs
225 -}
226 -
227 -pkg_preinst() {
228 - gnome2_pkg_preinst
229 -
230 - multilib_pkg_preinst() {
231 - # Make immodules.cache belongs to gtk+ alone
232 - local cache="usr/$(get_libdir)/gtk-3.0/3.0.0/immodules.cache"
233 -
234 - if [[ -e ${EROOT}${cache} ]]; then
235 - cp "${EROOT}"${cache} "${ED}"/${cache} || die
236 - else
237 - touch "${ED}"/${cache} || die
238 - fi
239 - }
240 - multilib_parallel_foreach_abi multilib_pkg_preinst
241 -}
242 -
243 -pkg_postinst() {
244 - gnome2_pkg_postinst
245 -
246 - multilib_pkg_postinst() {
247 - gnome2_query_immodules_gtk3 \
248 - || die "Update immodules cache failed (for ${ABI})"
249 - }
250 - multilib_parallel_foreach_abi multilib_pkg_postinst
251 -
252 - if ! has_version "app-text/evince"; then
253 - elog "Please install app-text/evince for print preview functionality."
254 - elog "Alternatively, check \"gtk-print-preview-command\" documentation and"
255 - elog "add it to your settings.ini file."
256 - fi
257 -}
258 -
259 -pkg_postrm() {
260 - gnome2_pkg_postrm
261 -
262 - if [[ -z ${REPLACED_BY_VERSION} ]]; then
263 - multilib_pkg_postrm() {
264 - rm -f "${EROOT}"usr/$(get_libdir)/gtk-3.0/3.0.0/immodules.cache
265 - }
266 - multilib_foreach_abi multilib_pkg_postrm
267 - fi
268 -}
269
270 diff --git a/x11-libs/gtk+/gtk+-3.22.3.ebuild b/x11-libs/gtk+/gtk+-3.22.3.ebuild
271 deleted file mode 100644
272 index 33ba261..00000000
273 --- a/x11-libs/gtk+/gtk+-3.22.3.ebuild
274 +++ /dev/null
275 @@ -1,234 +0,0 @@
276 -# Copyright 1999-2016 Gentoo Foundation
277 -# Distributed under the terms of the GNU General Public License v2
278 -# $Id$
279 -
280 -EAPI=6
281 -GNOME2_LA_PUNT="yes"
282 -
283 -inherit autotools eutils flag-o-matic gnome2 multilib virtualx multilib-minimal
284 -
285 -DESCRIPTION="Gimp ToolKit +"
286 -HOMEPAGE="http://www.gtk.org/"
287 -
288 -LICENSE="LGPL-2+"
289 -SLOT="3"
290 -IUSE="aqua broadway cloudprint colord cups examples +introspection test vim-syntax wayland X xinerama"
291 -REQUIRED_USE="
292 - || ( aqua wayland X )
293 - xinerama? ( X )
294 -"
295 -
296 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
297 -
298 -# Upstream wants us to do their job:
299 -# https://bugzilla.gnome.org/show_bug.cgi?id=768662#c1
300 -RESTRICT="test"
301 -
302 -# FIXME: introspection data is built against system installation of gtk+:3,
303 -# bug #????
304 -# NOTE: cairo[svg] dep is due to bug 291283 (not patched to avoid eautoreconf)
305 -COMMON_DEPEND="
306 - >=dev-libs/atk-2.15[introspection?,${MULTILIB_USEDEP}]
307 - >=dev-libs/glib-2.49.4:2[${MULTILIB_USEDEP}]
308 - media-libs/fontconfig[${MULTILIB_USEDEP}]
309 - >=media-libs/libepoxy-1.0[${MULTILIB_USEDEP}]
310 - >=x11-libs/cairo-1.14[aqua?,glib,svg,X?,${MULTILIB_USEDEP}]
311 - >=x11-libs/gdk-pixbuf-2.30:2[introspection?,X?,${MULTILIB_USEDEP}]
312 - >=x11-libs/pango-1.37.3[introspection?,${MULTILIB_USEDEP}]
313 - x11-misc/shared-mime-info
314 -
315 - cloudprint? (
316 - >=net-libs/rest-0.7[${MULTILIB_USEDEP}]
317 - >=dev-libs/json-glib-1.0[${MULTILIB_USEDEP}] )
318 - colord? ( >=x11-misc/colord-0.1.9:0=[${MULTILIB_USEDEP}] )
319 - cups? ( >=net-print/cups-1.2[${MULTILIB_USEDEP}] )
320 - introspection? ( >=dev-libs/gobject-introspection-1.39:= )
321 - wayland? (
322 - >=dev-libs/wayland-1.9.91[${MULTILIB_USEDEP}]
323 - >=dev-libs/wayland-protocols-1.7
324 - media-libs/mesa[wayland,${MULTILIB_USEDEP}]
325 - >=x11-libs/libxkbcommon-0.2[${MULTILIB_USEDEP}]
326 - )
327 - X? (
328 - >=app-accessibility/at-spi2-atk-2.5.3[${MULTILIB_USEDEP}]
329 - x11-libs/libXrender[${MULTILIB_USEDEP}]
330 - x11-libs/libX11[${MULTILIB_USEDEP}]
331 - >=x11-libs/libXi-1.3[${MULTILIB_USEDEP}]
332 - x11-libs/libXext[${MULTILIB_USEDEP}]
333 - >=x11-libs/libXrandr-1.5[${MULTILIB_USEDEP}]
334 - x11-libs/libXcursor[${MULTILIB_USEDEP}]
335 - x11-libs/libXfixes[${MULTILIB_USEDEP}]
336 - x11-libs/libXcomposite[${MULTILIB_USEDEP}]
337 - x11-libs/libXdamage[${MULTILIB_USEDEP}]
338 - xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] )
339 - )
340 -"
341 -DEPEND="${COMMON_DEPEND}
342 - app-text/docbook-xsl-stylesheets
343 - app-text/docbook-xml-dtd:4.1.2
344 - dev-libs/libxslt
345 - dev-libs/gobject-introspection-common
346 - >=dev-util/gdbus-codegen-2.48
347 - >=dev-util/gtk-doc-am-1.20
348 - >=sys-devel/gettext-0.19.7[${MULTILIB_USEDEP}]
349 - virtual/pkgconfig[${MULTILIB_USEDEP}]
350 - X? (
351 - x11-proto/xextproto[${MULTILIB_USEDEP}]
352 - x11-proto/xproto[${MULTILIB_USEDEP}]
353 - x11-proto/inputproto[${MULTILIB_USEDEP}]
354 - x11-proto/damageproto[${MULTILIB_USEDEP}]
355 - xinerama? ( x11-proto/xineramaproto[${MULTILIB_USEDEP}] )
356 - )
357 - test? (
358 - media-fonts/font-misc-misc
359 - media-fonts/font-cursor-misc )
360 -"
361 -# gtk+-3.2.2 breaks Alt key handling in <=x11-libs/vte-0.30.1:2.90
362 -# gtk+-3.3.18 breaks scrolling in <=x11-libs/vte-0.31.0:2.90
363 -# >=xorg-server-1.11.4 needed for
364 -# https://mail.gnome.org/archives/desktop-devel-list/2012-March/msg00024.html
365 -RDEPEND="${COMMON_DEPEND}
366 - >=dev-util/gtk-update-icon-cache-3
367 - !<gnome-base/gail-1000
368 - !<x11-libs/vte-0.31.0:2.90
369 - >=x11-themes/adwaita-icon-theme-3.14
370 - X? ( !<x11-base/xorg-server-1.11.4 )
371 -"
372 -# librsvg for svg icons (PDEPEND to avoid circular dep), bug #547710
373 -PDEPEND="
374 - gnome-base/librsvg[${MULTILIB_USEDEP}]
375 - vim-syntax? ( app-vim/gtk-syntax )
376 -"
377 -
378 -MULTILIB_CHOST_TOOLS=(
379 - /usr/bin/gtk-query-immodules-3.0$(get_exeext)
380 -)
381 -
382 -strip_builddir() {
383 - local rule=$1
384 - shift
385 - local directory=$1
386 - shift
387 - sed -e "s/^\(${rule} =.*\)${directory}\(.*\)$/\1\2/" -i $@ \
388 - || die "Could not strip director ${directory} from build."
389 -}
390 -
391 -src_prepare() {
392 - # -O3 and company cause random crashes in applications. Bug #133469
393 - replace-flags -O3 -O2
394 - strip-flags
395 -
396 - if ! use test ; then
397 - # don't waste time building tests
398 - strip_builddir SRC_SUBDIRS testsuite Makefile.{am,in}
399 -
400 - # the tests dir needs to be build now because since commit
401 - # 7ff3c6df80185e165e3bf6aa31bd014d1f8bf224 tests/gtkgears.o needs to be there
402 - # strip_builddir SRC_SUBDIRS tests Makefile.{am,in}
403 - fi
404 -
405 - if ! use examples; then
406 - # don't waste time building demos
407 - strip_builddir SRC_SUBDIRS demos Makefile.{am,in}
408 - strip_builddir SRC_SUBDIRS examples Makefile.{am,in}
409 - fi
410 -
411 - # gtk-update-icon-cache is installed by dev-util/gtk-update-icon-cache
412 - eapply "${FILESDIR}"/${PN}-3.22.2-update-icon-cache.patch
413 -
414 - eautoreconf
415 - gnome2_src_prepare
416 -}
417 -
418 -multilib_src_configure() {
419 - # need libdir here to avoid a double slash in a path that libtool doesn't
420 - # grok so well during install (// between $EPREFIX and usr ...)
421 - ECONF_SOURCE=${S} \
422 - gnome2_src_configure \
423 - $(use_enable aqua quartz-backend) \
424 - $(use_enable broadway broadway-backend) \
425 - $(use_enable cloudprint) \
426 - $(use_enable colord) \
427 - $(use_enable cups cups auto) \
428 - $(multilib_native_use_enable introspection) \
429 - $(use_enable wayland wayland-backend) \
430 - $(use_enable X x11-backend) \
431 - $(use_enable X xcomposite) \
432 - $(use_enable X xdamage) \
433 - $(use_enable X xfixes) \
434 - $(use_enable X xkb) \
435 - $(use_enable X xrandr) \
436 - $(use_enable xinerama) \
437 - --disable-papi \
438 - --disable-mir-backend \
439 - --enable-man \
440 - --with-xml-catalog="${EPREFIX}"/etc/xml/catalog \
441 - --libdir="${EPREFIX}"/usr/$(get_libdir) \
442 - CUPS_CONFIG="${EPREFIX}/usr/bin/${CHOST}-cups-config"
443 -
444 - # work-around gtk-doc out-of-source brokedness
445 - if multilib_is_native_abi; then
446 - local d
447 - for d in gdk gtk libgail-util; do
448 - ln -s "${S}"/docs/reference/${d}/html docs/reference/${d}/html || die
449 - done
450 - fi
451 -}
452 -
453 -multilib_src_test() {
454 - "${EROOT}${GLIB_COMPILE_SCHEMAS}" --allow-any-name "${S}/gtk" || die
455 - GSETTINGS_SCHEMA_DIR="${S}/gtk" virtx emake check
456 -}
457 -
458 -multilib_src_install() {
459 - gnome2_src_install
460 -}
461 -
462 -multilib_src_install_all() {
463 - insinto /etc/gtk-3.0
464 - doins "${FILESDIR}"/settings.ini
465 - einstalldocs
466 -}
467 -
468 -pkg_preinst() {
469 - gnome2_pkg_preinst
470 -
471 - multilib_pkg_preinst() {
472 - # Make immodules.cache belongs to gtk+ alone
473 - local cache="usr/$(get_libdir)/gtk-3.0/3.0.0/immodules.cache"
474 -
475 - if [[ -e ${EROOT}${cache} ]]; then
476 - cp "${EROOT}"${cache} "${ED}"/${cache} || die
477 - else
478 - touch "${ED}"/${cache} || die
479 - fi
480 - }
481 - multilib_parallel_foreach_abi multilib_pkg_preinst
482 -}
483 -
484 -pkg_postinst() {
485 - gnome2_pkg_postinst
486 -
487 - multilib_pkg_postinst() {
488 - gnome2_query_immodules_gtk3 \
489 - || die "Update immodules cache failed (for ${ABI})"
490 - }
491 - multilib_parallel_foreach_abi multilib_pkg_postinst
492 -
493 - if ! has_version "app-text/evince"; then
494 - elog "Please install app-text/evince for print preview functionality."
495 - elog "Alternatively, check \"gtk-print-preview-command\" documentation and"
496 - elog "add it to your settings.ini file."
497 - fi
498 -}
499 -
500 -pkg_postrm() {
501 - gnome2_pkg_postrm
502 -
503 - if [[ -z ${REPLACED_BY_VERSION} ]]; then
504 - multilib_pkg_postrm() {
505 - rm -f "${EROOT}"usr/$(get_libdir)/gtk-3.0/3.0.0/immodules.cache
506 - }
507 - multilib_foreach_abi multilib_pkg_postrm
508 - fi
509 -}