aboutsummaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2020-11-22 19:41:24 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2022-03-21 11:04:45 +0100
commit64370c71231259a942e981b7436e81023c6e5254 (patch)
tree6dd9c8f12d6c96d40ca360f1630ecd3afd9c013b /eclass
parentdev-qt/qtchooser: Drop tools colliding with Qt 5.15.3 links (diff)
downloadqt-64370c71231259a942e981b7436e81023c6e5254.tar.gz
qt-64370c71231259a942e981b7436e81023c6e5254.tar.bz2
qt-64370c71231259a942e981b7436e81023c6e5254.zip
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@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/qt5-build.eclass10
1 files changed, 10 insertions, 0 deletions
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: