Gentoo Archives: gentoo-commits

From: Davide Pesavento <pesa@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/qt:master commit in: x11-libs/qt-gui/
Date: Tue, 28 Aug 2012 03:06:40
Message-Id: 1346123126.601d1aa24a1dc4612279044dea825e393717c50c.pesa@gentoo
1 commit: 601d1aa24a1dc4612279044dea825e393717c50c
2 Author: Davide Pesavento <davidepesa <AT> gmail <DOT> com>
3 AuthorDate: Tue Aug 28 03:05:26 2012 +0000
4 Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 28 03:05:26 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/qt.git;a=commit;h=601d1aa2
7
8 [x11-libs/qt-gui:5] Introduce USE=accessibility, add missing deps.
9
10 This fixes bug 431320 by Patrick Lauer.
11
12 (Portage version: 2.2.0_alpha122/git/Linux x86_64, unsigned Manifest commit)
13
14 ---
15 x11-libs/qt-gui/qt-gui-5.9999.ebuild | 17 +++++++++++++----
16 1 files changed, 13 insertions(+), 4 deletions(-)
17
18 diff --git a/x11-libs/qt-gui/qt-gui-5.9999.ebuild b/x11-libs/qt-gui/qt-gui-5.9999.ebuild
19 index 3ad5546..9a17a92 100644
20 --- a/x11-libs/qt-gui/qt-gui-5.9999.ebuild
21 +++ b/x11-libs/qt-gui/qt-gui-5.9999.ebuild
22 @@ -16,7 +16,7 @@ fi
23
24 # TODO: directfb, linuxfb, ibus
25
26 -IUSE="egl eglfs evdev gif gles2 +glib jpeg kms opengl +png udev +xcb"
27 +IUSE="+accessibility egl eglfs evdev gif gles2 +glib jpeg kms opengl +png udev +xcb"
28 REQUIRED_USE="
29 egl? ( gles2 )
30 eglfs? ( egl evdev )
31 @@ -53,6 +53,10 @@ RDEPEND="
32 x11-libs/xcb-util-keysyms
33 x11-libs/xcb-util-renderutil
34 x11-libs/xcb-util-wm
35 + accessibility? (
36 + app-accessibility/at-spi2-core
37 + ~x11-libs/qt-dbus-${PV}[debug=]
38 + )
39 )
40 "
41 DEPEND="${RDEPEND}
42 @@ -69,7 +73,7 @@ QT5_TARGET_SUBDIRS=(
43
44 pkg_setup() {
45 QCONFIG_ADD="
46 - accessibility
47 + $(usev accessibility)
48 $(usev egl)
49 $(usev eglfs)
50 $(usev evdev)
51 @@ -88,6 +92,11 @@ pkg_setup() {
52 }
53
54 src_configure() {
55 + local dbus="-no-dbus"
56 + if use accessibility && use xcb; then
57 + dbus="-dbus"
58 + fi
59 +
60 local opengl="-no-opengl"
61 if use gles2; then
62 opengl="-opengl es2"
63 @@ -96,7 +105,8 @@ src_configure() {
64 fi
65
66 local myconf=(
67 - -accessibility
68 + $(qt_use accessibility)
69 + ${dbus}
70 $(qt_use egl)
71 $(qt_use eglfs)
72 $(qt_use evdev)
73 @@ -109,7 +119,6 @@ src_configure() {
74 $(qt_use png libpng system)
75 $(use udev || echo -no-libudev)
76 $(use xcb && echo -xcb -xrender)
77 - -no-dbus
78 )
79 qt5-build_src_configure
80 }