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-opengl/
Date: Tue, 03 Jul 2012 23:03:40
Message-Id: 1341356377.2a70c03aae951253bcdd43b8d8958ec5b1c51c74.pesa@gentoo
1 commit: 2a70c03aae951253bcdd43b8d8958ec5b1c51c74
2 Author: Davide Pesavento <davidepesa <AT> gmail <DOT> com>
3 AuthorDate: Tue Jul 3 22:59:37 2012 +0000
4 Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 3 22:59:37 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/qt.git;a=commit;h=2a70c03a
7
8 [x11-libs/qt-opengl] QtOpenGL live ebuild for Qt5.
9
10 (Portage version: 2.2.0_alpha115/git/Linux x86_64, unsigned Manifest commit)
11
12 ---
13 x11-libs/qt-opengl/metadata.xml | 3 +-
14 x11-libs/qt-opengl/qt-opengl-5.9999.ebuild | 40 ++++++++++++++++++++++++++++
15 2 files changed, 42 insertions(+), 1 deletions(-)
16
17 diff --git a/x11-libs/qt-opengl/metadata.xml b/x11-libs/qt-opengl/metadata.xml
18 index 6fb8805..ef885f9 100644
19 --- a/x11-libs/qt-opengl/metadata.xml
20 +++ b/x11-libs/qt-opengl/metadata.xml
21 @@ -1,9 +1,10 @@
22 <?xml version="1.0" encoding="UTF-8"?>
23 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
24 <pkgmetadata>
25 - <herd>qt</herd>
26 + <herd>qt</herd>
27 <use>
28 <flag name="c++0x">Build Qt using the C++11 standard</flag>
29 + <flag name="c++11">Build Qt using the C++11 standard</flag>
30 <flag name="egl">Use EGL instead of default GLX to manage OpenGL
31 contexts on the desktop</flag>
32 <flag name="exceptions">Add support for exceptions - like catching them
33
34 diff --git a/x11-libs/qt-opengl/qt-opengl-5.9999.ebuild b/x11-libs/qt-opengl/qt-opengl-5.9999.ebuild
35 new file mode 100644
36 index 0000000..d22c8b6
37 --- /dev/null
38 +++ b/x11-libs/qt-opengl/qt-opengl-5.9999.ebuild
39 @@ -0,0 +1,40 @@
40 +# Copyright 1999-2012 Gentoo Foundation
41 +# Distributed under the terms of the GNU General Public License v2
42 +# $Header: $
43 +
44 +EAPI=4
45 +
46 +inherit qt5-build
47 +
48 +DESCRIPTION="The Qt toolkit is a comprehensive C++ application development framework"
49 +
50 +if [[ ${QT5_BUILD_TYPE} == live ]]; then
51 + KEYWORDS=""
52 +else
53 + KEYWORDS="~amd64"
54 +fi
55 +
56 +IUSE="egl"
57 +
58 +DEPEND="
59 + virtual/opengl
60 + ~x11-libs/qt-core-${PV}[debug=]
61 + ~x11-libs/qt-gui-${PV}[debug=,egl=,opengl]
62 + ~x11-libs/qt-widgets-${PV}[debug=]
63 + egl? ( media-libs/mesa[egl] )
64 +"
65 +RDEPEND="${DEPEND}"
66 +
67 +QT5_TARGET_SUBDIRS=(
68 + src/opengl
69 +)
70 +
71 +src_configure() {
72 + local myconf=(
73 + -accessibility
74 + $(qt_use egl)
75 + -opengl
76 + -no-eglfs -no-directfb
77 + )
78 + qt5-build_src_configure
79 +}