Сравнение amd-2.4.6-r1 с amd-3.0.3
| /usr/portage/sci-libs/amd/amd-3.0.3.ebuild 2024-12-25 14:59:52.707270181 +0300 | ||
|---|---|---|
| 1 |
# Copyright 1999-2024 Gentoo Authors |
|
| 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 |
FORTRAN_NEEDED=fortran |
|
| 7 |
inherit autotools fortran-2 |
|
| 6 |
FORTRAN_NEEDED="fortran" |
|
| 7 |
inherit cmake-multilib fortran-2 |
|
| 8 | 8 | |
| 9 |
Sparse_PV="7.0.0" |
|
| 10 |
Sparse_P="SuiteSparse-${Sparse_PV}"
|
|
| 9 | 11 |
DESCRIPTION="Library to order a sparse matrix prior to Cholesky factorization" |
| 10 | 12 |
HOMEPAGE="https://people.engr.tamu.edu/davis/suitesparse.html" |
| 11 |
SRC_URI="http://202.36.178.9/sage/${P}.tar.bz2"
|
|
| 13 |
SRC_URI="https://github.com/DrTimothyAldenDavis/SuiteSparse/archive/refs/tags/v${Sparse_PV}.tar.gz -> ${Sparse_P}.gh.tar.gz"
|
|
| 12 | 14 | |
| 13 | 15 |
LICENSE="BSD" |
| 14 |
SLOT="0" |
|
| 15 |
KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~x64-macos" |
|
| 16 |
IUSE="doc fortran" |
|
| 17 | ||
| 18 |
BDEPEND="virtual/pkgconfig |
|
| 19 |
doc? ( virtual/latex-base )" |
|
| 20 |
DEPEND=">=sci-libs/suitesparseconfig-5.4.0" |
|
| 21 |
RDEPEND="${DEPEND}"
|
|
| 16 |
SLOT="0/3" |
|
| 17 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" |
|
| 18 |
IUSE="doc fortran test" |
|
| 19 |
RESTRICT="!test? ( test )" |
|
| 22 | 20 | |
| 23 |
PATCHES=( "${FILESDIR}"/${PN}-2.4.6-dash_doc.patch )
|
|
| 21 |
DEPEND=">=sci-libs/suitesparseconfig-${Sparse_PV}"
|
|
| 22 |
RDEPEND="${DEPEND}"
|
|
| 23 |
BDEPEND="doc? ( virtual/latex-base )" |
|
| 24 | 24 | |
| 25 |
src_prepare() {
|
|
| 26 |
default |
|
| 25 |
S="${WORKDIR}/${Sparse_P}/${PN^^}"
|
|
| 27 | 26 | |
| 28 |
eautoreconf |
|
| 27 |
multilib_src_configure() {
|
|
| 28 |
local mycmakeargs=( |
|
| 29 |
-DNSTATIC=ON |
|
| 30 |
-DNFORTRAN=$(usex fortran OFF ON) |
|
| 31 |
-DDEMO=$(usex test) |
|
| 32 |
) |
|
| 33 |
cmake_src_configure |
|
| 29 | 34 |
} |
| 30 | 35 | |
| 31 |
src_configure() {
|
|
| 32 |
econf \ |
|
| 33 |
--disable-static \ |
|
| 34 |
$(use_enable fortran) \ |
|
| 35 |
$(use_with doc) |
|
| 36 |
multilib_src_test() {
|
|
| 37 |
# Run demo files |
|
| 38 |
local demofiles=( |
|
| 39 |
amd_demo |
|
| 40 |
amd_l_demo |
|
| 41 |
amd_demo2 |
|
| 42 |
amd_simple |
|
| 43 |
) |
|
| 44 |
if use fortran; then |
|
| 45 |
demofiles+=( |
|
| 46 |
amd_f77simple |
|
| 47 |
amd_f77demo |
|
| 48 |
) |
|
| 49 |
fi |
|
| 50 |
for i in ${demofiles[@]}; do
|
|
| 51 |
./"${i}" > "${i}.out" || die "failed to run test ${i}"
|
|
| 52 |
diff "${S}/Demo/${i}.out" "${i}.out" || die "failed testing ${i}"
|
|
| 53 |
done |
|
| 54 |
einfo "All tests passed" |
|
| 36 | 55 |
} |
| 37 | 56 | |
| 38 |
src_install() {
|
|
| 39 |
default |
|
| 40 | ||
| 41 |
# no static archives |
|
| 42 |
find "${D}" -name '*.la' -delete || die
|
|
| 57 |
multilib_src_install() {
|
|
| 58 |
if use doc; then |
|
| 59 |
pushd "${S}/Doc"
|
|
| 60 |
emake clean |
|
| 61 |
rm -rf *.pdf |
|
| 62 |
emake |
|
| 63 |
popd |
|
| 64 |
DOCS="${S}/Doc/*.pdf"
|
|
| 65 |
fi |
|
| 66 |
cmake_src_install |
|
| 43 | 67 |
} |