From: Michał Górny Date: Sun, 29 Jan 2017 17:39:11 +0000 (+0100) Subject: sys-devel/llvmgold: Add a package to maintain LLVMgold symlink X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=aa0d983a8622f4f9a74e62cd803404611a414798;p=gentoo.git sys-devel/llvmgold: Add a package to maintain LLVMgold symlink --- diff --git a/profiles/package.mask b/profiles/package.mask index 62328f2e013f..a04f769b4bba 100644 --- a/profiles/package.mask +++ b/profiles/package.mask @@ -260,6 +260,7 @@ x11-drivers/xf86-video-v4l =sys-devel/clang-runtime-4.0.0* =sys-devel/lld-4.0.0* =sys-devel/llvm-4.0.0* +=sys-devel/llvmgold-4 =sys-libs/compiler-rt-4.0.0* =sys-libs/compiler-rt-sanitizers-4.0.0* =sys-libs/libcxx-4.0.0* diff --git a/sys-devel/llvmgold/llvmgold-4.ebuild b/sys-devel/llvmgold/llvmgold-4.ebuild new file mode 100644 index 000000000000..fc2dc9b50012 --- /dev/null +++ b/sys-devel/llvmgold/llvmgold-4.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +DESCRIPTION="LLVMgold plugin symlink for autoloading" +HOMEPAGE="http://llvm.org/" +SRC_URI="" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="" + +RDEPEND="sys-devel/llvm:${PV}[gold] + !sys-devel/llvm:0" + +S=${WORKDIR} + +src_install() { + dodir "/usr/${CHOST}/binutils-bin/lib/bfd-plugins" + dosym "../../../../lib/llvm/${PV}/$(get_libdir)/LLVMgold.so" \ + "/usr/${CHOST}/binutils-bin/lib/bfd-plugins/LLVMgold.so" +} diff --git a/sys-devel/llvmgold/llvmgold-5.ebuild b/sys-devel/llvmgold/llvmgold-5.ebuild new file mode 100644 index 000000000000..6c683e988dde --- /dev/null +++ b/sys-devel/llvmgold/llvmgold-5.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +DESCRIPTION="LLVMgold plugin symlink for autoloading" +HOMEPAGE="http://llvm.org/" +SRC_URI="" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="" +IUSE="" + +RDEPEND="sys-devel/llvm:${PV}[gold] + !sys-devel/llvm:0" + +S=${WORKDIR} + +src_install() { + dodir "/usr/${CHOST}/binutils-bin/lib/bfd-plugins" + dosym "../../../../lib/llvm/${PV}/$(get_libdir)/LLVMgold.so" \ + "/usr/${CHOST}/binutils-bin/lib/bfd-plugins/LLVMgold.so" +} diff --git a/sys-devel/llvmgold/metadata.xml b/sys-devel/llvmgold/metadata.xml new file mode 100644 index 000000000000..89c4bdb96049 --- /dev/null +++ b/sys-devel/llvmgold/metadata.xml @@ -0,0 +1,7 @@ + + + + + llvm@gentoo.org + +