Gentoo Archives: gentoo-commits

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