summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-11-01 19:04:23 +0100
committerMichał Górny <mgorny@gentoo.org>2019-11-03 12:46:24 +0100
commit24b529d9e4c496e6cb55e36b403168ff7e512409 (patch)
tree6e98be7a836d1a9ecf6440ebc4e7cb31adc2b284 /sys-libs
parentsys-libs/libcxx: Port to llvm.org eclass (diff)
downloadgentoo-24b529d9e4c496e6cb55e36b403168ff7e512409.tar.gz
gentoo-24b529d9e4c496e6cb55e36b403168ff7e512409.tar.bz2
gentoo-24b529d9e4c496e6cb55e36b403168ff7e512409.zip
sys-libs/libomp: Port to llvm.org eclass
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/libomp/libomp-10.0.0.9999.ebuild12
-rw-r--r--sys-libs/libomp/libomp-9.0.0.ebuild7
-rw-r--r--sys-libs/libomp/libomp-9.0.1.9999.ebuild13
3 files changed, 9 insertions, 23 deletions
diff --git a/sys-libs/libomp/libomp-10.0.0.9999.ebuild b/sys-libs/libomp/libomp-10.0.0.9999.ebuild
index 100db97281e6..5f49236cbe1a 100644
--- a/sys-libs/libomp/libomp-10.0.0.9999.ebuild
+++ b/sys-libs/libomp/libomp-10.0.0.9999.ebuild
@@ -4,13 +4,12 @@
EAPI=7
PYTHON_COMPAT=( python{2_7,3_{5,6,7}} )
-inherit cmake-multilib git-r3 linux-info multiprocessing python-any-r1
+inherit cmake-multilib linux-info llvm.org multiprocessing python-any-r1
DESCRIPTION="OpenMP runtime library for LLVM/clang compiler"
HOMEPAGE="https://openmp.llvm.org"
-SRC_URI=""
-EGIT_REPO_URI="https://github.com/llvm/llvm-project.git"
-S=${WORKDIR}/${P}/openmp
+LLVM_COMPONENTS=( openmp )
+llvm.org_set_globals
LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )"
SLOT="0"
@@ -67,11 +66,6 @@ pkg_setup() {
use test && python-any-r1_pkg_setup
}
-src_unpack() {
- git-r3_fetch
- git-r3_checkout '' '' '' openmp
-}
-
multilib_src_configure() {
local libdir="$(get_libdir)"
local mycmakeargs=(
diff --git a/sys-libs/libomp/libomp-9.0.0.ebuild b/sys-libs/libomp/libomp-9.0.0.ebuild
index 33b72bc0d34a..50704d497432 100644
--- a/sys-libs/libomp/libomp-9.0.0.ebuild
+++ b/sys-libs/libomp/libomp-9.0.0.ebuild
@@ -4,13 +4,12 @@
EAPI=7
PYTHON_COMPAT=( python{2_7,3_{5,6,7}} )
-inherit cmake-multilib linux-info multiprocessing python-any-r1
+inherit cmake-multilib linux-info llvm.org multiprocessing python-any-r1
-MY_P=openmp-${PV}.src
DESCRIPTION="OpenMP runtime library for LLVM/clang compiler"
HOMEPAGE="https://openmp.llvm.org"
-SRC_URI="https://releases.llvm.org/${PV}/${MY_P}.tar.xz"
-S=${WORKDIR}/${MY_P}
+LLVM_COMPONENTS=( openmp )
+llvm.org_set_globals
LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )"
SLOT="0"
diff --git a/sys-libs/libomp/libomp-9.0.1.9999.ebuild b/sys-libs/libomp/libomp-9.0.1.9999.ebuild
index 2ca7ce34bf02..5f49236cbe1a 100644
--- a/sys-libs/libomp/libomp-9.0.1.9999.ebuild
+++ b/sys-libs/libomp/libomp-9.0.1.9999.ebuild
@@ -4,14 +4,12 @@
EAPI=7
PYTHON_COMPAT=( python{2_7,3_{5,6,7}} )
-inherit cmake-multilib git-r3 linux-info multiprocessing python-any-r1
+inherit cmake-multilib linux-info llvm.org multiprocessing python-any-r1
DESCRIPTION="OpenMP runtime library for LLVM/clang compiler"
HOMEPAGE="https://openmp.llvm.org"
-SRC_URI=""
-EGIT_REPO_URI="https://github.com/llvm/llvm-project.git"
-EGIT_BRANCH="release/9.x"
-S=${WORKDIR}/${P}/openmp
+LLVM_COMPONENTS=( openmp )
+llvm.org_set_globals
LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )"
SLOT="0"
@@ -68,11 +66,6 @@ pkg_setup() {
use test && python-any-r1_pkg_setup
}
-src_unpack() {
- git-r3_fetch
- git-r3_checkout '' '' '' openmp
-}
-
multilib_src_configure() {
local libdir="$(get_libdir)"
local mycmakeargs=(