summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-01-29 18:39:11 +0100
committerMichał Górny <mgorny@gentoo.org>2017-02-15 13:47:15 +0100
commitaa0d983a8622f4f9a74e62cd803404611a414798 (patch)
treef4ae790c4984ae0e86c0f4cbb6e98ec9fbd84fbf
parentapp-vim/llvm-vim: Add a split package for LLVM vim support (diff)
downloadgentoo-aa0d983a8622f4f9a74e62cd803404611a414798.tar.gz
gentoo-aa0d983a8622f4f9a74e62cd803404611a414798.tar.bz2
gentoo-aa0d983a8622f4f9a74e62cd803404611a414798.zip
sys-devel/llvmgold: Add a package to maintain LLVMgold symlink
-rw-r--r--profiles/package.mask1
-rw-r--r--sys-devel/llvmgold/llvmgold-4.ebuild25
-rw-r--r--sys-devel/llvmgold/llvmgold-5.ebuild25
-rw-r--r--sys-devel/llvmgold/metadata.xml7
4 files changed, 58 insertions, 0 deletions
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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>llvm@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>