From 49307b439ea0ae14beb0772de83e70297ae8356c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 9 Jul 2023 04:23:59 +0100 Subject: gentoo auto-resync : 09:07:2023 - 04:23:59 --- eclass/Manifest.gz | Bin 37983 -> 37981 bytes eclass/qt5-build.eclass | 61 ++++++++++++++++++------------------------------ 2 files changed, 23 insertions(+), 38 deletions(-) (limited to 'eclass') diff --git a/eclass/Manifest.gz b/eclass/Manifest.gz index cf4059906562..c515ad269817 100644 Binary files a/eclass/Manifest.gz and b/eclass/Manifest.gz differ diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass index 847c436651af..5e23d793915a 100644 --- a/eclass/qt5-build.eclass +++ b/eclass/qt5-build.eclass @@ -326,6 +326,28 @@ qt5-build_pkg_postrm() { ###### Public helpers ###### +# @FUNCTION: qt5_configure_oos_quirk +# @USAGE: or +# @DESCRIPTION: +# Quirk for out-of-source builds. Runs qmake in root directory, copies +# generated pri from source to build dir . +# If no is given, is copied to ${QT5_BUILD_DIR}. +qt5_configure_oos_quirk() { + if [[ "$#" == 2 ]]; then + local source="${2}/${1}" + local dest="${QT5_BUILD_DIR}/${2}" + elif [[ "$#" == 1 ]]; then + local source="${1}" + local dest="${QT5_BUILD_DIR}" + else + die "${FUNCNAME[0]} must be passed either one or two arguments" + fi + + mkdir -p "${dest}" || die + qt5_qmake "${QT5_BUILD_DIR}" + cp "${source}" "${dest}" || die +} + # @FUNCTION: qt5_syncqt_version # @DESCRIPTION: # Wrapper for Qt5 syncqt.pl to sync header files for ${PV} (required to run if @@ -739,44 +761,7 @@ qt5_tools_configure() { # allow the ebuild to override what we set here myqmakeargs=( "${qmakeargs[@]}" "${myqmakeargs[@]}" ) - # out-of-source build quirks - case ${PN} in - qdoc) - # bug 676948 - qt5_tools_oos_quirk qtqdoc-config.pri src/qdoc - ;; - qtlocation) - # src/plugins/geoservices requires files that are only generated - # when qmake is run in the root directory. bug 633776 - qt5_tools_oos_quirk qtlocation-config.pri src/location - ;; - *) ;; - esac - - qt5_tools_oos_quirk qttools-config.pri -} - -# @FUNCTION: qt5_tools_oos_quirk -# @INTERNAL -# @USAGE: or -# @DESCRIPTION: -# Quirk for out-of-source builds. Runs qmake in root directory, copies -# generated pri from source to build dir . -# If no is given, is copied to ${QT5_BUILD_DIR}. -qt5_tools_oos_quirk() { - if [[ "$#" == 2 ]]; then - local source="${2}/${1}" - local dest="${QT5_BUILD_DIR}/${2}" - elif [[ "$#" == 1 ]]; then - local source="${1}" - local dest="${QT5_BUILD_DIR}" - else - die "${FUNCNAME[0]} must be passed either one or two arguments" - fi - - mkdir -p "${dest}" || die - qt5_qmake "${QT5_BUILD_DIR}" - cp "${source}" "${dest}" || die + qt5_configure_oos_quirk qttools-config.pri } # @FUNCTION: qt5_qmake_args -- cgit v1.2.3