summaryrefslogtreecommitdiff
path: root/eclass/qt5-build.eclass
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-05-12 16:42:50 +0300
committerV3n3RiX <venerix@koprulu.sector>2022-05-12 16:42:50 +0300
commit752d6256e5204b958b0ef7905675a940b5e9172f (patch)
tree330d16e6362a49cbed8875a777fe641a43376cd3 /eclass/qt5-build.eclass
parent0c100b7dd2b30e75b799d806df4ef899fd98e1ea (diff)
gentoo resync : 12.05.2022
Diffstat (limited to 'eclass/qt5-build.eclass')
-rw-r--r--eclass/qt5-build.eclass60
1 files changed, 9 insertions, 51 deletions
diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass
index 279ece28e1dd..6da97387c1ab 100644
--- a/eclass/qt5-build.eclass
+++ b/eclass/qt5-build.eclass
@@ -98,20 +98,7 @@ inherit estack flag-o-matic toolchain-funcs virtualx
if [[ ${PN} != qtwebengine ]]; then
case ${PV} in
*9999 )
- # kde/5.15 branch on invent.kde.org
- inherit kde.org
- ;;
- 5.15.2* )
- if [[ -n ${KDE_ORG_COMMIT} ]]; then
- # KDE Qt5PatchCollection snapshot based on Qt 5.15.2
- inherit kde.org
- else
- # official stable release
- _QT5_P=${QT5_MODULE}-everywhere-src-${PV}
- HOMEPAGE="https://www.qt.io/"
- SRC_URI="https://download.qt.io/official_releases/qt/${PV%.*}/${PV}/submodules/${_QT5_P}.tar.xz"
- S=${WORKDIR}/${_QT5_P}
- fi
+ inherit kde.org # kde/5.15 branch
;;
5.15.[3-9]* )
# official stable release
@@ -136,22 +123,15 @@ fi
LICENSE="|| ( GPL-2 GPL-3 LGPL-3 ) FDL-1.3"
-case ${PV} in
- 5.15.2*)
- SLOT=5/$(ver_cut 1-2)
- ;;
+case ${PN} in
+ assistant|linguist|qdbus|qdbusviewer|pixeltool)
+ SLOT=0 ;;
+ linguist-tools|qdoc|qtdiag|qtgraphicaleffects|qtimageformats| \
+ qtpaths|qtplugininfo|qtquickcontrols|qtquicktimeline| \
+ qttranslations|qtwaylandscanner|qtxmlpatterns)
+ SLOT=5 ;;
*)
- case ${PN} in
- assistant|linguist|qdbus|qdbusviewer|pixeltool)
- SLOT=0 ;;
- linguist-tools|qdoc|qtdiag|qtgraphicaleffects|qtimageformats| \
- qtpaths|qtplugininfo|qtquickcontrols|qtquicktimeline| \
- qttranslations|qtwaylandscanner|qtxmlpatterns)
- SLOT=5 ;;
- *)
- SLOT=5/$(ver_cut 1-2) ;;
- esac
- ;;
+ SLOT=5/$(ver_cut 1-2) ;;
esac
IUSE="debug test"
@@ -185,10 +165,6 @@ qt5-build_src_prepare() {
einfo "Preparing KDE Qt5PatchCollection snapshot at ${KDE_ORG_COMMIT}"
mkdir -p .git || die # need to fake a git repository for configure
fi
- # Ensure our ${QT5_PV} is not contradicted by any upstream (Qt) commit
- # bumping version in 5.15 branch after release (probably can be dropped
- # after 5.15.2_p* are gone)
- sed -e "/^MODULE_VERSION/s/5\.15\.[3456789]/${QT5_PV}/" -i .qmake.conf || die
fi
if [[ ${QT5_MODULE} == qtbase ]]; then
@@ -300,24 +276,6 @@ qt5-build_src_install() {
sed -i -e '1i #include <Gentoo/gentoo-qconfig.h>\n' \
"${D}${QT5_HEADERDIR}"/QtCore/qconfig.h \
|| die "sed failed (qconfig.h)"
-
- if ver_test -lt 5.15.2-r10; then
- # install qtchooser configuration file
- cat > "${T}/qt5-${CHOST}.conf" <<-_EOF_ || die
- ${QT5_BINDIR}
- ${QT5_LIBDIR}
- _EOF_
-
- (
- insinto /etc/xdg/qtchooser
- doins "${T}/qt5-${CHOST}.conf"
- )
-
- # convenience symlinks
- dosym qt5-"${CHOST}".conf /etc/xdg/qtchooser/5.conf
- dosym qt5-"${CHOST}".conf /etc/xdg/qtchooser/qt5.conf
- dosym qt5.conf /etc/xdg/qtchooser/default.conf
- fi
fi
qt5_install_module_config