From 57c8c6a8613ffe1e96587e21b34249133e54e4d2 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Fri, 23 Feb 2018 16:00:56 +0300 Subject: qt 5.10 scm from qt repo --- .../files/qtdeclarative-5.4.2-disable-jit.patch | 18 ++++++ dev-qt/qtdeclarative/metadata.xml | 23 ++++++++ .../qtdeclarative/qtdeclarative-5.10.9999.ebuild | 64 ++++++++++++++++++++++ 3 files changed, 105 insertions(+) create mode 100644 dev-qt/qtdeclarative/files/qtdeclarative-5.4.2-disable-jit.patch create mode 100644 dev-qt/qtdeclarative/metadata.xml create mode 100644 dev-qt/qtdeclarative/qtdeclarative-5.10.9999.ebuild (limited to 'dev-qt/qtdeclarative') diff --git a/dev-qt/qtdeclarative/files/qtdeclarative-5.4.2-disable-jit.patch b/dev-qt/qtdeclarative/files/qtdeclarative-5.4.2-disable-jit.patch new file mode 100644 index 0000000..7799ef7 --- /dev/null +++ b/dev-qt/qtdeclarative/files/qtdeclarative-5.4.2-disable-jit.patch @@ -0,0 +1,18 @@ +diff --git a/src/qml/jsruntime/qv4global_p.h b/src/qml/jsruntime/qv4global_p.h +index 4b08194..224ddb1 100644 +--- a/src/qml/jsruntime/qv4global_p.h ++++ b/src/qml/jsruntime/qv4global_p.h +@@ -96,8 +96,13 @@ inline double trunc(double d) { return d > 0 ? floor(d) : ceil(d); } + # undef V4_ENABLE_JIT + #endif + #endif + ++// Gentoo note: disable the JIT due to USE="-jit" ++#ifdef V4_ENABLE_JIT ++#undef V4_ENABLE_JIT ++#endif ++ + // Do certain things depending on whether the JIT is enabled or disabled + + #ifdef V4_ENABLE_JIT + #define ENABLE_YARR_JIT 1 diff --git a/dev-qt/qtdeclarative/metadata.xml b/dev-qt/qtdeclarative/metadata.xml new file mode 100644 index 0000000..6333b58 --- /dev/null +++ b/dev-qt/qtdeclarative/metadata.xml @@ -0,0 +1,23 @@ + + + + + qt@gentoo.org + Gentoo Qt Project + + + Use GLES 2.0 or later instead of full OpenGL + Build the LocalStorage import for QtQuick (requires QtSql) + Enable QtWidgets support + Build the XmlListModel import for QtQuick (requires QtXmlPatterns) + + + https://bugreports.qt.io/ + https://doc.qt.io/ + + + + Must only be used by packages that are known to use private parts of the Qt API. + + + diff --git a/dev-qt/qtdeclarative/qtdeclarative-5.10.9999.ebuild b/dev-qt/qtdeclarative/qtdeclarative-5.10.9999.ebuild new file mode 100644 index 0000000..0c80aec --- /dev/null +++ b/dev-qt/qtdeclarative/qtdeclarative-5.10.9999.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) +inherit python-any-r1 qt5-build + +DESCRIPTION="The QML and Quick modules for the Qt5 framework" + +if [[ ${QT5_BUILD_TYPE} == release ]]; then + KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86" +fi + +IUSE="gles2 +jit localstorage +widgets xml" + +# qtgui[gles2=] is needed because of bug 504322 +COMMON_DEPEND=" + ~dev-qt/qtcore-${PV} + ~dev-qt/qtgui-${PV}[gles2=] + ~dev-qt/qtnetwork-${PV} + ~dev-qt/qttest-${PV} + localstorage? ( ~dev-qt/qtsql-${PV} ) + widgets? ( ~dev-qt/qtwidgets-${PV}[gles2=] ) + xml? ( + ~dev-qt/qtnetwork-${PV} + ~dev-qt/qtxmlpatterns-${PV} + ) +" +DEPEND="${COMMON_DEPEND} + ${PYTHON_DEPS} +" +RDEPEND="${COMMON_DEPEND} + !