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 A1FBB15838C for ; Wed, 24 Jan 2024 06:33:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3A3DDE2ADF; Wed, 24 Jan 2024 06:33:09 +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 12C28E2ADE for ; Wed, 24 Jan 2024 06:33:09 +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 223F034339F for ; Wed, 24 Jan 2024 06:33:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8138414C5 for ; Wed, 24 Jan 2024 06:33:05 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1706077970.0b2048c8a2ebbaf578482ac49dc71982c76621ae.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/lld-toolchain-symlinks/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-devel/lld-toolchain-symlinks/lld-toolchain-symlinks-19.ebuild X-VCS-Directories: sys-devel/lld-toolchain-symlinks/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 0b2048c8a2ebbaf578482ac49dc71982c76621ae X-VCS-Branch: master Date: Wed, 24 Jan 2024 06:33:05 +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: 8068ca1d-ed2b-46dd-97fa-172d5e5d55aa X-Archives-Hash: 615c2561fd61c6ee0deca46e41ba7ef2 commit: 0b2048c8a2ebbaf578482ac49dc71982c76621ae Author: Michał Górny gentoo org> AuthorDate: Wed Jan 24 05:44:26 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Wed Jan 24 06:32:50 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b2048c8 sys-devel/lld-toolchain-symlinks: Add 19.x live ebuild Signed-off-by: Michał Górny gentoo.org> .../lld-toolchain-symlinks-19.ebuild | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/sys-devel/lld-toolchain-symlinks/lld-toolchain-symlinks-19.ebuild b/sys-devel/lld-toolchain-symlinks/lld-toolchain-symlinks-19.ebuild new file mode 100644 index 000000000000..b85bf912c557 --- /dev/null +++ b/sys-devel/lld-toolchain-symlinks/lld-toolchain-symlinks-19.ebuild @@ -0,0 +1,37 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit multilib + +DESCRIPTION="Symlinks to use LLD on binutils-free system" +HOMEPAGE="https://wiki.gentoo.org/wiki/Project:LLVM" +S=${WORKDIR} + +LICENSE="public-domain" +SLOT="${PV}" +IUSE="multilib-symlinks +native-symlinks" + +RDEPEND=" + sys-devel/lld:${SLOT} +" + +src_install() { + use native-symlinks || return + + local chosts=( "${CHOST}" ) + if use multilib-symlinks; then + local abi + for abi in $(get_all_abis); do + chosts+=( "$(get_abi_CHOST "${abi}")" ) + done + fi + + local dest=/usr/lib/llvm/${SLOT}/bin + dodir "${dest}" + dosym ld.lld "${dest}/ld" + for chost in "${chosts[@]}"; do + dosym ld.lld "${dest}/${chost}-ld" + done +}