Diff cxsparse-3.2.0 with a cxsparse-4.0.3

/usr/portage/sci-libs/cxsparse/cxsparse-4.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 multilib-minimal
6
inherit cmake-multilib
7 7

  
8
Sparse_PV="7.0.0"
9
Sparse_P="SuiteSparse-${Sparse_PV}"
8 10
DESCRIPTION="Extended sparse matrix package"
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
LICENSE="LGPL-2.1+"
13
SLOT="0"
14
KEYWORDS="amd64 arm arm64 ~hppa ~ppc ppc64 ~riscv sparc ~x86 ~amd64-linux ~x86-linux"
14
LICENSE="LGPL-2.1"
15
SLOT="0/4"
16
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
17
IUSE="test"
18
RESTRICT="!test? ( test )"
15 19

  
16
RDEPEND=">=sci-libs/suitesparseconfig-5.4.0[${MULTILIB_USEDEP}]"
17
DEPEND="${RDEPEND}"
18
BDEPEND="virtual/pkgconfig"
20
DEPEND=">=sci-libs/suitesparseconfig-${Sparse_PV}"
21
RDEPEND="${DEPEND}"
19 22

  
20
PATCHES=( "${FILESDIR}"/${PN}-3.2.0-header.patch )
23
S="${WORKDIR}/${Sparse_P}/CXSparse"
21 24

  
22 25
multilib_src_configure() {
23
	ECONF_SOURCE="${S}" econf --disable-static
26
	local mycmakeargs=(
27
		-DNSTATIC=ON
28
		-DDEMO=$(usex test)
29
	)
30
	cmake_src_configure
24 31
}
25 32

  
26
multilib_src_install_all() {
27
	einstalldocs
28

  
29
	# no static archives
30
	find "${ED}" -name '*.la' -delete || die
33
multilib_src_test() {
34
	# Programs assume that they can access the Matrix folder in ${S}
35
	ln -s "${S}/Matrix" || die "cannot link to the Matrix folder"
36
	# Run demo files
37
	./cs_idemo < Matrix/t2 || die "failed testing"
38
	./cs_ldemo < Matrix/t2 || die "failed testing"
39
	./cs_demo1 < Matrix/t1 || die "failed testing"
40
	./cs_demo2 < Matrix/t1 || die "failed testing"
41
	./cs_demo2 < Matrix/fs_183_1 || die "failed testing"
42
	./cs_demo2 < Matrix/west0067 || die "failed testing"
43
	./cs_demo2 < Matrix/lp_afiro || die "failed testing"
44
	./cs_demo2 < Matrix/ash219 || die "failed testing"
45
	./cs_demo2 < Matrix/mbeacxc || die "failed testing"
46
	./cs_demo2 < Matrix/bcsstk01 || die "failed testing"
47
	./cs_demo3 < Matrix/bcsstk01 || die "failed testing"
48
	./cs_demo2 < Matrix/bcsstk16 || die "failed testing"
49
	./cs_demo3 < Matrix/bcsstk16 || die "failed testing"
50
	./cs_di_demo1 < Matrix/t1 || die "failed testing"
51
	./cs_di_demo2 < Matrix/t1 || die "failed testing"
52
	./cs_di_demo2 < Matrix/fs_183_1 || die "failed testing"
53
	./cs_di_demo2 < Matrix/west0067 || die "failed testing"
54
	./cs_di_demo2 < Matrix/lp_afiro || die "failed testing"
55
	./cs_di_demo2 < Matrix/ash219 || die "failed testing"
56
	./cs_di_demo2 < Matrix/mbeacxc || die "failed testing"
57
	./cs_di_demo2 < Matrix/bcsstk01 || die "failed testing"
58
	./cs_di_demo3 < Matrix/bcsstk01 || die "failed testing"
59
	./cs_di_demo2 < Matrix/bcsstk16 || die "failed testing"
60
	./cs_di_demo3 < Matrix/bcsstk16 || die "failed testing"
61
	./cs_dl_demo1 < Matrix/t1 || die "failed testing"
62
	./cs_dl_demo2 < Matrix/t1 || die "failed testing"
63
	./cs_dl_demo2 < Matrix/fs_183_1 || die "failed testing"
64
	./cs_dl_demo2 < Matrix/west0067 || die "failed testing"
65
	./cs_dl_demo2 < Matrix/lp_afiro || die "failed testing"
66
	./cs_dl_demo2 < Matrix/ash219 || die "failed testing"
67
	./cs_dl_demo2 < Matrix/mbeacxc || die "failed testing"
68
	./cs_dl_demo2 < Matrix/bcsstk01 || die "failed testing"
69
	./cs_dl_demo3 < Matrix/bcsstk01 || die "failed testing"
70
	./cs_dl_demo2 < Matrix/bcsstk16 || die "failed testing"
71
	./cs_dl_demo3 < Matrix/bcsstk16 || die "failed testing"
72
	./cs_ci_demo1 < Matrix/t2 || die "failed testing"
73
	./cs_ci_demo2 < Matrix/t2 || die "failed testing"
74
	./cs_ci_demo2 < Matrix/t3 || die "failed testing"
75
	./cs_ci_demo2 < Matrix/t4 || die "failed testing"
76
	./cs_ci_demo2 < Matrix/c_west0067 || die "failed testing"
77
	./cs_ci_demo2 < Matrix/c_mbeacxc || die "failed testing"
78
	./cs_ci_demo2 < Matrix/young1c || die "failed testing"
79
	./cs_ci_demo2 < Matrix/qc324 || die "failed testing"
80
	./cs_ci_demo2 < Matrix/neumann || die "failed testing"
81
	./cs_ci_demo2 < Matrix/c4 || die "failed testing"
82
	./cs_ci_demo3 < Matrix/c4 || die "failed testing"
83
	./cs_ci_demo2 < Matrix/mhd1280b || die "failed testing"
84
	./cs_ci_demo3 < Matrix/mhd1280b || die "failed testing"
85
	./cs_cl_demo1 < Matrix/t2 || die "failed testing"
86
	./cs_cl_demo2 < Matrix/t2 || die "failed testing"
87
	./cs_cl_demo2 < Matrix/t3 || die "failed testing"
88
	./cs_cl_demo2 < Matrix/t4 || die "failed testing"
89
	./cs_cl_demo2 < Matrix/c_west0067 || die "failed testing"
90
	./cs_cl_demo2 < Matrix/c_mbeacxc || die "failed testing"
91
	./cs_cl_demo2 < Matrix/young1c || die "failed testing"
92
	./cs_cl_demo2 < Matrix/qc324 || die "failed testing"
93
	./cs_cl_demo2 < Matrix/neumann || die "failed testing"
94
	./cs_cl_demo2 < Matrix/c4 || die "failed testing"
95
	./cs_cl_demo3 < Matrix/c4 || die "failed testing"
96
	./cs_cl_demo2 < Matrix/mhd1280b || die "failed testing"
97
	./cs_cl_demo3 < Matrix/mhd1280b || die "failed testing"
31 98
}
Thank you!