summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-06-20 18:31:20 +0200
committerMichał Górny <mgorny@gentoo.org>2020-06-20 18:32:59 +0200
commit84e24bee8e501876705cd91c940c3984f018cedf (patch)
treefc075020e00621e1699662cc779520060c3bd3fe /sys-libs/libomp
parentsys-libs/libomp: Apply patches in WORKDIR in 10.0.1+ (diff)
downloadgentoo-84e24bee8e501876705cd91c940c3984f018cedf.tar.gz
gentoo-84e24bee8e501876705cd91c940c3984f018cedf.tar.bz2
gentoo-84e24bee8e501876705cd91c940c3984f018cedf.zip
sys-libs/libomp: Port to cmake.eclass
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-libs/libomp')
-rw-r--r--sys-libs/libomp/libomp-10.0.1.9999.ebuild7
-rw-r--r--sys-libs/libomp/libomp-10.0.1_rc1.ebuild7
-rw-r--r--sys-libs/libomp/libomp-11.0.0.9999.ebuild7
3 files changed, 12 insertions, 9 deletions
diff --git a/sys-libs/libomp/libomp-10.0.1.9999.ebuild b/sys-libs/libomp/libomp-10.0.1.9999.ebuild
index b2d599eb53d0..75f1323b4f52 100644
--- a/sys-libs/libomp/libomp-10.0.1.9999.ebuild
+++ b/sys-libs/libomp/libomp-10.0.1.9999.ebuild
@@ -3,6 +3,7 @@
EAPI=7
+CMAKE_ECLASS=cmake
PYTHON_COMPAT=( python3_{6,7,8} )
inherit cmake-multilib linux-info llvm.org multiprocessing python-any-r1
@@ -70,7 +71,7 @@ src_prepare() {
# cmake eclasses suck by forcing ${S} here
CMAKE_USE_DIR=${S} \
S=${WORKDIR} \
- cmake-utils_src_prepare
+ cmake_src_prepare
}
multilib_src_configure() {
@@ -102,12 +103,12 @@ multilib_src_configure() {
-DOPENMP_TEST_C_COMPILER="$(type -P "${CHOST}-clang")"
-DOPENMP_TEST_CXX_COMPILER="$(type -P "${CHOST}-clang++")"
)
- cmake-utils_src_configure
+ cmake_src_configure
}
multilib_src_test() {
# respect TMPDIR!
local -x LIT_PRESERVES_TMP=1
- cmake-utils_src_make check-libomp
+ cmake_build check-libomp
}
diff --git a/sys-libs/libomp/libomp-10.0.1_rc1.ebuild b/sys-libs/libomp/libomp-10.0.1_rc1.ebuild
index b2d599eb53d0..75f1323b4f52 100644
--- a/sys-libs/libomp/libomp-10.0.1_rc1.ebuild
+++ b/sys-libs/libomp/libomp-10.0.1_rc1.ebuild
@@ -3,6 +3,7 @@
EAPI=7
+CMAKE_ECLASS=cmake
PYTHON_COMPAT=( python3_{6,7,8} )
inherit cmake-multilib linux-info llvm.org multiprocessing python-any-r1
@@ -70,7 +71,7 @@ src_prepare() {
# cmake eclasses suck by forcing ${S} here
CMAKE_USE_DIR=${S} \
S=${WORKDIR} \
- cmake-utils_src_prepare
+ cmake_src_prepare
}
multilib_src_configure() {
@@ -102,12 +103,12 @@ multilib_src_configure() {
-DOPENMP_TEST_C_COMPILER="$(type -P "${CHOST}-clang")"
-DOPENMP_TEST_CXX_COMPILER="$(type -P "${CHOST}-clang++")"
)
- cmake-utils_src_configure
+ cmake_src_configure
}
multilib_src_test() {
# respect TMPDIR!
local -x LIT_PRESERVES_TMP=1
- cmake-utils_src_make check-libomp
+ cmake_build check-libomp
}
diff --git a/sys-libs/libomp/libomp-11.0.0.9999.ebuild b/sys-libs/libomp/libomp-11.0.0.9999.ebuild
index b2d599eb53d0..75f1323b4f52 100644
--- a/sys-libs/libomp/libomp-11.0.0.9999.ebuild
+++ b/sys-libs/libomp/libomp-11.0.0.9999.ebuild
@@ -3,6 +3,7 @@
EAPI=7
+CMAKE_ECLASS=cmake
PYTHON_COMPAT=( python3_{6,7,8} )
inherit cmake-multilib linux-info llvm.org multiprocessing python-any-r1
@@ -70,7 +71,7 @@ src_prepare() {
# cmake eclasses suck by forcing ${S} here
CMAKE_USE_DIR=${S} \
S=${WORKDIR} \
- cmake-utils_src_prepare
+ cmake_src_prepare
}
multilib_src_configure() {
@@ -102,12 +103,12 @@ multilib_src_configure() {
-DOPENMP_TEST_C_COMPILER="$(type -P "${CHOST}-clang")"
-DOPENMP_TEST_CXX_COMPILER="$(type -P "${CHOST}-clang++")"
)
- cmake-utils_src_configure
+ cmake_src_configure
}
multilib_src_test() {
# respect TMPDIR!
local -x LIT_PRESERVES_TMP=1
- cmake-utils_src_make check-libomp
+ cmake_build check-libomp
}