Diff umfpack-5.7.9 with a umfpack-6.1.0

/usr/portage/sci-libs/umfpack/umfpack-6.1.0.ebuild 2023-10-09 14:52:35.104368492 +0300
1 1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6
inherit toolchain-funcs
6
inherit cmake-multilib toolchain-funcs
7 7

  
8
Sparse_PV="7.0.0"
9
Sparse_P="SuiteSparse-${Sparse_PV}"
8 10
DESCRIPTION="Unsymmetric multifrontal sparse LU factorization library"
9 11
HOMEPAGE="https://people.engr.tamu.edu/davis/suitesparse.html"
10
SRC_URI="http://202.36.178.9/sage/${P}.tar.bz2"
12
SRC_URI="https://github.com/DrTimothyAldenDavis/SuiteSparse/archive/refs/tags/v${Sparse_PV}.tar.gz -> ${Sparse_P}.gh.tar.gz"
11 13

  
12 14
LICENSE="GPL-2+"
13
SLOT="0"
14
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~mips ~ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~x64-macos"
15
IUSE="+cholmod doc"
16

  
17
BDEPEND="virtual/pkgconfig
18
	doc? ( virtual/latex-base )"
19
DEPEND="
20
	sci-libs/amd
21
	>=sci-libs/suitesparseconfig-5.4.0
22
	virtual/blas
23
	cholmod? ( sci-libs/cholmod )"
15
SLOT="0/6"
16
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
17
IUSE="doc openmp test"
18
RESTRICT="!test? ( test )"
19

  
20
DEPEND=">=sci-libs/suitesparseconfig-${Sparse_PV}
21
	>=sci-libs/amd-3.0.3
22
	>=sci-libs/cholmod-4.0.3[openmp=]
23
	virtual/blas"
24 24
RDEPEND="${DEPEND}"
25
BDEPEND="doc? ( virtual/latex-base )"
25 26

  
26
src_configure() {
27
	econf \
28
		--disable-static \
29
		--with-blas="$($(tc-getPKG_CONFIG) --libs blas)" \
30
		$(use_with doc) \
31
		$(use_with cholmod)
27
S="${WORKDIR}/${Sparse_P}/${PN^^}"
28

  
29
pkg_pretend() {
30
	[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
32 31
}
33 32

  
34
src_compile() {
35
	use doc && export VARTEXFONTS="${T}/fonts"
36
	default
33
pkg_setup() {
34
	[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
37 35
}
38 36

  
39
src_install() {
40
	default
37
multilib_src_configure() {
38
	# Fortran is only used to compile additional demo programs that can be tested.
39
	local mycmakeargs=(
40
		-DNSTATIC=ON
41
		-DNOPENMP=$(usex openmp OFF ON)
42
		-DNFORTRAN=ON
43
		-DDEMO=$(usex test)
44
	)
45
	cmake_src_configure
46
}
41 47

  
42
	# no static archives
43
	find "${D}" -name '*.la' -delete || die
48
multilib_src_test() {
49
	# Run simple demo first
50
	# Other demo files have issues making them unsuitable for testing
51
	./umfpack_simple || die "failed testing umfpack_simple"
52
}
53
multilib_src_install() {
54
	if use doc; then
55
		pushd "${S}/Doc"
56
		rm -rf *.pdf
57
		emake
58
		popd
59
		DOCS="${S}/Doc/*.pdf"
60
	fi
61
	cmake_src_install
44 62
}
Thank you!