summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavide Pesavento <pesa@gentoo.org>2014-09-11 01:47:22 +0000
committerDavide Pesavento <pesa@gentoo.org>2014-09-11 01:47:22 +0000
commita857ef1c50dfedd966264d5b791e1b2258b39ded (patch)
treea76a09a6c3d06fe6d1322795b33c9e6e078ecf76 /dev-qt/qtwidgets
parentImport Qt5 from qt overlay. (diff)
downloadgentoo-2-a857ef1c50dfedd966264d5b791e1b2258b39ded.tar.gz
gentoo-2-a857ef1c50dfedd966264d5b791e1b2258b39ded.tar.bz2
gentoo-2-a857ef1c50dfedd966264d5b791e1b2258b39ded.zip
Import Qt5 from qt overlay.
(Portage version: 2.2.12/cvs/Linux x86_64, signed Manifest commit with key 0xDADED6B2671CB57D!)
Diffstat (limited to 'dev-qt/qtwidgets')
-rw-r--r--dev-qt/qtwidgets/ChangeLog9
-rw-r--r--dev-qt/qtwidgets/metadata.xml12
-rw-r--r--dev-qt/qtwidgets/qtwidgets-5.3.1-r3.ebuild63
3 files changed, 84 insertions, 0 deletions
diff --git a/dev-qt/qtwidgets/ChangeLog b/dev-qt/qtwidgets/ChangeLog
new file mode 100644
index 000000000000..59836e16911b
--- /dev/null
+++ b/dev-qt/qtwidgets/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for dev-qt/qtwidgets
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-qt/qtwidgets/ChangeLog,v 1.3 2014/09/11 01:47:22 pesa Exp $
+
+*qtwidgets-5.3.1-r3 (11 Sep 2014)
+
+ 11 Sep 2014; Davide Pesavento <pesa@gentoo.org> +metadata.xml,
+ +qtwidgets-5.3.1-r3.ebuild:
+ Import Qt5 from qt overlay.
diff --git a/dev-qt/qtwidgets/metadata.xml b/dev-qt/qtwidgets/metadata.xml
new file mode 100644
index 000000000000..10bfda005176
--- /dev/null
+++ b/dev-qt/qtwidgets/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>qt</herd>
+ <use>
+ <flag name="gles2">Use OpenGL ES 2.0 instead of desktop OpenGL</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt-project.org/</bugs-to>
+ <doc>http://qt-project.org/doc/</doc>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-qt/qtwidgets/qtwidgets-5.3.1-r3.ebuild b/dev-qt/qtwidgets/qtwidgets-5.3.1-r3.ebuild
new file mode 100644
index 000000000000..b0f3680c3647
--- /dev/null
+++ b/dev-qt/qtwidgets/qtwidgets-5.3.1-r3.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-qt/qtwidgets/qtwidgets-5.3.1-r3.ebuild,v 1.1 2014/09/11 01:47:22 pesa Exp $
+
+EAPI=5
+
+QT5_MODULE="qtbase"
+
+inherit qt5-build
+
+DESCRIPTION="Set of UI elements for creating classic desktop-style user interfaces for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == live ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64 ~x86"
+fi
+
+# keep IUSE defaults in sync with qtgui
+IUSE="gles2 +opengl +png +xcb"
+REQUIRED_USE="
+ gles2? ( opengl )
+"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}[debug=]
+ ~dev-qt/qtgui-${PV}[debug=,gles2=,opengl=,png=,xcb?]
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ # http://blog.martin-graesslin.com/blog/2014/06/where-are-my-systray-icons/
+ "${FILESDIR}/${PN}-5.3.1-prefer-qpa.patch"
+)
+
+QT5_TARGET_SUBDIRS=(
+ src/tools/uic
+ src/widgets
+ src/plugins/accessible
+)
+
+QT5_GENTOO_CONFIG=(
+ !:no-widgets:
+)
+
+src_configure() {
+ local gl="-no-opengl"
+ if use gles2; then
+ gl="-opengl es2"
+ elif use opengl; then
+ gl="-opengl desktop"
+ fi
+
+ local myconf=(
+ # copied from qtgui
+ ${gl}
+ $(qt_use png libpng system)
+ $(qt_use xcb xcb system)
+ $(qt_use xcb xkbcommon system)
+ $(use xcb && echo -xcb-xlib -xinput2 -xkb -xrender)
+ )
+ qt5-build_src_configure
+}