From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D439C15864F for ; Sun, 26 Mar 2023 12:28:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EA1C0E07D3; Sun, 26 Mar 2023 12:28:44 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CF87CE07D3 for ; Sun, 26 Mar 2023 12:28:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C0E763411F2 for ; Sun, 26 Mar 2023 12:28:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1921695A for ; Sun, 26 Mar 2023 12:28:42 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1679833652.8245199aef9d94e48d6ce6c8bbe9d9ce756f5c6c.asturm@gentoo> Subject: [gentoo-commits] proj/qt:master commit in: eclass/ X-VCS-Repository: proj/qt X-VCS-Files: eclass/qt6-build.eclass X-VCS-Directories: eclass/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 8245199aef9d94e48d6ce6c8bbe9d9ce756f5c6c X-VCS-Branch: master Date: Sun, 26 Mar 2023 12:28:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 56e95a9d-afd4-4f26-adaa-9a5746547ca9 X-Archives-Hash: 92fab6724e0269f4f866b22828b1257a commit: 8245199aef9d94e48d6ce6c8bbe9d9ce756f5c6c Author: Jimi Huotari gentoo org> AuthorDate: Sun Mar 19 11:19:22 2023 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sun Mar 26 12:27:32 2023 +0000 URL: https://gitweb.gentoo.org/proj/qt.git/commit/?id=8245199a qt6-build.eclass: add 'qt6_symlink_binary_to_path' Signed-off-by: Jimi Huotari gentoo.org> Signed-off-by: Andreas Sturmlechner gentoo.org> eclass/qt6-build.eclass | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/eclass/qt6-build.eclass b/eclass/qt6-build.eclass index f92d37eb..79c06f34 100644 --- a/eclass/qt6-build.eclass +++ b/eclass/qt6-build.eclass @@ -137,6 +137,16 @@ qt_feature() { echo "-DQT_FEATURE_${2:-$1}=$(usex $1 ON OFF)" } +# @FUNCTION: qt6_symlink_binary_to_path +# @USAGE: [suffix] +# @DESCRIPTION: +# Symlink a given binary from QT6_BINDIR to QT6_PREFIX/bin, with optional suffix +qt6_symlink_binary_to_path() { + [[ $# -ge 1 ]] || die "${FUNCNAME}() requires at least one argument" + + dosym -r "${QT6_BINDIR}"/${1} /usr/bin/${1}${2} +} + ###### Internal functions ###### # @FUNCTION: qt6_prepare_env