Gentoo-bug: 621492
Package-Manager: Portage-2.3.5, Repoman-2.3.2
<email>qt@gentoo.org</email>
<name>Gentoo Qt Project</name>
</maintainer>
+ <use>
+ <flag name="gles2">Use GLES 2.0 or later instead of full OpenGL</flag>
+ <flag name="qml">Build QML/QtQuick bindings</flag>
+ </use>
<upstream>
<bugs-to>https://bugreports.qt.io/</bugs-to>
<doc>http://doc.qt.io/</doc>
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
KEYWORDS="~amd64 ~x86"
fi
-# TODO: egl, qml, tools
-IUSE=""
+# TODO: egl, tools
+IUSE="gles2 qml"
DEPEND="
+ ~dev-qt/qtconcurrent-${PV}
~dev-qt/qtcore-${PV}
~dev-qt/qtgui-${PV}
~dev-qt/qtnetwork-${PV}
+ sys-libs/zlib
+ qml? ( ~dev-qt/qtdeclarative-${PV}[gles2=] )
"
RDEPEND="${DEPEND}"
+
+src_prepare() {
+ qt5-build_src_prepare
+
+ if ! use qml; then
+ sed -i -e "/quick3d/s/^/#/" src/src.pro || die
+ fi
+}