Diff colamd-2.9.6 with a colamd-3.0.3

/usr/portage/sci-libs/colamd/colamd-3.0.3.ebuild 2023-10-09 14:52:35.068368491 +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 cmake-multilib
7

  
8
Sparse_PV="7.0.0"
9
Sparse_P="SuiteSparse-${Sparse_PV}"
6 10
DESCRIPTION="Column approximate minimum degree ordering algorithm"
7 11
HOMEPAGE="https://people.engr.tamu.edu/davis/suitesparse.html"
8
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"
9 13

  
10 14
LICENSE="BSD"
11
SLOT="0"
12
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~mips ~ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~x64-macos"
15
SLOT="0/3"
16
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
17
IUSE="test"
18
RESTRICT="!test? ( test )"
13 19

  
14
BDEPEND="virtual/pkgconfig"
15
DEPEND=">=sci-libs/suitesparseconfig-5.4.0"
20
DEPEND=">=sci-libs/suitesparseconfig-${Sparse_PV}"
16 21
RDEPEND="${DEPEND}"
17 22

  
18
src_configure() {
19
	econf --disable-static
20
}
23
S="${WORKDIR}/${Sparse_P}/${PN^^}"
21 24

  
22
src_install() {
23
	default
25
multilib_src_configure() {
26
	local mycmakeargs=(
27
		-DNSTATIC=ON
28
		-DDEMO=$(usex test)
29
	)
30
	cmake_src_configure
31
}
24 32

  
25
	# no static archives
26
	find "${D}" -name '*.la' -delete || die
33
multilib_src_test() {
34
	# Run demo files
35
	./colamd_example > colamd_example.out || die "failed to run test colamd_example"
36
	diff "${S}"/Demo/colamd_example.out colamd_example.out || die "failed testing colamd_example"
37
	./colamd_l_example > colamd_l_example.out || die "failed to run test colamd_l_example"
38
	diff "${S}"/Demo/colamd_l_example.out colamd_l_example.out || die "failed testing colamd_l_example"
27 39
}
Thank you!