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-core/
Date: Wed, 06 Jun 2012 17:53:26
Message-Id: 1339005163.14884ae1aa26eb941ca4b2ddbe67f3326d1ed06d.pesa@gentoo
1 commit: 14884ae1aa26eb941ca4b2ddbe67f3326d1ed06d
2 Author: Davide Pesavento <davidepesa <AT> gmail <DOT> com>
3 AuthorDate: Wed Jun 6 17:52:43 2012 +0000
4 Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 6 17:52:43 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/qt.git;a=commit;h=14884ae1
7
8 [x11-libs/qt-core] Add preliminary live ebuild for Qt5 core modules.
9
10 Includes libQt{Core,Network,Concurrent}, qmake, moc, rcc and qdoc.
11
12 (Portage version: 2.2.0_alpha110/git/Linux x86_64, unsigned Manifest commit)
13
14 ---
15 x11-libs/qt-core/metadata.xml | 1 +
16 x11-libs/qt-core/qt-core-5.9999.ebuild | 57 ++++++++++++++++++++++++++++++++
17 2 files changed, 58 insertions(+), 0 deletions(-)
18
19 diff --git a/x11-libs/qt-core/metadata.xml b/x11-libs/qt-core/metadata.xml
20 index 476b591..a81a5bd 100644
21 --- a/x11-libs/qt-core/metadata.xml
22 +++ b/x11-libs/qt-core/metadata.xml
23 @@ -4,6 +4,7 @@
24 <herd>qt</herd>
25 <use>
26 <flag name="c++0x">Build Qt using the C++11 standard</flag>
27 + <flag name="c++11">Build Qt using the C++11 standard</flag>
28 <flag name="exceptions">Add support for exceptions - like catching them
29 inside the event loop (recommended by Nokia)</flag>
30 <flag name="glib">Enable <pkg>dev-libs/glib</pkg> eventloop support</flag>
31
32 diff --git a/x11-libs/qt-core/qt-core-5.9999.ebuild b/x11-libs/qt-core/qt-core-5.9999.ebuild
33 new file mode 100644
34 index 0000000..0c9b04f
35 --- /dev/null
36 +++ b/x11-libs/qt-core/qt-core-5.9999.ebuild
37 @@ -0,0 +1,57 @@
38 +# Copyright 1999-2012 Gentoo Foundation
39 +# Distributed under the terms of the GNU General Public License v2
40 +# $Header: $
41 +
42 +EAPI=4
43 +
44 +inherit qt5-build
45 +
46 +DESCRIPTION="The Qt toolkit is a comprehensive C++ application development framework"
47 +
48 +if [[ ${QT5_BUILD_TYPE} == live ]]; then
49 + KEYWORDS=""
50 +else
51 + KEYWORDS="~amd64"
52 +fi
53 +
54 +IUSE="glib icu ssl"
55 +
56 +DEPEND="
57 + >=dev-libs/libpcre-8.30[pcre16]
58 + sys-libs/zlib
59 + virtual/libiconv
60 + glib? ( dev-libs/glib:2 )
61 + icu? ( >=dev-libs/icu-49 )
62 + ssl? ( dev-libs/openssl:0 )
63 +"
64 +RDEPEND="${DEPEND}"
65 +
66 +QT5_TARGET_SUBDIRS=(
67 + src/tools/bootstrap
68 + src/tools/moc
69 + src/tools/rcc
70 + src/tools/qdoc
71 + src/corelib
72 + src/network
73 + src/concurrent
74 +)
75 +
76 +src_configure() {
77 + local myconf=(
78 + $(qt_use glib)
79 + -iconv
80 + $(qt_use icu)
81 + $(use ssl && echo -openssl-linked || echo -no-openssl)
82 + -no-accessibility -no-gui -no-cups -no-dbus
83 + -no-xcb -no-eglfs -no-directfb -no-opengl
84 + )
85 + qt5-build_src_configure
86 +}
87 +
88 +src_install() {
89 + qt5-build_src_install
90 +
91 + pushd "${QT5_BUILD_DIR}" >/dev/null || die
92 + emake INSTALL_ROOT="${D}" install_{qmake,mkspecs}
93 + popd >/dev/null || die
94 +}