Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/qt:master commit in: dev-qt/qtchooser/
Date: Mon, 28 Dec 2020 09:49:59
Message-Id: 1609032745.3c8326395824d21435cec3a09b56b6c93fafce47.asturm@gentoo
1 commit: 3c8326395824d21435cec3a09b56b6c93fafce47
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 22 09:03:11 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 27 01:32:25 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/qt.git/commit/?id=3c832639
7
8 dev-qt/qtchooser: Move config file install from qt5-build.eclass
9
10 Package-Manager: Portage-3.0.10, Repoman-3.0.2
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 dev-qt/qtchooser/qtchooser-9999.ebuild | 35 +++++++++++++++++++++++++++-------
14 1 file changed, 28 insertions(+), 7 deletions(-)
15
16 diff --git a/dev-qt/qtchooser/qtchooser-9999.ebuild b/dev-qt/qtchooser/qtchooser-9999.ebuild
17 index c15146a3..aacf7457 100644
18 --- a/dev-qt/qtchooser/qtchooser-9999.ebuild
19 +++ b/dev-qt/qtchooser/qtchooser-9999.ebuild
20 @@ -1,26 +1,33 @@
21 -# Copyright 1999-2019 Gentoo Authors
22 +# Copyright 1999-2020 Gentoo Authors
23 # Distributed under the terms of the GNU General Public License v2
24
25 EAPI=7
26
27 -inherit qmake-utils toolchain-funcs git-r3
28 +inherit qmake-utils toolchain-funcs
29
30 DESCRIPTION="Tool to quickly switch between multiple Qt installations"
31 HOMEPAGE="https://code.qt.io/cgit/qtsdk/qtchooser.git/"
32 -EGIT_REPO_URI="https://code.qt.io/qtsdk/qtchooser.git"
33 +
34 +if [[ ${PV} == *9999* ]]; then
35 + EGIT_REPO_URI="https://code.qt.io/qtsdk/qtchooser.git"
36 + inherit git-r3
37 +else
38 + SRC_URI="http://download.qt.io/official_releases/${PN}/${P}.tar.xz"
39 + KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
40 +fi
41
42 LICENSE="|| ( LGPL-2.1 GPL-3 )"
43 SLOT="0"
44 -KEYWORDS=""
45 IUSE="test"
46 -
47 RESTRICT="!test? ( test )"
48
49 DEPEND="test? (
50 dev-qt/qtcore:5
51 dev-qt/qttest:5
52 )"
53 -RDEPEND=""
54 +RDEPEND="
55 + !<dev-qt/qtcore-5.15.2-r2:5
56 +"
57
58 qtchooser_make() {
59 emake \
60 @@ -45,7 +52,21 @@ src_test() {
61 src_install() {
62 qtchooser_make INSTALL_ROOT="${D}" install
63
64 - keepdir /etc/xdg/qtchooser
65 + # install configuration file
66 + cat > "${T}/qt5-${CHOST}.conf" <<-_EOF_ || die
67 + $(qt5_get_bindir)
68 + $(qt5_get_libdir)
69 + _EOF_
70 +
71 + (
72 + insinto /etc/xdg/qtchooser
73 + doins "${T}/qt5-${CHOST}.conf"
74 + )
75 +
76 + # convenience symlinks
77 + dosym qt5-"${CHOST}".conf /etc/xdg/qtchooser/5.conf
78 + dosym qt5-"${CHOST}".conf /etc/xdg/qtchooser/qt5.conf
79 + dosym qt5.conf /etc/xdg/qtchooser/default.conf
80
81 # TODO: bash and zsh completion
82 # newbashcomp scripts/${PN}.bash ${PN}