Gentoo Archives: gentoo-commits

From: Christoph Junghans <junghans@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: dev-cpp/kokkos/
Date: Thu, 04 Oct 2018 12:32:43
Message-Id: 1538656194.07de105b71bd799afbe176d17245cf44d8c742f5.junghans@gentoo
1 commit: 07de105b71bd799afbe176d17245cf44d8c742f5
2 Author: Christoph Junghans <ottxor <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 4 12:29:34 2018 +0000
4 Commit: Christoph Junghans <junghans <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 4 12:29:54 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=07de105b
7
8 dev-cpp/kokkos: initial commit
9
10 Package-Manager: Portage-2.3.49, Repoman-2.3.10
11 Signed-off-by: Christoph Junghans <ottxor <AT> gentoo.org>
12
13 dev-cpp/kokkos/kokkos-2.7.00.ebuild | 47 +++++++++++++++++++++++++++++++++++++
14 dev-cpp/kokkos/metadata.xml | 8 +++++++
15 2 files changed, 55 insertions(+)
16
17 diff --git a/dev-cpp/kokkos/kokkos-2.7.00.ebuild b/dev-cpp/kokkos/kokkos-2.7.00.ebuild
18 new file mode 100644
19 index 000000000..f2adfa3d5
20 --- /dev/null
21 +++ b/dev-cpp/kokkos/kokkos-2.7.00.ebuild
22 @@ -0,0 +1,47 @@
23 +# Copyright 1999-2018 Gentoo Foundation
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=6
27 +
28 +inherit cmake-utils toolchain-funcs
29 +
30 +DESCRIPTION="Kokkos C++ Performance Portability Programming EcoSystem"
31 +HOMEPAGE="https://github.com/kokkos"
32 +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
33 +
34 +LICENSE="BSD-3"
35 +SLOT="0"
36 +KEYWORDS="~amd64 ~x86"
37 +IUSE="openmp +threads"
38 +REQUIRED_USE="?? ( openmp threads )"
39 +
40 +DEPEND="
41 + sys-apps/hwloc
42 + "
43 +RDEPEND="${DEPEND}"
44 +BDEPEND=""
45 +
46 +pkg_setup() {
47 + if [[ ${MERGE_TYPE} != binary ]] && \
48 + use openmp && ! tc-has-openmp ; then
49 + die "Need an OpenMP capable compiler"
50 + fi
51 +}
52 +
53 +src_configure() {
54 + local mycmakeargs=(
55 + -DKOKKOS_ENABLE_HWLOC=ON
56 + -DKOKKOS_HWLOC_DIR="${EPREFIX}/usr"
57 + -DKOKKOS_ENABLE_OPENMP=$(usex openmp)
58 + -DKOKKOS_ENABLE_PTHREAD=$(usex threads)
59 + -DKOKKOS_ENABLE_SERIAL=ON
60 + -DBUILD_SHARED_LIBS=ON
61 + )
62 +
63 + cmake-utils_src_configure
64 +}
65 +
66 +src_install() {
67 + cmake-utils_src_install
68 + [[ $(get_libdir) = lib ]] || mv "${ED}"/usr/{lib,"$(get_libdir)"} || die
69 +}
70
71 diff --git a/dev-cpp/kokkos/metadata.xml b/dev-cpp/kokkos/metadata.xml
72 new file mode 100644
73 index 000000000..ef6b5dcd5
74 --- /dev/null
75 +++ b/dev-cpp/kokkos/metadata.xml
76 @@ -0,0 +1,8 @@
77 +<?xml version="1.0" encoding="UTF-8"?>
78 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
79 +<pkgmetadata>
80 + <maintainer type="person">
81 + <email>junghans@g.o</email>
82 + <name>Christoph Junghans</name>
83 + </maintainer>
84 +</pkgmetadata>