diff options
author | i.Dark_Templar <darktemplar@dark-templar-archives.net> | 2017-10-19 23:58:00 +0300 |
---|---|---|
committer | Michael Palimaka <kensington@gentoo.org> | 2018-02-04 00:36:56 +1100 |
commit | 7ff82a5a2031a540bb774b0d27b6c4c4b4ddaa0a (patch) | |
tree | 2066f07f6fd995ba7e8632b6e6912e073f43dffb /eclass/qt5-build.eclass | |
parent | app-crypt/openpgp-keys-gentoo-mirror: Add key package for gentoo-mirror (diff) | |
download | gentoo-7ff82a5a2031a540bb774b0d27b6c4c4b4ddaa0a.tar.gz gentoo-7ff82a5a2031a540bb774b0d27b6c4c4b4ddaa0a.tar.bz2 gentoo-7ff82a5a2031a540bb774b0d27b6c4c4b4ddaa0a.zip |
qt5-build.eclass: fix qconfig.pri regeneration.
Diffstat (limited to 'eclass/qt5-build.eclass')
-rw-r--r-- | eclass/qt5-build.eclass | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass index 82855656e040..25d4136c80b5 100644 --- a/eclass/qt5-build.eclass +++ b/eclass/qt5-build.eclass @@ -803,6 +803,11 @@ qt5_install_module_qconfigs() { insinto "${QT5_ARCHDATADIR#${EPREFIX}}"/mkspecs/gentoo doins "${T}"/${PN}-qconfig.pri ) + + if [[ ${PN} = qtcore && ${QT5_MINOR_VERSION} -ge 9 ]]; then + insinto "${QT5_ARCHDATADIR#${EPREFIX}}"/mkspecs/gentoo + newins "${D}${QT5_ARCHDATADIR#${EPREFIX}}"/mkspecs/qconfig.pri qconfig-qtcore.pri + fi } # @FUNCTION: qt5_regenerate_global_qconfigs @@ -824,9 +829,14 @@ qt5_regenerate_global_qconfigs() { einfo "Updating QT_CONFIG in qconfig.pri" local qconfig_pri=${ROOT%/}${QT5_ARCHDATADIR}/mkspecs/qconfig.pri + local qconfig_pri_orig=${ROOT%/}${QT5_ARCHDATADIR}/mkspecs/gentoo/qconfig-qtcore.pri if [[ -f ${qconfig_pri} ]]; then local x qconfig_add= qconfig_remove= - local qt_config=$(sed -n 's/^QT_CONFIG\s*+=\s*//p' "${qconfig_pri}") + if [[ -f ${qconfig_pri_orig} ]]; then + local qt_config=$(sed -n 's/^QT_CONFIG\s*+=\s*//p' "${qconfig_pri_orig}") + else + local qt_config=$(sed -n 's/^QT_CONFIG\s*+=\s*//p' "${qconfig_pri}") + fi local new_qt_config= # generate list of QT_CONFIG entries from the existing list, @@ -847,6 +857,6 @@ qt5_regenerate_global_qconfigs() { sed -i -e "s/^QT_CONFIG\s*+=.*/QT_CONFIG +=${new_qt_config}/" \ "${qconfig_pri}" || eerror "Failed to sed QT_CONFIG in ${qconfig_pri}" else - ewarn "${qconfig_pri} does not exist or is not a regular file" + ewarn "${qconfig_pri} or ${qconfig_pri_orig} does not exist or is not a regular file" fi } |