public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Jakov Smolić" <jsmolic@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/ginkgo/
Date: Wed,  6 Oct 2021 08:33:24 +0000 (UTC)	[thread overview]
Message-ID: <1633509099.bdbf129e37f7fe222719a3df2341f48d6f576e81.jsmolic@gentoo> (raw)

commit:     bdbf129e37f7fe222719a3df2341f48d6f576e81
Author:     Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
AuthorDate: Wed Oct  6 08:15:27 2021 +0000
Commit:     Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
CommitDate: Wed Oct  6 08:31:39 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bdbf129e

sci-libs/ginkgo: Port to EAPI-8 and cmake.eclass

Closes: https://bugs.gentoo.org/811957
Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org>

 sci-libs/ginkgo/ginkgo-1.4.0-r1.ebuild | 55 ++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)

diff --git a/sci-libs/ginkgo/ginkgo-1.4.0-r1.ebuild b/sci-libs/ginkgo/ginkgo-1.4.0-r1.ebuild
new file mode 100644
index 00000000000..84dae4aa427
--- /dev/null
+++ b/sci-libs/ginkgo/ginkgo-1.4.0-r1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Numerical linear algebra software package"
+HOMEPAGE="https://ginkgo-project.github.io/"
+
+if [[ ${PV} = *9999* ]]; then
+	EGIT_REPO_URI="https://github.com/ginkgo-project/ginkgo"
+	inherit git-r3
+else
+	SRC_URI="https://github.com/${PN}-project/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+	KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="BSD-with-attribution"
+SLOT="0"
+IUSE="+openmp cuda"
+
+RDEPEND="
+	cuda? ( dev-util/nvidia-cuda-sdk )
+"
+DEPEND="${RDEPEND}"
+
+pkg_setup() {
+	if [[ ${MERGE_TYPE} != binary ]] && \
+		use openmp && ! tc-has-openmp ; then
+			die "Need an OpenMP capable compiler"
+	fi
+}
+
+src_prepare() {
+	sed -i \
+		-e "s#\"lib\"#\"$(get_libdir)\"#g" \
+		-e "s#\"lib/#\"$(get_libdir)/#g" \
+		cmake/install_helpers.cmake || die "sed failed"
+
+	cmake_src_prepare
+}
+
+src_configure() {
+
+	local mycmakeargs=(
+		-DGINKGO_DEVEL_TOOLS=OFF
+		-DGINKGO_BUILD_TESTS=OFF
+		-DGINKGO_BUILD_BENCHMARKS=OFF
+		-DGINKGO_BUILD_REFERENCE=ON
+		-DGINKGO_BUILD_OMP=$(usex openmp)
+		-DGINKGO_BUILD_CUDA=$(usex cuda)
+	)
+	cmake_src_configure
+}


             reply	other threads:[~2021-10-06  8:33 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-06  8:33 Jakov Smolić [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-08-05 20:01 [gentoo-commits] repo/gentoo:master commit in: sci-libs/ginkgo/ Eli Schwartz
2025-08-05 20:01 Eli Schwartz
2024-08-01  3:15 Eli Schwartz
2024-08-01  3:15 Eli Schwartz
2023-06-19 18:26 Matthias Maier
2022-11-19  4:48 David Seifert
2022-05-14 21:30 David Seifert
2021-12-21  1:37 Sam James
2021-12-20 10:57 David Seifert
2021-10-06  8:33 Jakov Smolić
2021-09-01 21:49 Matthias Maier
2020-04-30 20:37 Matthias Maier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1633509099.bdbf129e37f7fe222719a3df2341f48d6f576e81.jsmolic@gentoo \
    --to=jsmolic@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox