commit:     879bfb5cececf0fb2ecbf40648ac6ae2a1cec29b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 27 08:35:16 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Apr 27 12:27:03 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=879bfb5c

sys-libs/libomp: Modernize

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

 sys-libs/libomp/libomp-15.0.0.9999.ebuild | 26 +++++++++++++++++---------
 1 file changed, 17 insertions(+), 9 deletions(-)

diff --git a/sys-libs/libomp/libomp-15.0.0.9999.ebuild 
b/sys-libs/libomp/libomp-15.0.0.9999.ebuild
index dbee89f1997c..52f9f5285f11 100644
--- a/sys-libs/libomp/libomp-15.0.0.9999.ebuild
+++ b/sys-libs/libomp/libomp-15.0.0.9999.ebuild
@@ -1,7 +1,7 @@
 # Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
 CMAKE_ECLASS=cmake
 PYTHON_COMPAT=( python3_{8..10} )
@@ -13,13 +13,16 @@ HOMEPAGE="https://openmp.llvm.org";
 LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )"
 SLOT="0"
 KEYWORDS=""
-IUSE="cuda debug hwloc offload ompt test
-       llvm_targets_AMDGPU llvm_targets_NVPTX"
+IUSE="
+       cuda debug hwloc offload ompt test
+       llvm_targets_AMDGPU llvm_targets_NVPTX
+"
+RESTRICT="!test? ( test )"
 # CUDA works only with the x86_64 ABI
 REQUIRED_USE="
        cuda? ( llvm_targets_NVPTX )
-       offload? ( cuda? ( abi_x86_64 ) )"
-RESTRICT="!test? ( test )"
+       offload? ( cuda? ( abi_x86_64 ) )
+"
 
 RDEPEND="
        hwloc? ( >=sys-apps/hwloc-2.5:0=[${MULTILIB_USEDEP}] )
@@ -28,13 +31,17 @@ RDEPEND="
                dev-libs/libffi:=[${MULTILIB_USEDEP}]
                ~sys-devel/llvm-${PV}[${MULTILIB_USEDEP}]
                cuda? ( dev-util/nvidia-cuda-toolkit:= )
-       )"
+       )
+"
 # tests:
 # - dev-python/lit provides the test runner
 # - sys-devel/llvm provide test utils (e.g. FileCheck)
 # - sys-devel/clang provides the compiler to run tests
-DEPEND="${RDEPEND}"
-BDEPEND="dev-lang/perl
+DEPEND="
+       ${RDEPEND}
+"
+BDEPEND="
+       dev-lang/perl
        offload? (
                llvm_targets_AMDGPU? ( sys-devel/clang )
                llvm_targets_NVPTX? ( sys-devel/clang )
@@ -43,7 +50,8 @@ BDEPEND="dev-lang/perl
        test? (
                $(python_gen_any_dep 'dev-python/lit[${PYTHON_USEDEP}]')
                sys-devel/clang
-       )"
+       )
+"
 
 LLVM_COMPONENTS=( openmp llvm/include )
 llvm.org_set_globals

Reply via email to