Gentoo Archives: gentoo-commits

From: Jimi Huotari <chiitoo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Sun, 19 Mar 2023 13:09:44
Message-Id: 1679231196.23d7e9fc35cab4f42325411503a488c8c7fb78bf.chiitoo@gentoo
1 commit: 23d7e9fc35cab4f42325411503a488c8c7fb78bf
2 Author: Jimi Huotari <chiitoo <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 19 11:19:22 2023 +0000
4 Commit: Jimi Huotari <chiitoo <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 19 13:06:36 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23d7e9fc
7
8 qt6-build.eclass: add 'qt6_symlink_binary_to_path'
9
10 Signed-off-by: Jimi Huotari <chiitoo <AT> gentoo.org>
11
12 eclass/qt6-build.eclass | 10 ++++++++++
13 1 file changed, 10 insertions(+)
14
15 diff --git a/eclass/qt6-build.eclass b/eclass/qt6-build.eclass
16 index f92d37eba2f3..79c06f341ede 100644
17 --- a/eclass/qt6-build.eclass
18 +++ b/eclass/qt6-build.eclass
19 @@ -137,6 +137,16 @@ qt_feature() {
20 echo "-DQT_FEATURE_${2:-$1}=$(usex $1 ON OFF)"
21 }
22
23 +# @FUNCTION: qt6_symlink_binary_to_path
24 +# @USAGE: <target binary name> [suffix]
25 +# @DESCRIPTION:
26 +# Symlink a given binary from QT6_BINDIR to QT6_PREFIX/bin, with optional suffix
27 +qt6_symlink_binary_to_path() {
28 + [[ $# -ge 1 ]] || die "${FUNCNAME}() requires at least one argument"
29 +
30 + dosym -r "${QT6_BINDIR}"/${1} /usr/bin/${1}${2}
31 +}
32 +
33 ###### Internal functions ######
34
35 # @FUNCTION: qt6_prepare_env