Diff camd-2.4.6-r1 with a camd-3.0.3
/usr/portage/sci-libs/camd/camd-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 autotools |
|
6 |
inherit cmake-multilib |
|
7 | 7 | |
8 |
Sparse_PV="7.0.0" |
|
9 |
Sparse_P="SuiteSparse-${Sparse_PV}" |
|
8 | 10 |
DESCRIPTION="Library to order a sparse matrix prior to Cholesky factorization" |
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="BSD" |
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="doc" |
|
16 | ||
17 |
BDEPEND="virtual/pkgconfig |
|
18 |
doc? ( virtual/latex-base )" |
|
19 |
DEPEND=">=sci-libs/suitesparseconfig-5.4.0" |
|
20 |
RDEPEND="${DEPEND}" |
|
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="doc test" |
|
18 |
RESTRICT="!test? ( test )" |
|
21 | 19 | |
22 |
PATCHES=( "${FILESDIR}"/${PN}-2.4.6-dash_doc.patch ) |
|
20 |
DEPEND=">=sci-libs/suitesparseconfig-${Sparse_PV}" |
|
21 |
RDEPEND="${DEPEND}" |
|
22 |
BDEPEND="doc? ( virtual/latex-base )" |
|
23 | 23 | |
24 |
src_prepare() { |
|
25 |
default |
|
24 |
S="${WORKDIR}/${Sparse_P}/${PN^^}" |
|
26 | 25 | |
27 |
eautoreconf |
|
26 |
multilib_src_configure() { |
|
27 |
local mycmakeargs=( |
|
28 |
-DNSTATIC=ON |
|
29 |
-DDEMO=$(usex test) |
|
30 |
) |
|
31 |
cmake_src_configure |
|
28 | 32 |
} |
29 | 33 | |
30 |
src_configure() { |
|
31 |
econf \ |
|
32 |
--disable-static \ |
|
33 |
$(use_with doc) |
|
34 |
multilib_src_test() { |
|
35 |
# Run demo files |
|
36 |
local demofiles=( |
|
37 |
camd_demo |
|
38 |
camd_l_demo |
|
39 |
camd_demo2 |
|
40 |
camd_simple |
|
41 |
) |
|
42 |
for i in ${demofiles[@]}; do |
|
43 |
./"${i}" > "${i}.out" || die "failed to run test ${i}" |
|
44 |
diff "${S}/Demo/${i}.out" "${i}.out" || die "failed testing ${i}" |
|
45 |
done |
|
46 |
einfo "All tests passed" |
|
34 | 47 |
} |
35 | 48 | |
36 |
src_install() { |
|
37 |
default |
|
38 | ||
39 |
# no static archives |
|
40 |
find "${D}" -name '*.la' -delete || die |
|
49 |
multilib_src_install() { |
|
50 |
if use doc; then |
|
51 |
pushd "${S}/Doc" |
|
52 |
emake clean |
|
53 |
rm -rf *.pdf |
|
54 |
emake |
|
55 |
popd |
|
56 |
DOCS="${S}/Doc/*.pdf" |
|
57 |
fi |
|
58 |
cmake_src_install |
|
41 | 59 |
} |