diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-07-04 08:06:08 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-07-04 08:06:08 +0100 |
commit | 2a8d2f71d1d9963368e0ef3d641d75979a689d12 (patch) | |
tree | 83e283f960ab2ebbc1a042b8ed6c37b78d47b37b /sci-libs/ginkgo | |
parent | 8435c842b9e8fbb2bcc80397ab3aa655000459e2 (diff) |
gentoo auto-resync : 04:07:2024 - 08:06:07
Diffstat (limited to 'sci-libs/ginkgo')
-rw-r--r-- | sci-libs/ginkgo/Manifest | 3 | ||||
-rw-r--r-- | sci-libs/ginkgo/files/ginkgo-1.8.0-disable_automagic_dependencies.patch | 24 | ||||
-rw-r--r-- | sci-libs/ginkgo/ginkgo-1.8.0.ebuild | 61 |
3 files changed, 88 insertions, 0 deletions
diff --git a/sci-libs/ginkgo/Manifest b/sci-libs/ginkgo/Manifest index 3bb9c745fd44..f817a18c8c0e 100644 --- a/sci-libs/ginkgo/Manifest +++ b/sci-libs/ginkgo/Manifest @@ -1,7 +1,10 @@ AUX ginkgo-1.6.0-disable_automagic_dependencies.patch 835 BLAKE2B d496816000e76937b925eef74f6f6003a2ae8a1c9e09f2e39d78b02cd92a267be1f742666f535cbb9146384fa72245fd5cb11268bf632e86c3f263ea6ea8a735 SHA512 b6b1ce4ba90c3a8216133b248055aa6d89242e111336f15c776e66774d0dd3046199cd80d3cbbcae934ab9e1d58ca77f54b73e3c41138770a12c0b771ab6ccd5 AUX ginkgo-1.6.0-fix_type_mismatch.patch 548 BLAKE2B ebe42eab24638703b56198f7181c40db91153cb818f0602f4cf8af35d02963e71daad5b6c865637e13f9979b1cecde1cda6d569d64e66f10eea3b80eae4a4cbd SHA512 26e329f890cb2de6513f3349ffd2a219f7b3a3fbc3aa210e03cf503a5755427d0cd216ef270f474bb3449cc9143ec1ce23694b708f2ca7d6f14ac898fddb3eb6 +AUX ginkgo-1.8.0-disable_automagic_dependencies.patch 784 BLAKE2B 30ae35f0adec6ada2bbaddf6c191840aa1a916f1f4b1f3618e23af6e1e99be38bb9b19a753a2211e3089a90b24e3a0ac82f416b6830545feb63237f1cf3c6ed3 SHA512 c16fe82cb921ec1e3f499aec2b20c513250db7fe5a7032c7a7e7b0f260dcd9a37b79fdfc1d77d2196839a93024cb43efaa3f3cb7776fce5ff3022fe500659695 DIST ginkgo-1.4.0.tar.gz 2574052 BLAKE2B 99677d9d75831991cac40312095d32c44bef18cd05b120d80fdb9e64ea6dc15796c09b26f35dc8230db6b55c7be4dd76efd6d1cd8ca13c83e1f3087550db0dca SHA512 9bfcb2c415c7a1a70cf8e49f20adf62d02cab83bb23b6fcecfeaeeb322b2d4e1ad8d8fa6582735073753f9a05eac8688b9bd1ff1d4203957c1a80702d117e807 DIST ginkgo-1.6.0.tar.gz 12788830 BLAKE2B c452e20eddb3673b5863106d8a8d42aab253cb5a17cf0445194903ebadcffe53ef0df6b5f26e2602e137faaa4a23dddd0b192f3453b4bd440907385fc09d004a SHA512 507a17bc9ad010c235c4ae49ac4bef3f4d5b65b4ea02bfa5cad5ea578fa65d28f564d1faf0a1f5618a6e72d744217f58bdff68c5f1fffc9cfb484800f7f84c50 +DIST ginkgo-1.8.0.tar.gz 13140660 BLAKE2B 4b1800566ec2852b3dd7e58b01ec58e2cab45b55134fdf3d478832435c40b45320dc066d281a07127d1fc42e57c6f3d99440209d2286adc1294e44a1f660ad36 SHA512 9d121a5eec9f5d17d1bd4b8924ebb32985a68e8087addc7385b619e365ed260a40ab73eb7a8a16f46a590d3162a78c9311ff41dd3dc74a9117a61e0445d96c52 EBUILD ginkgo-1.4.0-r3.ebuild 1267 BLAKE2B 509ac83701e30924c09f1ff6b4c56e6c2ebebec69e8debc96fbaafa3110a6cc81437f81ad20d77ef7b9cf6341be87e82bcea20fd0191b6baf5c8f32909eca037 SHA512 1801ec71a30814acd8e521e313a722ce472edffb20d10cd627093360ab62b9ee10d09e27dd4ffdeff0bd8f153e636d9fad45268a262e1619d3def6cd952e7965 EBUILD ginkgo-1.6.0.ebuild 1381 BLAKE2B 303537467c4e8e92c0c0bc92d327eed70174486ed27c01ddc879557c619a0bb9cae4ef252736ac99cc597df3ee1ad98804d5e122b9690fa808b5307a7b46c978 SHA512 c79400621aa3b8db866017e8814d85a9107fe10e7ae620238227216b7baee16bc38e6540d7d907879c1c249b7afb6bd40fd13d58e9312fc391e1884e95e52d58 +EBUILD ginkgo-1.8.0.ebuild 1337 BLAKE2B 57a133ffa7187422448f9d44923a51592f37e18cce870810224e92eae165983e03e4b2c7d91e7dfc10577b336c3d833edef1f4db726edecc64ad2e251bcd4c52 SHA512 34a3467578595494834097d89d7cb7f4b4d02ffa2cbec1d86dd996df17a0f1eddefed3a409d6e2d7f846b6a2dd12fea3e4c91a419ebc398a6ab328d4f640d6f7 MISC metadata.xml 892 BLAKE2B cedbb29c9e43c4b94baff1c5c7f657e9120792fe5faf0b4dab621b17579c6c82ccc3c07ee216bf45cc83b12d44fdcedaaf0736b56611b6abcb114224c2070856 SHA512 2051aabc0746015724bb7bf3f9be42097990b5a7d2657f51f8ed448e2b7f8f6ac27be208d33f133bf1098f2785b4b1b6eac27244e05337e4b80ffdfda10ec664 diff --git a/sci-libs/ginkgo/files/ginkgo-1.8.0-disable_automagic_dependencies.patch b/sci-libs/ginkgo/files/ginkgo-1.8.0-disable_automagic_dependencies.patch new file mode 100644 index 000000000000..c37259e3294a --- /dev/null +++ b/sci-libs/ginkgo/files/ginkgo-1.8.0-disable_automagic_dependencies.patch @@ -0,0 +1,24 @@ +diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt +index 653d52a..c56af59 100644 +--- a/examples/CMakeLists.txt ++++ b/examples/CMakeLists.txt +@@ -41,8 +41,7 @@ if(GINKGO_BUILD_EXTLIB_EXAMPLE) + list(APPEND EXAMPLES_LIST external-lib-interfacing) + endif() + +-find_package(OpenCV QUIET) +-if(OpenCV_FOUND) ++if(FALSE) + list(APPEND EXAMPLES_LIST heat-equation schroedinger-splitting) + else() + message(STATUS "No OpenCV found, disabling examples with video output") +@@ -56,8 +55,7 @@ if(GINKGO_BUILD_MPI) + list(APPEND EXAMPLES_LIST distributed-solver) + endif() + +-find_package(Kokkos 4.1.00 QUIET) +-if(Kokkos_FOUND) ++if(FALSE) + list(APPEND EXAMPLES_LIST kokkos-assembly) + else() + message(STATUS "No Kokkos found, disabling examples with Kokkos assembly.") diff --git a/sci-libs/ginkgo/ginkgo-1.8.0.ebuild b/sci-libs/ginkgo/ginkgo-1.8.0.ebuild new file mode 100644 index 000000000000..5b507b79f030 --- /dev/null +++ b/sci-libs/ginkgo/ginkgo-1.8.0.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2024 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}" + +PATCHES=( + "${FILESDIR}"/${P}-disable_automagic_dependencies.patch +) + +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 +} |