aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Junghans <ottxor@gentoo.org>2018-10-04 06:29:34 -0600
committerChristoph Junghans <ottxor@gentoo.org>2018-10-04 06:29:54 -0600
commit07de105b71bd799afbe176d17245cf44d8c742f5 (patch)
treef1e04f24e2b702993b55b55a88d28ddcc18b3e32 /dev-cpp/kokkos/kokkos-2.7.00.ebuild
parentsci-libs/libxc: moved to gx86 (diff)
downloadsci-07de105b71bd799afbe176d17245cf44d8c742f5.tar.gz
sci-07de105b71bd799afbe176d17245cf44d8c742f5.tar.bz2
sci-07de105b71bd799afbe176d17245cf44d8c742f5.zip
dev-cpp/kokkos: initial commit
Package-Manager: Portage-2.3.49, Repoman-2.3.10 Signed-off-by: Christoph Junghans <ottxor@gentoo.org>
Diffstat (limited to 'dev-cpp/kokkos/kokkos-2.7.00.ebuild')
-rw-r--r--dev-cpp/kokkos/kokkos-2.7.00.ebuild47
1 files changed, 47 insertions, 0 deletions
diff --git a/dev-cpp/kokkos/kokkos-2.7.00.ebuild b/dev-cpp/kokkos/kokkos-2.7.00.ebuild
new file mode 100644
index 000000000..f2adfa3d5
--- /dev/null
+++ b/dev-cpp/kokkos/kokkos-2.7.00.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils toolchain-funcs
+
+DESCRIPTION="Kokkos C++ Performance Portability Programming EcoSystem"
+HOMEPAGE="https://github.com/kokkos"
+SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="openmp +threads"
+REQUIRED_USE="?? ( openmp threads )"
+
+DEPEND="
+ sys-apps/hwloc
+ "
+RDEPEND="${DEPEND}"
+BDEPEND=""
+
+pkg_setup() {
+ if [[ ${MERGE_TYPE} != binary ]] && \
+ use openmp && ! tc-has-openmp ; then
+ die "Need an OpenMP capable compiler"
+ fi
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DKOKKOS_ENABLE_HWLOC=ON
+ -DKOKKOS_HWLOC_DIR="${EPREFIX}/usr"
+ -DKOKKOS_ENABLE_OPENMP=$(usex openmp)
+ -DKOKKOS_ENABLE_PTHREAD=$(usex threads)
+ -DKOKKOS_ENABLE_SERIAL=ON
+ -DBUILD_SHARED_LIBS=ON
+ )
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ [[ $(get_libdir) = lib ]] || mv "${ED}"/usr/{lib,"$(get_libdir)"} || die
+}