summaryrefslogtreecommitdiff
path: root/sys-devel/llvm-toolchain-symlinks
diff options
context:
space:
mode:
Diffstat (limited to 'sys-devel/llvm-toolchain-symlinks')
-rw-r--r--sys-devel/llvm-toolchain-symlinks/Manifest1
-rw-r--r--sys-devel/llvm-toolchain-symlinks/llvm-toolchain-symlinks-14.ebuild42
2 files changed, 43 insertions, 0 deletions
diff --git a/sys-devel/llvm-toolchain-symlinks/Manifest b/sys-devel/llvm-toolchain-symlinks/Manifest
index 7fc025eeb893..f29d5fc977e7 100644
--- a/sys-devel/llvm-toolchain-symlinks/Manifest
+++ b/sys-devel/llvm-toolchain-symlinks/Manifest
@@ -1,3 +1,4 @@
+EBUILD llvm-toolchain-symlinks-14.ebuild 917 BLAKE2B 19c6d2107750e3bd1c0bfea92fb37bb894732ca4a1ccf09cc9d794a6797934623f90bebad9c3ba1845d4525cedef0e1174b5dd4b5d7463f522cf051e79b9b4d1 SHA512 4c939580faabf5c2fd14dd7c3ab7ca12cd3359771d591634fcd71b9dd1ec14f4d928b9ac5e90ab384f9093d6abfd7addd88ae9b92a8feb45f7a5ef105ddcf56e
EBUILD llvm-toolchain-symlinks-15.ebuild 917 BLAKE2B 19c6d2107750e3bd1c0bfea92fb37bb894732ca4a1ccf09cc9d794a6797934623f90bebad9c3ba1845d4525cedef0e1174b5dd4b5d7463f522cf051e79b9b4d1 SHA512 4c939580faabf5c2fd14dd7c3ab7ca12cd3359771d591634fcd71b9dd1ec14f4d928b9ac5e90ab384f9093d6abfd7addd88ae9b92a8feb45f7a5ef105ddcf56e
EBUILD llvm-toolchain-symlinks-16.ebuild 851 BLAKE2B 2797a5b4010a5ebbf97bb7c017c07e9fb993a8dcde01830379e2e6674b2643866402b799472137e99ed75be40777c48c2a10695de50f0cb7ebe93e791e8a69bb SHA512 be367a045de61e28dc50b5b01406a2c5ac2b7e4c0588f90e6848088aea16389fb34dfa7e2066f69853ada07d17550c1384d36c05b913abec0e28980de8a1ebc5
MISC metadata.xml 594 BLAKE2B 6de5c87920c45523712844b099b80ca9e4ad337ccc1d84013554811af39ff28bd83aa94742c5c385804f1054362bcdc060f8ba1ff92e98f2ffd27cf7b90c9455 SHA512 15b353f3a4d0bd05ee57acd2d25a1aae15dafa52665ca2e8e563d8e71f4888ab482cf118329bdfd635c8e5aa9685d51f4a23e39d1f6f6905994c0d7672e91d6b
diff --git a/sys-devel/llvm-toolchain-symlinks/llvm-toolchain-symlinks-14.ebuild b/sys-devel/llvm-toolchain-symlinks/llvm-toolchain-symlinks-14.ebuild
new file mode 100644
index 000000000000..9cc42ef77e31
--- /dev/null
+++ b/sys-devel/llvm-toolchain-symlinks/llvm-toolchain-symlinks-14.ebuild
@@ -0,0 +1,42 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit multilib
+
+DESCRIPTION="Symlinks to use LLVM on binutils-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 ~ppc-macos ~x64-macos"
+IUSE="+native-symlinks"
+
+RDEPEND="
+ sys-devel/llvm:${SLOT}
+"
+
+src_install() {
+ use native-symlinks || return
+
+ local tools=(
+ addr2line ar dlltool nm objcopy objdump ranlib readelf size
+ strings strip windres
+ )
+
+ local abi t
+ local dest=/usr/lib/llvm/${SLOT}/bin
+ dodir "${dest}"
+ for t in "${tools[@]}"; do
+ dosym "llvm-${t}" "${dest}/${t}"
+ done
+ for abi in $(get_all_abis); do
+ local abi_chost=$(get_abi_CHOST "${abi}")
+ for t in "${tools[@]}"; do
+ dosym "llvm-${t}" "${dest}/${abi_chost}-${t}"
+ done
+ done
+}