summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2017-06-11 22:29:39 +1000
committerMichael Palimaka <kensington@gentoo.org>2017-06-11 22:37:55 +1000
commit013a99acd729c4526caa9c2c79547fad3921e53e (patch)
treea77e4eb3f848cf9c263cc410559545f777a82686 /dev-qt/qt3d
parentnet-analyzer/nmap: Old. (diff)
downloadgentoo-013a99acd729c4526caa9c2c79547fad3921e53e.tar.gz
gentoo-013a99acd729c4526caa9c2c79547fad3921e53e.tar.bz2
gentoo-013a99acd729c4526caa9c2c79547fad3921e53e.zip
dev-qt/qt3d: add missing deps
Gentoo-bug: 621492 Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'dev-qt/qt3d')
-rw-r--r--dev-qt/qt3d/metadata.xml4
-rw-r--r--dev-qt/qt3d/qt3d-5.7.1-r1.ebuild (renamed from dev-qt/qt3d/qt3d-5.7.1.ebuild)17
2 files changed, 18 insertions, 3 deletions
diff --git a/dev-qt/qt3d/metadata.xml b/dev-qt/qt3d/metadata.xml
index 08d85fc4c258..b30c5e322777 100644
--- a/dev-qt/qt3d/metadata.xml
+++ b/dev-qt/qt3d/metadata.xml
@@ -5,6 +5,10 @@
<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>
diff --git a/dev-qt/qt3d/qt3d-5.7.1.ebuild b/dev-qt/qt3d/qt3d-5.7.1-r1.ebuild
index 4d78b5a20cb8..17152f1a0586 100644
--- a/dev-qt/qt3d/qt3d-5.7.1.ebuild
+++ b/dev-qt/qt3d/qt3d-5.7.1-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -10,12 +10,23 @@ if [[ ${QT5_BUILD_TYPE} == release ]]; then
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
+}