summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2020-04-28 00:01:10 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2020-05-26 16:32:27 +0200
commit88aaf35550e00d58b1c02f9326b14c75319f349c (patch)
treeb5a7cbe9d6fc9b017ec629ec193ae70e8f9a4b57 /eclass
parentmedia-gfx/digikam: 7.0.0_beta3 version bump (diff)
downloadgentoo-88aaf35550e00d58b1c02f9326b14c75319f349c.tar.gz
gentoo-88aaf35550e00d58b1c02f9326b14c75319f349c.tar.bz2
gentoo-88aaf35550e00d58b1c02f9326b14c75319f349c.zip
qt5-build.eclass: Introduce qt5_tools_configure
This is run in src_configure for qttools modules unless QT5_TARGET_SUBDIRS is defined. Implementing an idea of Chiitoo in the linked PR. Closes: https://github.com/gentoo/qt/pull/218 Thanks-to: Jimi Huotari <chiitoo@gentoo.org> Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/qt5-build.eclass31
1 files changed, 31 insertions, 0 deletions
diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass
index 9a757ccedf2..d82f3d253e2 100644
--- a/eclass/qt5-build.eclass
+++ b/eclass/qt5-build.eclass
@@ -194,6 +194,9 @@ qt5-build_src_configure() {
if [[ ${QT5_MODULE} == qtbase ]]; then
qt5_base_configure
fi
+ if [[ ${QT5_MINOR_VERSION} -ge 15 ]] && [[ ${QT5_MODULE} == qttools ]] && [[ -z ${QT5_TARGET_SUBDIRS[@]} ]]; then
+ qt5_tools_configure
+ fi
qt5_foreach_target_subdir qt5_qmake
}
@@ -670,6 +673,34 @@ qt5_base_configure() {
}
+# @FUNCTION: qt5_tools_configure
+# @INTERNAL
+# @DESCRIPTION:
+# Disables modules other than ${PN} belonging to qttools.
+qt5_tools_configure() {
+ # configure arguments
+ local qmakeargs=(
+ --
+ # not packaged in Gentoo
+ -no-feature-distancefieldgenerator
+ -no-feature-kmap2qmap
+ -no-feature-macdeployqt
+ -no-feature-makeqpf
+ -no-feature-qev
+ -no-feature-qtattributionsscanner
+ -no-feature-windeployqt
+ -no-feature-winrtrunner
+ )
+
+ local i
+ for i in assistant designer linguist pixeltool qdbus qdoc qtdiag qtpaths qtplugininfo; do
+ [[ ${PN} == ${i} ]] || qmakeargs+=( -no-feature-${i} )
+ done
+
+ # allow the ebuild to override what we set here
+ myqmakeargs=( "${qmakeargs[@]}" "${myqmakeargs[@]}" )
+}
+
# @FUNCTION: qt5_qmake_args
# @INTERNAL
# @DESCRIPTION: