summaryrefslogtreecommitdiff
path: root/sci-libs
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-08-24 22:17:03 -0500
committerroot <root@alpha.trunkmasters.com>2026-08-24 22:17:03 -0500
commitd1808fe0763b57f61454c5cb4eaa1da0abbc5b9a (patch)
tree51969d1ed4ba3b5e1d6663ca104925c724f2f206 /sci-libs
parentb21f57632c8e0b6828a699831b1360fff52b43b8 (diff)
downloadbaldeagleos-repo-d1808fe0763b57f61454c5cb4eaa1da0abbc5b9a.tar.gz
baldeagleos-repo-d1808fe0763b57f61454c5cb4eaa1da0abbc5b9a.tar.xz
baldeagleos-repo-d1808fe0763b57f61454c5cb4eaa1da0abbc5b9a.zip
Adding metadata
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/matio/matio-1.5.28.ebuild4
-rw-r--r--sci-libs/sundials/Manifest1
-rw-r--r--sci-libs/sundials/sundials-7.8.0.ebuild109
3 files changed, 112 insertions, 2 deletions
diff --git a/sci-libs/matio/matio-1.5.28.ebuild b/sci-libs/matio/matio-1.5.28.ebuild
index 8d9051ddfbe2..1af445aafabb 100644
--- a/sci-libs/matio/matio-1.5.28.ebuild
+++ b/sci-libs/matio/matio-1.5.28.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -11,7 +11,7 @@ SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.gz"
LICENSE="BSD-2"
SLOT="0/13" # subslot = soname version
-KEYWORDS="amd64 ~arm64 ~x86"
+KEYWORDS="amd64 ~arm64 ~riscv ~x86"
IUSE="doc examples hdf5 sparse"
RDEPEND="
diff --git a/sci-libs/sundials/Manifest b/sci-libs/sundials/Manifest
index c29637b81283..a881aff10573 100644
--- a/sci-libs/sundials/Manifest
+++ b/sci-libs/sundials/Manifest
@@ -6,3 +6,4 @@ DIST sundials-7.1.1.tar.gz 93104639 BLAKE2B 0bd6197c776dffc1621d2212611eb93e69a4
DIST sundials-7.3.0.tar.gz 92369377 BLAKE2B ea29e29c1421adccc09d092a889b47eb097b449e6de74c5412f0ae8bdb2be361b7cca3ff2c068b8e006004a9f92e08914b73f69ba20a5eba30854b42f6e7bcd1 SHA512 74a7fabde28fe0878881f748d7863e751f8dd7303a2cd26c0ae6b81f86953e93cc402da5872bcbecdc01baac960fb18f756349495993a83c06e84cacd0a56d08
DIST sundials-7.5.0.tar.gz 92920912 BLAKE2B 8bdf6b24860838b6d979faa736b04436835e8a9f90164c78d8e31713413241f6c7b7b24b090481bc3b35a953dfcbd867b5fd5b00f8ece0aae17919064436aeca SHA512 4ae4417552bbfa53fc49e82061e37c3aa9f2f17bf0d8dbf46e2d85d55a4fbe8fbcd10e4e573ae78b3c4fa25adfaa758e31adbb58a7300bee1174d67dbc2ef58f
DIST sundials-7.7.0.tar.gz 25610795 BLAKE2B 72e3a5cc5b8df85eeadc8a917444eed7ee0849423633dabff43964875adea665f2cb3684006edca6d36acf9786619f4914c96e834866ac4f6c36838e82eb5f73 SHA512 390ad55789c7be3084474c9979bf9e0d7c0823844061e54ce5e3590981897c5b0d5488f63a5251ff489f4bed4e8d862279b0427654c272df67b84cf6ea04fcc8
+DIST sundials-7.8.0.tar.gz 26654455 BLAKE2B f93b40d2a92f7c17302e7545460f6ecb5ce96bd3e58a21d39d1e28cabeb3089fe129c500fc76ff22a5c8b70f1d23cb8fc3fa896e619c6ee338b8e551a2f482b1 SHA512 6b80c534c32f3450ea23d484c2e1eafbde754f7e7244647e20e022cebf79c4b221c0c97e486efcbee71f8798ae4c48eb68d3c3f29a34594a9a4b5bc02d302ef2
diff --git a/sci-libs/sundials/sundials-7.8.0.ebuild b/sci-libs/sundials/sundials-7.8.0.ebuild
new file mode 100644
index 000000000000..77673c595a0f
--- /dev/null
+++ b/sci-libs/sundials/sundials-7.8.0.ebuild
@@ -0,0 +1,109 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CMAKE_MAKEFILE_GENERATOR="emake"
+FORTRAN_NEEDED=fortran
+FORTRAN_STANDARD="77 90 2003"
+# if FFLAGS and FCFLAGS are set then should be equal
+
+inherit cmake flag-o-matic fortran-2 toolchain-funcs
+
+DESCRIPTION="Suite of nonlinear solvers"
+HOMEPAGE="https://computing.llnl.gov/projects/sundials"
+SRC_URI="https://github.com/LLNL/${PN}/releases/download/v${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/$(ver_cut 1)"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
+IUSE="doc fortran hypre +int64 lapack mpi openmp sparse +static-libs superlumt threads"
+REQUIRED_USE="
+ fortran? ( static-libs )
+ hypre? ( mpi )
+"
+
+BDEPEND="virtual/pkgconfig"
+RDEPEND="
+ lapack? ( virtual/lapack )
+ mpi? (
+ sci-libs/hypre:=[fortran?,mpi?]
+ virtual/mpi[fortran?]
+ )
+ sparse? ( sci-libs/klu )
+ superlumt? ( sci-libs/superlu_mt:=[int64=] )
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-7.3.0-fix-license-install-path.patch
+)
+
+pkg_pretend() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+pkg_setup() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+
+ use fortran && fortran-2_pkg_setup
+}
+
+src_prepare() {
+ # bug #707240
+ append-cflags -fcommon
+ use threads && append-ldflags -pthread
+
+ cmake_src_prepare
+}
+
+src_configure() {
+ # undefined reference to `psolve'
+ # undefined reference to `psetup'
+ # https://bugs.gentoo.org/862933
+ # https://github.com/LLNL/sundials/issues/97
+ filter-lto
+
+ mycmakeargs+=(
+ -DBUILD_FORTRAN_MODULE_INTERFACE=$(usex fortran)
+ -DBUILD_SHARED_LIBS=ON
+ -DBUILD_STATIC_LIBS=$(usex static-libs)
+ -DENABLE_HYPRE=$(usex hypre)
+ -DENABLE_KLU=$(usex sparse)
+ -DENABLE_LAPACK=$(usex lapack)
+ -DENABLE_MPI=$(usex mpi)
+ -DENABLE_OPENMP=$(usex openmp)
+ -DENABLE_PTHREAD=$(usex threads)
+ -DENABLE_SUPERLUMT=$(usex superlumt)
+ -DSUNDIALS_INDEX_SIZE="$(usex int64 64 32)"
+ -DSUPERLUMT_INCLUDE_DIR="${EPREFIX}/usr/include/superlu_mt"
+ -DSUPERLUMT_LIBRARY="-lsuperlu_mt"
+ )
+
+ if use fortran; then
+ mycmakeargs+=(
+ -DFortran_INSTALL_MODDIR="${EPREFIX}/usr/$(get_libdir)/fortran"
+ )
+ fi
+
+ if use hypre; then
+ mycmakeargs+=(
+ -DHYPRE_INCLUDE_DIR="${EPREFIX}/usr/include/hypre"
+ -DHYPRE_LIBRARY="${EPREFIX}/usr/$(get_libdir)/libHYPRE.so"
+ )
+ fi
+
+ if use sparse; then
+ mycmakeargs+=(
+ -DKLU_LIBRARY="${EPREFIX}/usr/$(get_libdir)/libklu.so"
+ )
+ fi
+
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+ use doc && dodoc doc/*/*.pdf
+ mv "${ED}"/usr/examples "${ED}"/usr/share/doc/${PF}/ || die
+}