commit:     86bef6af43fb45e5247131884622a3f25ee6b64a
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Apr  4 17:27:00 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Apr  4 17:37:21 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86bef6af

sys-devel/clang-common: New package for common clang files

New package for clang files shared between multiple slots. Currently
includes bash completion.

Closes: https://bugs.gentoo.org/652414

 sys-devel/clang-common/Manifest                    |  1 +
 sys-devel/clang-common/clang-common-6.0.0.ebuild   | 33 ++++++++++++++++++++++
 .../clang-common/clang-common-6.0.9999.ebuild      | 33 ++++++++++++++++++++++
 sys-devel/clang-common/clang-common-9999.ebuild    | 32 +++++++++++++++++++++
 sys-devel/clang-common/metadata.xml                |  7 +++++
 5 files changed, 106 insertions(+)

diff --git a/sys-devel/clang-common/Manifest b/sys-devel/clang-common/Manifest
new file mode 100644
index 00000000000..521d758b33f
--- /dev/null
+++ b/sys-devel/clang-common/Manifest
@@ -0,0 +1 @@
+DIST cfe-6.0.0.src.tar.xz 11959224 BLAKE2B 
257edbaedf72bd941b67b4aa2f152a96a37bbea72d21d22d4445152685efe40d75b9a7a39955545643e841ad6693ef12e52b207b9119098774f39e858b64bc09
 SHA512 
e886dd27448503bbfc7fd4f68eb089c19b2f2be4f0e5b26d3df253833f60b91d70b472a6b530063386e2252075b110ce9f5942800feddf6c34b94a75cf7bd5c6

diff --git a/sys-devel/clang-common/clang-common-6.0.0.ebuild 
b/sys-devel/clang-common/clang-common-6.0.0.ebuild
new file mode 100644
index 00000000000..05dbb18f31a
--- /dev/null
+++ b/sys-devel/clang-common/clang-common-6.0.0.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit bash-completion-r1
+
+MY_P=cfe-${PV/_/}.src
+DESCRIPTION="Common files shared between multiple slots of clang"
+HOMEPAGE="https://llvm.org/";
+SRC_URI="https://releases.llvm.org/${PV/_//}/${MY_P}.tar.xz";
+
+LICENSE="UoI-NCSA"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-fbsd ~amd64-linux ~ppc-macos ~x64-macos 
~x86-macos"
+IUSE=""
+
+PDEPEND="sys-devel/clang:*"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+       einfo "Unpacking parts of ${MY_P}.tar.xz ..."
+       tar -xJf "${DISTDIR}/${MY_P}.tar.xz" 
"${MY_P}/utils/bash-autocomplete.sh" || die
+}
+
+src_configure() { :; }
+src_compile() { :; }
+src_test() { :; }
+
+src_install() {
+       newbashcomp utils/bash-autocomplete.sh clang
+}

diff --git a/sys-devel/clang-common/clang-common-6.0.9999.ebuild 
b/sys-devel/clang-common/clang-common-6.0.9999.ebuild
new file mode 100644
index 00000000000..23946cca161
--- /dev/null
+++ b/sys-devel/clang-common/clang-common-6.0.9999.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit bash-completion-r1 git-r3
+
+DESCRIPTION="Common files shared between multiple slots of clang"
+HOMEPAGE="https://llvm.org/";
+SRC_URI=""
+EGIT_REPO_URI="https://git.llvm.org/git/clang.git
+       https://github.com/llvm-mirror/clang.git";
+EGIT_BRANCH="release_60"
+
+LICENSE="UoI-NCSA"
+SLOT="0"
+KEYWORDS=""
+IUSE=""
+
+PDEPEND="sys-devel/clang:*"
+
+src_unpack() {
+       git-r3_fetch
+       git-r3_checkout '' '' '' utils/bash-autocomplete.sh
+}
+
+src_configure() { :; }
+src_compile() { :; }
+src_test() { :; }
+
+src_install() {
+       newbashcomp utils/bash-autocomplete.sh clang
+}

diff --git a/sys-devel/clang-common/clang-common-9999.ebuild 
b/sys-devel/clang-common/clang-common-9999.ebuild
new file mode 100644
index 00000000000..145e395e1fe
--- /dev/null
+++ b/sys-devel/clang-common/clang-common-9999.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit bash-completion-r1 git-r3
+
+DESCRIPTION="Common files shared between multiple slots of clang"
+HOMEPAGE="https://llvm.org/";
+SRC_URI=""
+EGIT_REPO_URI="https://git.llvm.org/git/clang.git
+       https://github.com/llvm-mirror/clang.git";
+
+LICENSE="UoI-NCSA"
+SLOT="0"
+KEYWORDS=""
+IUSE=""
+
+PDEPEND="sys-devel/clang:*"
+
+src_unpack() {
+       git-r3_fetch
+       git-r3_checkout '' '' '' utils/bash-autocomplete.sh
+}
+
+src_configure() { :; }
+src_compile() { :; }
+src_test() { :; }
+
+src_install() {
+       newbashcomp utils/bash-autocomplete.sh clang
+}

diff --git a/sys-devel/clang-common/metadata.xml 
b/sys-devel/clang-common/metadata.xml
new file mode 100644
index 00000000000..89c4bdb9604
--- /dev/null
+++ b/sys-devel/clang-common/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>[email protected]</email>
+       </maintainer>
+</pkgmetadata>

Reply via email to