1 |
|
# Copyright 2009-2023 Gentoo Authors
|
|
1 |
# Copyright 2021-2023 Gentoo Authors
|
2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
3 |
3 |
|
4 |
4 |
EAPI=8
|
5 |
5 |
|
6 |
|
if [[ ${PV} != *9999* ]]; then
|
7 |
|
QT5_KDEPATCHSET_REV=4
|
8 |
|
KEYWORDS="amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv ~sparc x86"
|
9 |
|
fi
|
10 |
|
|
11 |
|
PYTHON_COMPAT=( python3_{8..12} )
|
12 |
|
inherit flag-o-matic python-any-r1 qt5-build
|
|
6 |
inherit qt6-build
|
13 |
7 |
|
14 |
|
DESCRIPTION="The QML and Quick modules for the Qt5 framework"
|
|
8 |
DESCRIPTION="Qt Declarative (Quick 2)"
|
15 |
9 |
|
16 |
|
IUSE="gles2-only +jit localstorage vulkan +widgets"
|
|
10 |
if [[ ${QT6_BUILD_TYPE} == release ]]; then
|
|
11 |
KEYWORDS="amd64 ~arm ~arm64 ~hppa ~loong ~x86"
|
|
12 |
fi
|
17 |
13 |
|
18 |
|
# qtgui[gles2-only=] is needed because of bug 504322
|
19 |
|
DEPEND="
|
20 |
|
=dev-qt/qtcore-${QT5_PV}*
|
21 |
|
=dev-qt/qtgui-${QT5_PV}*:5=[gles2-only=,vulkan=]
|
22 |
|
=dev-qt/qtnetwork-${QT5_PV}*
|
23 |
|
=dev-qt/qttest-${QT5_PV}*
|
24 |
|
media-libs/libglvnd
|
25 |
|
localstorage? ( =dev-qt/qtsql-${QT5_PV}* )
|
26 |
|
widgets? ( =dev-qt/qtwidgets-${QT5_PV}*[gles2-only=] )
|
27 |
|
"
|
28 |
|
RDEPEND="${DEPEND}"
|
29 |
|
BDEPEND="${PYTHON_DEPS}"
|
30 |
|
|
31 |
|
PATCHES=(
|
32 |
|
"${FILESDIR}/${PN}-5.14.2-QQuickItemView-fix-maxXY-extent.patch" # QTBUG-83890
|
33 |
|
)
|
34 |
|
|
35 |
|
src_prepare() {
|
36 |
|
qt_use_disable_mod localstorage sql \
|
37 |
|
src/imports/imports.pro
|
38 |
|
|
39 |
|
qt_use_disable_mod widgets widgets \
|
40 |
|
src/src.pro \
|
41 |
|
src/qmltest/qmltest.pro \
|
42 |
|
tests/auto/auto.pro \
|
43 |
|
tools/tools.pro \
|
44 |
|
tools/qmlscene/qmlscene.pro \
|
45 |
|
tools/qml/qml.pro
|
|
14 |
IUSE="opengl +sql vulkan +widgets"
|
46 |
15 |
|
47 |
|
qt5-build_src_prepare
|
48 |
|
}
|
|
16 |
# behaves very badly when qtdeclarative is not already installed, also
|
|
17 |
# other more minor issues (installs junk, sandbox/offscreen issues)
|
|
18 |
RESTRICT="test"
|
|
19 |
|
|
20 |
RDEPEND="~dev-qt/qtbase-${PV}:6[network,opengl=,sql?,vulkan=,widgets=]"
|
|
21 |
DEPEND="${RDEPEND}"
|
|
22 |
BDEPEND="~dev-qt/qtshadertools-${PV}:6"
|
49 |
23 |
|
50 |
24 |
src_configure() {
|
51 |
|
replace-flags "-Os" "-O2" # bug 840861
|
52 |
|
|
53 |
|
local myqmakeargs=(
|
54 |
|
--
|
55 |
|
-qml-debug
|
56 |
|
$(qt_use jit feature-qml-jit)
|
|
25 |
local mycmakeargs=(
|
|
26 |
$(qt_feature opengl)
|
|
27 |
$(qt_feature sql)
|
|
28 |
$(qt_feature widgets)
|
57 |
29 |
)
|
58 |
|
qt5-build_src_configure
|
59 |
|
}
|
60 |
30 |
|
61 |
|
src_install() {
|
62 |
|
qt5-build_src_install
|
63 |
|
qt5_symlink_binary_to_path qml 5
|
64 |
|
qt5_symlink_binary_to_path qmleasing 5
|
65 |
|
qt5_symlink_binary_to_path qmlpreview 5
|
66 |
|
qt5_symlink_binary_to_path qmlscene 5
|
|
31 |
qt6-build_src_configure
|
67 |
32 |
}
|