summaryrefslogtreecommitdiff
path: root/dev-cpp
diff options
context:
space:
mode:
authorMatthias Maier <tamiko@gentoo.org>2025-07-15 17:09:10 -0500
committerMatthias Maier <tamiko@gentoo.org>2025-07-15 17:16:56 -0500
commit9d3c495f23da97a84b89aab26c89ab3b0f0f6e82 (patch)
treeb84d6dea39b0731283e88d6b08abc5b7f6d37466 /dev-cpp
parent37e9718c1d0fdafa06f34e1d93380d4dd0e8e695 (diff)
downloadgentoo-9d3c495f23da97a84b89aab26c89ab3b0f0f6e82.tar.gz
gentoo-9d3c495f23da97a84b89aab26c89ab3b0f0f6e82.tar.bz2
gentoo-9d3c495f23da97a84b89aab26c89ab3b0f0f6e82.zip
dev-cpp/kokkos: add 9999
Signed-off-by: Matthias Maier <tamiko@gentoo.org>
Diffstat (limited to 'dev-cpp')
-rw-r--r--dev-cpp/kokkos/kokkos-9999.ebuild64
1 files changed, 64 insertions, 0 deletions
diff --git a/dev-cpp/kokkos/kokkos-9999.ebuild b/dev-cpp/kokkos/kokkos-9999.ebuild
new file mode 100644
index 000000000000..aeea53f0b27f
--- /dev/null
+++ b/dev-cpp/kokkos/kokkos-9999.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake toolchain-funcs
+
+DESCRIPTION="C++ Performance Portability Programming EcoSystem"
+HOMEPAGE="https://github.com/kokkos"
+
+if [[ ${PV} = *9999* ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/kokkos/kokkos.git"
+ SRC_URI=""
+else
+ MY_PV="$(ver_cut 1-2).0$(ver_cut 3)"
+ SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/${MY_PV}.tar.gz -> ${P}.tar.gz"
+ S="${WORKDIR}/${PN}-${MY_PV}"
+ KEYWORDS="~amd64 -x86"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="+openmp test"
+RESTRICT="!test? ( test )"
+
+DEPEND="sys-apps/hwloc:="
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+pkg_pretend() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+pkg_setup() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_INSTALL_INCLUDEDIR=include/kokkos
+ -DKokkos_ENABLE_TESTS=$(usex test)
+ -DKokkos_ENABLE_AGGRESSIVE_VECTORIZATION=ON
+ -DKokkos_ENABLE_SERIAL=ON
+ -DKokkos_ENABLE_HWLOC=ON
+ -DKokkos_HWLOC_DIR="${EPREFIX}/usr"
+ -DKokkos_ENABLE_OPENMP=$(usex openmp)
+ -DBUILD_SHARED_LIBS=ON
+ )
+
+ cmake_src_configure
+}
+
+src_test() {
+ local myctestargs=(
+ # Contains "death tests" which are known/expected(?) to fail
+ # https://github.com/kokkos/kokkos/issues/3033
+ # bug #791514
+ -E "(KokkosCore_UnitTest_OpenMP|KokkosCore_UnitTest_Serial)"
+ )
+
+ cmake_src_test
+}