commit:     bcf011b03a776ad52a809f4ec35fa5b83e137dcb
Author:     Alfred Persson Forsberg <cat <AT> catcream <DOT> org>
AuthorDate: Fri Jan 26 01:14:41 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> 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 <cat <AT> catcream.org>
Closes: https://github.com/gentoo/gentoo/pull/35023
Signed-off-by: Sam James <sam <AT> 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
+}

Reply via email to