diff options
author | Matthias Maier <tamiko@gentoo.org> | 2021-09-01 15:19:56 -0500 |
---|---|---|
committer | Matthias Maier <tamiko@gentoo.org> | 2021-09-01 16:49:12 -0500 |
commit | ee9e9104cc280f261504e2506d9be3cea2b73610 (patch) | |
tree | edcc4a0d56e275dcc9b427768468e4e6f1cedab3 /sci-libs | |
parent | app-text/poppler: fix check for Clang (diff) | |
download | gentoo-ee9e9104cc280f261504e2506d9be3cea2b73610.tar.gz gentoo-ee9e9104cc280f261504e2506d9be3cea2b73610.tar.bz2 gentoo-ee9e9104cc280f261504e2506d9be3cea2b73610.zip |
sci-libs/ginkgo: version bump to 1.4.0
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Matthias Maier <tamiko@gentoo.org>
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/ginkgo/Manifest | 1 | ||||
-rw-r--r-- | sci-libs/ginkgo/ginkgo-1.4.0.ebuild | 55 |
2 files changed, 56 insertions, 0 deletions
diff --git a/sci-libs/ginkgo/Manifest b/sci-libs/ginkgo/Manifest index 935ba5909f25..0300862dce68 100644 --- a/sci-libs/ginkgo/Manifest +++ b/sci-libs/ginkgo/Manifest @@ -1 +1,2 @@ DIST ginkgo-1.1.1.tar.gz 11787690 BLAKE2B 75c2c9b2d1e9ba00e3b0a20859af621cdf4aefe7c6e5ec9c7fc34a5368e5bee70d7d2b86ed9b2d9075ab7cc1a3334434fe20329d780f693be45fd7707cdbe27f SHA512 ab8f2d36453f4e60a4e0a13eddc4a137006c1cc6c9c0db00997dd721dfc06f4401109c5a22ba23a838206cff576d5041d06edaed8823006e69f11e360d1dadce +DIST ginkgo-1.4.0.tar.gz 2574052 BLAKE2B 99677d9d75831991cac40312095d32c44bef18cd05b120d80fdb9e64ea6dc15796c09b26f35dc8230db6b55c7be4dd76efd6d1cd8ca13c83e1f3087550db0dca SHA512 9bfcb2c415c7a1a70cf8e49f20adf62d02cab83bb23b6fcecfeaeeb322b2d4e1ad8d8fa6582735073753f9a05eac8688b9bd1ff1d4203957c1a80702d117e807 diff --git a/sci-libs/ginkgo/ginkgo-1.4.0.ebuild b/sci-libs/ginkgo/ginkgo-1.4.0.ebuild new file mode 100644 index 000000000000..56b629f829fc --- /dev/null +++ b/sci-libs/ginkgo/ginkgo-1.4.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake-utils + +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" + SRC_URI="" + 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-utils_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-utils_src_configure +} |