mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-08 00:05:33 +03:00
sci-libs/sundials: 7.5.0 version bump
Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru> Part-of: https://github.com/gentoo/gentoo/pull/44751 Closes: https://github.com/gentoo/gentoo/pull/44751 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
ad6220b324
commit
cce26fa35b
@ -4,3 +4,4 @@ DIST sundials-6.5.0.tar.gz 89142911 BLAKE2B 3605686f813928fe55e5aafd409c478cf782
|
||||
DIST sundials-7.0.0.tar.gz 91813927 BLAKE2B 5fab34e674473078812e9a7be43d19ac2595adf7d6f7b71f90375546578eaf42f7e45d1d6297dbedbbc454fb84f741c4e5a4e43766dfc2774ac5dadfcb3295d7 SHA512 4f818124985d6083c6c1a9d34ae2f7d8e6f9a5ca1c1c01e8d00d2b516fdd34eb634c9e601c8a0d1515f198a70d3c1f11118da99a48b4d067464312b02d8265a9
|
||||
DIST sundials-7.1.1.tar.gz 93104639 BLAKE2B 0bd6197c776dffc1621d2212611eb93e69a4691765474eb005759334afbba344cd120fa9d1a5b3fe5bc8cb67cd0eeb210e730fa00aaa6e022490fd5278aa2570 SHA512 5dc1329f8baf94601133e66def9db95e3d62dc954c1f2d52612aea121600b93f188089d361ff0fc7bdf0264daee13b9b062174705dc06ceecbde2eb2121856a2
|
||||
DIST sundials-7.3.0.tar.gz 92369377 BLAKE2B ea29e29c1421adccc09d092a889b47eb097b449e6de74c5412f0ae8bdb2be361b7cca3ff2c068b8e006004a9f92e08914b73f69ba20a5eba30854b42f6e7bcd1 SHA512 74a7fabde28fe0878881f748d7863e751f8dd7303a2cd26c0ae6b81f86953e93cc402da5872bcbecdc01baac960fb18f756349495993a83c06e84cacd0a56d08
|
||||
DIST sundials-7.5.0.tar.gz 92920912 BLAKE2B 8bdf6b24860838b6d979faa736b04436835e8a9f90164c78d8e31713413241f6c7b7b24b090481bc3b35a953dfcbd867b5fd5b00f8ece0aae17919064436aeca SHA512 4ae4417552bbfa53fc49e82061e37c3aa9f2f17bf0d8dbf46e2d85d55a4fbe8fbcd10e4e573ae78b3c4fa25adfaa758e31adbb58a7300bee1174d67dbc2ef58f
|
||||
|
||||
110
sci-libs/sundials/sundials-7.5.0.ebuild
Normal file
110
sci-libs/sundials/sundials-7.5.0.ebuild
Normal file
@ -0,0 +1,110 @@
|
||||
# Copyright 1999-2025 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 ~amd64-linux ~x86-linux"
|
||||
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)
|
||||
-DEXAMPLES_INSTALL=ON
|
||||
-DEXAMPLES_INSTALL_PATH="/usr/share/doc/${PF}/examples"
|
||||
-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
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user