Diff sundials-6.5.0 with a sundials-7.3.0

/usr/portage/sci-libs/sundials/sundials-7.3.0.ebuild 2025-12-22 20:18:06.970888974 +0300
1
# Copyright 1999-2026 Gentoo Authors
1
# Copyright 1999-2025 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
......
17 17
LICENSE="BSD"
18 18
SLOT="0/$(ver_cut 1)"
19 19
KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
20
IUSE="doc examples fortran hypre +int64 lapack mpi openmp sparse +static-libs superlumt threads"
20
IUSE="doc fortran hypre +int64 lapack mpi openmp sparse +static-libs superlumt threads"
21 21
REQUIRED_USE="
22
	fortran? ( int64 static-libs )
22
	fortran? ( static-libs )
23 23
	hypre? ( mpi )
24 24
"
25 25

  
......
36 36
DEPEND="${RDEPEND}"
37 37

  
38 38
PATCHES=(
39
	"${FILESDIR}"/${PN}-5.8.0-fix-license-install-path.patch
39
	"${FILESDIR}"/${P}-fix-license-install-path.patch
40 40
)
41 41

  
42 42
pkg_pretend() {
......
80 80
		-DSUNDIALS_INDEX_SIZE="$(usex int64 64 32)"
81 81
		-DSUPERLUMT_INCLUDE_DIR="${EPREFIX}/usr/include/superlu_mt"
82 82
		-DSUPERLUMT_LIBRARY="-lsuperlu_mt"
83
		-DUSE_GENERIC_MATH=ON
84 83
	)
85 84

  
86
	if use examples; then
87
		mycmakeargs+=(
88
			-DEXAMPLES_ENABLE_C=ON
89
			-DEXAMPLES_ENABLE_CXX=ON
90
		)
91
		if use fortran; then
92
			mycmakeargs+=(
93
				-DEXAMPLES_ENABLE_F2003=ON
94
			)
95
		fi
96
	fi
97

  
98 85
	if use fortran; then
99 86
		mycmakeargs+=(
100 87
			-DFortran_INSTALL_MODDIR="${EPREFIX}/usr/$(get_libdir)/fortran"
......
117 104
	cmake_src_configure
118 105
}
119 106

  
120
src_compile() {
121
	if use fortran; then
122
		cmake_src_compile -j1
123
	else
124
		cmake_src_compile
125
	fi
126
}
127

  
128 107
src_install() {
129 108
	cmake_src_install
130 109
	use doc && dodoc doc/*/*.pdf
Thank you!