Diff ccolamd-2.9.6 with a ccolamd-3.0.3
/usr/portage/sci-libs/ccolamd/ccolamd-3.0.3.ebuild 2023-10-09 14:52:35.060368491 +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="Constrained 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" |
|
20 |
DEPEND=">=sci-libs/suitesparseconfig-7.0.0" |
|
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 |
./ccolamd_example > ccolamd_example.out || die "failed to run test ccolamd_example" |
|
36 |
diff "${S}"/Demo/ccolamd_example.out ccolamd_example.out || die "failed testing ccolamd_example" |
|
37 |
./ccolamd_l_example > ccolamd_l_example.out || die "failed to run test ccolamd_l_example" |
|
38 |
diff "${S}"/Demo/ccolamd_l_example.out ccolamd_l_example.out || die "failed testing ccolamd_l_example" |
|
27 | 39 |
} |