summaryrefslogtreecommitdiff
path: root/sys-devel/clang-toolchain-symlinks
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-09-20 17:24:07 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-09-20 17:24:07 +0100
commit800c4c398cad9dd837da33062e71ccc84114fe05 (patch)
tree9016107a696d96ddfaea5f7fa6d55eadc54d4987 /sys-devel/clang-toolchain-symlinks
parentc17e7d2a8cc12551a02d28209cd2edbf078d5675 (diff)
gentoo auto-resync : 20:09:2022 - 17:24:07
Diffstat (limited to 'sys-devel/clang-toolchain-symlinks')
-rw-r--r--sys-devel/clang-toolchain-symlinks/Manifest3
-rw-r--r--sys-devel/clang-toolchain-symlinks/clang-toolchain-symlinks-15.ebuild51
-rw-r--r--sys-devel/clang-toolchain-symlinks/clang-toolchain-symlinks-16.ebuild52
-rw-r--r--sys-devel/clang-toolchain-symlinks/metadata.xml21
4 files changed, 127 insertions, 0 deletions
diff --git a/sys-devel/clang-toolchain-symlinks/Manifest b/sys-devel/clang-toolchain-symlinks/Manifest
new file mode 100644
index 000000000000..a9a037e1b376
--- /dev/null
+++ b/sys-devel/clang-toolchain-symlinks/Manifest
@@ -0,0 +1,3 @@
+EBUILD clang-toolchain-symlinks-15.ebuild 966 BLAKE2B 6f9446b3421c03fe2bf81b488303c251fd4c3afbb717b95585a401c1ac625be8391388e52f65ea6012ae0d1a509d7fe2717e2caccd44908cb68e774b9c0ada40 SHA512 8669d75ddf72c00aa150f7285524d5600f684db2391ef6174f914fa13a8b4eeff56fcc0773d0e70ed57e0ff5f8fec8df60e48a14febec5e7140777dbd579971b
+EBUILD clang-toolchain-symlinks-16.ebuild 911 BLAKE2B 30a2b8e73ebf35c10744373a43d0927e2a156c624f8786854e7fc3d0d775d129706d3e0796768c225403710183d5bdb979f341efef73f1f06ac57b42e34e6fd8 SHA512 071ec5674184e8f54a5aaa2c5b1156990df9f0240da7b178ba5d04589fb6aa19b4648362a5c5349b9d9c987bf94c972cbae706de7a6611c259edcfacb4e56fa1
+MISC metadata.xml 683 BLAKE2B 09136e24c691f67003491e09ee7210b7a7259f410c200d7af9aac75cb8b08ff67ea338b4fa741d6d4e58d257c3685b8ed76749fbb06f0cfe8c15641abd14e185 SHA512 0fa115233dc1d374f017caa0ffcef436b5e95d2a6b69afc94e0c2055bb67715dd529adb6359088d9078ae4c501fc4da1412186efd8d852ffd1ac42c42787eadc
diff --git a/sys-devel/clang-toolchain-symlinks/clang-toolchain-symlinks-15.ebuild b/sys-devel/clang-toolchain-symlinks/clang-toolchain-symlinks-15.ebuild
new file mode 100644
index 000000000000..d8ea28f5257f
--- /dev/null
+++ b/sys-devel/clang-toolchain-symlinks/clang-toolchain-symlinks-15.ebuild
@@ -0,0 +1,51 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit multilib
+
+DESCRIPTION="Symlinks to use Clang on GCC-free system"
+HOMEPAGE="https://wiki.gentoo.org/wiki/Project:LLVM"
+SRC_URI=""
+S=${WORKDIR}
+
+LICENSE="public-domain"
+SLOT="${PV}"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x64-macos"
+IUSE="gcc-symlinks +native-symlinks"
+
+RDEPEND="
+ sys-devel/clang:${SLOT}
+"
+
+src_install() {
+ local tools=()
+
+ if use native-symlinks; then
+ tools+=(
+ cc:clang
+ cpp:clang-cpp
+ c++:clang++
+ )
+ fi
+ if use gcc-symlinks; then
+ tools+=(
+ gcc:clang
+ g++:clang++
+ )
+ fi
+
+ local abi t
+ local dest=/usr/lib/llvm/${SLOT}/bin
+ dodir "${dest}"
+ for t in "${tools[@]}"; do
+ dosym "${t#*:}" "${dest}/${t%:*}"
+ done
+ for abi in $(get_all_abis); do
+ local abi_chost=$(get_abi_CHOST "${abi}")
+ for t in "${tools[@]}"; do
+ dosym "${t#*:}" "${dest}/${abi_chost}-${t%:*}"
+ done
+ done
+}
diff --git a/sys-devel/clang-toolchain-symlinks/clang-toolchain-symlinks-16.ebuild b/sys-devel/clang-toolchain-symlinks/clang-toolchain-symlinks-16.ebuild
new file mode 100644
index 000000000000..980427e31a5e
--- /dev/null
+++ b/sys-devel/clang-toolchain-symlinks/clang-toolchain-symlinks-16.ebuild
@@ -0,0 +1,52 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit multilib
+
+DESCRIPTION="Symlinks to use Clang on GCC-free system"
+HOMEPAGE="https://wiki.gentoo.org/wiki/Project:LLVM"
+SRC_URI=""
+S=${WORKDIR}
+
+LICENSE="public-domain"
+SLOT="${PV}"
+KEYWORDS=""
+PROPERTIES="live"
+IUSE="gcc-symlinks +native-symlinks"
+
+RDEPEND="
+ sys-devel/clang:${SLOT}
+"
+
+src_install() {
+ local tools=()
+
+ if use native-symlinks; then
+ tools+=(
+ cc:clang
+ cpp:clang-cpp
+ c++:clang++
+ )
+ fi
+ if use gcc-symlinks; then
+ tools+=(
+ gcc:clang
+ g++:clang++
+ )
+ fi
+
+ local abi t
+ local dest=/usr/lib/llvm/${SLOT}/bin
+ dodir "${dest}"
+ for t in "${tools[@]}"; do
+ dosym "${t#*:}" "${dest}/${t%:*}"
+ done
+ for abi in $(get_all_abis); do
+ local abi_chost=$(get_abi_CHOST "${abi}")
+ for t in "${tools[@]}"; do
+ dosym "${t#*:}" "${dest}/${abi_chost}-${t%:*}"
+ done
+ done
+}
diff --git a/sys-devel/clang-toolchain-symlinks/metadata.xml b/sys-devel/clang-toolchain-symlinks/metadata.xml
new file mode 100644
index 000000000000..58c5027c2994
--- /dev/null
+++ b/sys-devel/clang-toolchain-symlinks/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>llvm@gentoo.org</email>
+ </maintainer>
+ <use>
+ <flag name="gcc-symlinks">
+ Install symlinks for 'gcc' and 'g++' for extra
+ compatibility.
+ </flag>
+ <flag name="native-symlinks">
+ Install generic tool symlinks like 'cc' and 'c++',
+ as well as ${CTARGET}-*. These symlinks are installed
+ into slotted LLVM bindir, so they should not take precedence
+ over symlinks installed into /usr/bin
+ by <pkg>sys-devel/gcc-config</pkg> but they can be helpful
+ for GCC-free setups.
+ </flag>
+ </use>
+</pkgmetadata>