commit:     64370c71231259a942e981b7436e81023c6e5254
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 22 18:41:24 2020 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Mar 21 10:04:45 2022 +0000
URL:        https://gitweb.gentoo.org/proj/qt.git/commit/?id=64370c71

qt5-build.eclass: New helper function: qt5_symlink_binary_to_path()

Symlink necessary tools to /usr/bin

According to upstream discussion on Qt6 recommended tools to be in PATH.
See also: 
https://lists.qt-project.org/pipermail/development/2020-November/040626.html

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 eclass/qt5-build.eclass | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass
index 8242db0b..921f4f27 100644
--- a/eclass/qt5-build.eclass
+++ b/eclass/qt5-build.eclass
@@ -316,6 +316,16 @@ qt5-build_pkg_postrm() {
 
 ######  Public helpers  ######
 
+# @FUNCTION: qt5_symlink_binary_to_path
+# @USAGE: <target binary name> [suffix]
+# @DESCRIPTION:
+# Symlink a given binary from QT5_BINDIR to QT5_PREFIX/bin, with optional 
suffix
+qt5_symlink_binary_to_path() {
+       [[ $# -ge 1 ]] || die "${FUNCNAME}() requires at least one argument"
+
+       dosym -r "${QT5_BINDIR}"/${1} /usr/bin/${1}${2}
+}
+
 # @FUNCTION: qt_use
 # @USAGE: <flag> [feature] [enableval]
 # @DESCRIPTION:

Reply via email to