diff options
author | Matthias Maier <tamiko@gentoo.org> | 2023-06-19 12:05:08 -0500 |
---|---|---|
committer | Matthias Maier <tamiko@gentoo.org> | 2023-06-19 13:26:30 -0500 |
commit | fe24aa961fb7bc82373b4609fec7ccacc0c4145a (patch) | |
tree | ecb4c5ae43379114b31168946255e4ff3403df99 /sci-libs/ginkgo | |
parent | sci-mathematics/cgal: add 5.5.2 (diff) | |
download | gentoo-fe24aa961fb7bc82373b4609fec7ccacc0c4145a.tar.gz gentoo-fe24aa961fb7bc82373b4609fec7ccacc0c4145a.tar.bz2 gentoo-fe24aa961fb7bc82373b4609fec7ccacc0c4145a.zip |
sci-libs/ginkgo: add 1.6.0
Signed-off-by: Matthias Maier <tamiko@gentoo.org>
Diffstat (limited to 'sci-libs/ginkgo')
-rw-r--r-- | sci-libs/ginkgo/Manifest | 1 | ||||
-rw-r--r-- | sci-libs/ginkgo/ginkgo-1.6.0.ebuild | 57 |
2 files changed, 58 insertions, 0 deletions
diff --git a/sci-libs/ginkgo/Manifest b/sci-libs/ginkgo/Manifest index 4a45be486a9b..85fa14f2e7ef 100644 --- a/sci-libs/ginkgo/Manifest +++ b/sci-libs/ginkgo/Manifest @@ -1 +1,2 @@ DIST ginkgo-1.4.0.tar.gz 2574052 BLAKE2B 99677d9d75831991cac40312095d32c44bef18cd05b120d80fdb9e64ea6dc15796c09b26f35dc8230db6b55c7be4dd76efd6d1cd8ca13c83e1f3087550db0dca SHA512 9bfcb2c415c7a1a70cf8e49f20adf62d02cab83bb23b6fcecfeaeeb322b2d4e1ad8d8fa6582735073753f9a05eac8688b9bd1ff1d4203957c1a80702d117e807 +DIST ginkgo-1.6.0.tar.gz 12788830 BLAKE2B c452e20eddb3673b5863106d8a8d42aab253cb5a17cf0445194903ebadcffe53ef0df6b5f26e2602e137faaa4a23dddd0b192f3453b4bd440907385fc09d004a SHA512 507a17bc9ad010c235c4ae49ac4bef3f4d5b65b4ea02bfa5cad5ea578fa65d28f564d1faf0a1f5618a6e72d744217f58bdff68c5f1fffc9cfb484800f7f84c50 diff --git a/sci-libs/ginkgo/ginkgo-1.6.0.ebuild b/sci-libs/ginkgo/ginkgo-1.6.0.ebuild new file mode 100644 index 000000000000..00081e5e00a7 --- /dev/null +++ b/sci-libs/ginkgo/ginkgo-1.6.0.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake toolchain-funcs + +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="cuda hwloc +openmp" + +RDEPEND=" + cuda? ( dev-util/nvidia-cuda-toolkit ) + hwloc? ( sys-apps/hwloc:= ) +" +DEPEND="${RDEPEND}" + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +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_CUDA=$(usex cuda) + -DGINKGO_BUILD_HWLOC=$(usex hwloc) + -DGINKGO_BUILD_OMP=$(usex openmp) + ) + cmake_src_configure +} |