mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sys-devel/clang-crossdev-wrappers: Add 22 & 23
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
# Copyright 2022-2026 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"
|
||||
S=${WORKDIR}
|
||||
|
||||
LICENSE="public-domain"
|
||||
SLOT="${PV}"
|
||||
PROPERTIES="live"
|
||||
|
||||
RDEPEND="
|
||||
llvm-core/clang:${SLOT}
|
||||
llvm-core/lld:${SLOT}
|
||||
"
|
||||
|
||||
src_install() {
|
||||
local llvm_path="/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
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
# Copyright 2022-2026 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"
|
||||
S=${WORKDIR}
|
||||
|
||||
LICENSE="public-domain"
|
||||
SLOT="${PV}"
|
||||
PROPERTIES="live"
|
||||
|
||||
RDEPEND="
|
||||
llvm-core/clang:${SLOT}
|
||||
llvm-core/lld:${SLOT}
|
||||
"
|
||||
|
||||
src_install() {
|
||||
local llvm_path="/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
|
||||
}
|
||||
Reference in New Issue
Block a user