summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2021-10-12 23:55:29 +0200
committerMarek Szuba <marecki@gentoo.org>2021-10-13 00:22:54 +0200
commitdd47d1b3ec10aa6779430d1c1142e64d462ee707 (patch)
tree8faaac1d9df7f14616b90d4b8660799baabf9bea /sci-libs/sundials/sundials-5.8.0.ebuild
parentdev-lang/go: 1.17.2 bump (diff)
downloadgentoo-dd47d1b3ec10aa6779430d1c1142e64d462ee707.tar.gz
gentoo-dd47d1b3ec10aa6779430d1c1142e64d462ee707.tar.bz2
gentoo-dd47d1b3ec10aa6779430d1c1142e64d462ee707.zip
sci-libs/sundials: implement USE=int64
What it already does: * allows changing the index size from 64 (default) to 32 bits * if USE=superlumt is set makes sure the state of USE=int64 in sci-libs/superlu_mt is the same as here, so that the assumption about index-type compatibility made in sunlinsol_superlumt.h is correct * allows test_sunlinsol_superlumt_300_0_1_0 and test_sunlinsol_superlumt_300_1_1_0 to pass *if USE=-int64* What still needs work: * getting the two superlumt tests to pass for USE=int64 - they still fail with "COLAMD failed at line 58 in file get_perm_c.c" Bug: https://bugs.gentoo.org/817680 Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'sci-libs/sundials/sundials-5.8.0.ebuild')
-rw-r--r--sci-libs/sundials/sundials-5.8.0.ebuild5
1 files changed, 3 insertions, 2 deletions
diff --git a/sci-libs/sundials/sundials-5.8.0.ebuild b/sci-libs/sundials/sundials-5.8.0.ebuild
index 894e7ef201c..5b64bd8198a 100644
--- a/sci-libs/sundials/sundials-5.8.0.ebuild
+++ b/sci-libs/sundials/sundials-5.8.0.ebuild
@@ -17,7 +17,7 @@ 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 ~x86 ~amd64-linux ~x86-linux"
-IUSE="doc examples fortran hypre lapack mpi openmp sparse +static-libs superlumt threads"
+IUSE="doc examples fortran hypre +int64 lapack mpi openmp sparse +static-libs superlumt threads"
REQUIRED_USE="
fortran? ( static-libs )
hypre? ( mpi )
@@ -31,7 +31,7 @@ RDEPEND="
virtual/mpi[fortran?]
)
sparse? ( sci-libs/klu )
- superlumt? ( sci-libs/superlu_mt:= )
+ superlumt? ( sci-libs/superlu_mt:=[int64=] )
"
DEPEND="${RDEPEND}"
@@ -69,6 +69,7 @@ src_configure() {
-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"
-DUSE_GENERIC_MATH=ON