commit:     c6862fa57e51d8bd3d68d1a70dd12012b252dd50
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Nov  1 17:37:46 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Nov  3 11:46:08 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6862fa5

sys-devel/llvm-common: Port 9+ to llvm.org.eclass

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 .../llvm-common/llvm-common-10.0.0.9999.ebuild     | 22 ++++++---------------
 sys-devel/llvm-common/llvm-common-9.0.0.ebuild     | 22 +++++++--------------
 .../llvm-common/llvm-common-9.0.1.9999.ebuild      | 23 ++++++----------------
 3 files changed, 19 insertions(+), 48 deletions(-)

diff --git a/sys-devel/llvm-common/llvm-common-10.0.0.9999.ebuild 
b/sys-devel/llvm-common/llvm-common-10.0.0.9999.ebuild
index 7edf27153de..ba2ffc76a70 100644
--- a/sys-devel/llvm-common/llvm-common-10.0.0.9999.ebuild
+++ b/sys-devel/llvm-common/llvm-common-10.0.0.9999.ebuild
@@ -3,13 +3,12 @@
 
 EAPI=7
 
-inherit git-r3
+inherit llvm.org
 
 DESCRIPTION="Common files shared between multiple slots of LLVM"
 HOMEPAGE="https://llvm.org/";
-SRC_URI=""
-EGIT_REPO_URI="https://github.com/llvm/llvm-project.git";
-S=${WORKDIR}/${P}/llvm
+LLVM_COMPONENTS=( llvm/utils/vim )
+llvm.org_set_globals
 
 LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA"
 SLOT="0"
@@ -18,19 +17,10 @@ IUSE=""
 
 RDEPEND="!sys-devel/llvm:0"
 
-src_unpack() {
-       git-r3_fetch
-       git-r3_checkout '' '' '' llvm/utils/vim
-}
-
-src_configure() { :; }
-src_compile() { :; }
-src_test() { :; }
-
 src_install() {
        insinto /usr/share/vim/vimfiles
-       doins -r utils/vim/*/
+       doins -r */
        # some users may find it useful
-       newdoc utils/vim/README README.vim
-       dodoc utils/vim/vimrc
+       newdoc README README.vim
+       dodoc vimrc
 }

diff --git a/sys-devel/llvm-common/llvm-common-9.0.0.ebuild 
b/sys-devel/llvm-common/llvm-common-9.0.0.ebuild
index 65eb4d232e3..a81f8f50599 100644
--- a/sys-devel/llvm-common/llvm-common-9.0.0.ebuild
+++ b/sys-devel/llvm-common/llvm-common-9.0.0.ebuild
@@ -3,11 +3,12 @@
 
 EAPI=7
 
-MY_P=llvm-${PV/_/}.src
+inherit llvm.org
+
 DESCRIPTION="Common files shared between multiple slots of LLVM"
 HOMEPAGE="https://llvm.org/";
-SRC_URI="https://releases.llvm.org/${PV}/${MY_P}.tar.xz";
-S=${WORKDIR}/${MY_P}
+LLVM_COMPONENTS=( llvm/utils/vim )
+llvm.org_set_globals
 
 LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA"
 SLOT="0"
@@ -16,19 +17,10 @@ IUSE=""
 
 RDEPEND="!sys-devel/llvm:0"
 
-src_unpack() {
-       einfo "Unpacking parts of ${MY_P}.tar.xz ..."
-       tar -xJf "${DISTDIR}/${MY_P}.tar.xz" "${MY_P}/utils/vim" || die
-}
-
-src_configure() { :; }
-src_compile() { :; }
-src_test() { :; }
-
 src_install() {
        insinto /usr/share/vim/vimfiles
-       doins -r utils/vim/*/
+       doins -r */
        # some users may find it useful
-       newdoc utils/vim/README README.vim
-       dodoc utils/vim/vimrc
+       newdoc README README.vim
+       dodoc vimrc
 }

diff --git a/sys-devel/llvm-common/llvm-common-9.0.1.9999.ebuild 
b/sys-devel/llvm-common/llvm-common-9.0.1.9999.ebuild
index b3b79ac4e6c..ba2ffc76a70 100644
--- a/sys-devel/llvm-common/llvm-common-9.0.1.9999.ebuild
+++ b/sys-devel/llvm-common/llvm-common-9.0.1.9999.ebuild
@@ -3,14 +3,12 @@
 
 EAPI=7
 
-inherit git-r3
+inherit llvm.org
 
 DESCRIPTION="Common files shared between multiple slots of LLVM"
 HOMEPAGE="https://llvm.org/";
-SRC_URI=""
-EGIT_REPO_URI="https://github.com/llvm/llvm-project.git";
-EGIT_BRANCH="release/9.x"
-S=${WORKDIR}/${P}/llvm
+LLVM_COMPONENTS=( llvm/utils/vim )
+llvm.org_set_globals
 
 LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA"
 SLOT="0"
@@ -19,19 +17,10 @@ IUSE=""
 
 RDEPEND="!sys-devel/llvm:0"
 
-src_unpack() {
-       git-r3_fetch
-       git-r3_checkout '' '' '' llvm/utils/vim
-}
-
-src_configure() { :; }
-src_compile() { :; }
-src_test() { :; }
-
 src_install() {
        insinto /usr/share/vim/vimfiles
-       doins -r utils/vim/*/
+       doins -r */
        # some users may find it useful
-       newdoc utils/vim/README README.vim
-       dodoc utils/vim/vimrc
+       newdoc README README.vim
+       dodoc vimrc
 }

Reply via email to