# Copyright 2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 MY_PV="$(ver_cut 1)" DESCRIPTION="Compatibility symlinks for llvm-core/lld" HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage" S="${WORKDIR}" LICENSE="GPL-2" SLOT="${MY_PV}" KEYWORDS="~amd64" RDEPEND=" llvm-core/lld:${MY_PV} " src_install() { local bins=( lld ld.lld ld64.lld lld-link wasm-ld llvm-{as,ar,link,lto2,nm,objdump,objcopy,strip,otool,pdbutil,readobj,readelf,addr2line} ) local l for l in "${bins[@]}"; do dosym "../lib/llvm/${MY_PV}/bin/${l}" "/usr/bin/${l}-${MY_PV}" done }