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 95BBC15838C for ; Fri, 26 Jan 2024 09:31:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D5A65E29D1; Fri, 26 Jan 2024 09:31:58 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A5E31E29D1 for ; Fri, 26 Jan 2024 09:31:58 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A9A433433D2 for ; Fri, 26 Jan 2024 09:31:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 209BA1065 for ; Fri, 26 Jan 2024 09:31:56 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1706261479.bcf011b03a776ad52a809f4ec35fa5b83e137dcb.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/clang-crossdev-wrappers/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-devel/clang-crossdev-wrappers/clang-crossdev-wrappers-19.ebuild X-VCS-Directories: sys-devel/clang-crossdev-wrappers/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: bcf011b03a776ad52a809f4ec35fa5b83e137dcb X-VCS-Branch: master Date: Fri, 26 Jan 2024 09:31:56 +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: 8f18cf9c-6705-41b8-bd5f-d725000404b9 X-Archives-Hash: 2a49fc95435f6b95a00c6d2488dba062 commit: bcf011b03a776ad52a809f4ec35fa5b83e137dcb Author: Alfred Persson Forsberg catcream org> AuthorDate: Fri Jan 26 01:14:41 2024 +0000 Commit: Sam James gentoo org> CommitDate: Fri Jan 26 09:31:19 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bcf011b0 sys-devel/clang-crossdev-wrappers: add 19 Bug: https://bugs.gentoo.org/680652 Signed-off-by: Alfred Persson Forsberg catcream.org> Closes: https://github.com/gentoo/gentoo/pull/35023 Signed-off-by: Sam James gentoo.org> .../clang-crossdev-wrappers-19.ebuild | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/sys-devel/clang-crossdev-wrappers/clang-crossdev-wrappers-19.ebuild b/sys-devel/clang-crossdev-wrappers/clang-crossdev-wrappers-19.ebuild new file mode 100644 index 000000000000..167f8e6f3541 --- /dev/null +++ b/sys-devel/clang-crossdev-wrappers/clang-crossdev-wrappers-19.ebuild @@ -0,0 +1,43 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit crossdev + +DESCRIPTION="Symlinks to a Clang crosscompiler" +HOMEPAGE="https://wiki.gentoo.org/wiki/Project:LLVM" +SRC_URI="" +S=${WORKDIR} + +LICENSE="public-domain" +SLOT="${PV}" +KEYWORDS="" +PROPERTIES="live" + +RDEPEND=" + sys-devel/clang:${SLOT} +" + +src_install() { + local llvm_path="${EPREFIX}/usr/lib/llvm/${SLOT}" + into "${llvm_path}" + + for exe in "clang" "clang++" "clang-cpp"; do + newbin - "${CTARGET}-${exe}" <<-EOF + #!/bin/sh + exec ${exe}-${SLOT} --no-default-config --config="/etc/clang/cross/${CTARGET}.cfg" \${@} + EOF + done + + local tools=( + ${CTARGET}-clang-${SLOT}:${CTARGET}-clang + ${CTARGET}-clang-cpp-${SLOT}:${CTARGET}-clang-cpp + ${CTARGET}-clang++-${SLOT}:${CTARGET}-clang++ + ) + + local t + for t in "${tools[@]}"; do + dosym "${t#*:}" "${llvm_path}/bin/${t%:*}" + done +}