diff --git a/sci-libs/ccolamd/Manifest b/sci-libs/ccolamd/Manifest index 2fc03c4c6a013..0f38db22e9eb9 100644 --- a/sci-libs/ccolamd/Manifest +++ b/sci-libs/ccolamd/Manifest @@ -1,2 +1,3 @@ DIST SuiteSparse-7.0.0.gh.tar.gz 64884962 BLAKE2B 06c6cf54ffae188f5179e0cd45523700448d8999b44d6b1aeb3dfb99ccf34a570f6aff600988a144c68a4a2d8f41e32f7145e09349aed3bd889501ea031c8340 SHA512 50b1cd7bab6e4c063984162ed803fd13b69df7f67efe8ce7af15eace6b0ccd1669b6e57daa59511fd9531a847433cda49c1f52bfff234031af0d79e7fbd6423e +DIST SuiteSparse-7.12.2.gh.tar.gz 95337908 BLAKE2B df279ccc572887ecda2809551eefd34d0780b9cfef5c257c6c9f218dbcc5140f44e148a8199ebe899984561bb454b1f202606f8af290d71f5caeef4c008659c4 SHA512 0a7d070c90ef0a55c3ed821edf6567f4a84d5615250898b8fbacad19e1cf53dba199c38369c771465b4149ba5501bf0c1ae1352f29d0fb462fd10ca90e486cfa DIST ccolamd-2.9.6.tar.bz2 305744 BLAKE2B 0d741ead328a1e888715672ddb617cc96a559f46f2379e1d7792b70868dd290de19b3047e3ed4dd2711084c9afc523d18ecb375aa4ee8a4a12950cee08f238b8 SHA512 cf6f210d26ddb1be454cac377a773b73b75261a74e1e3985565f57f45659b1c11b747829c5bbe99c4bc3e8b364d7b2b3c109e00f6d7e8e41afd713312ebf103c diff --git a/sci-libs/ccolamd/ccolamd-3.3.5.ebuild b/sci-libs/ccolamd/ccolamd-3.3.5.ebuild new file mode 100644 index 0000000000000..e1a16ad9a78c5 --- /dev/null +++ b/sci-libs/ccolamd/ccolamd-3.3.5.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +Sparse_PV="7.12.2" +Sparse_P="SuiteSparse-${Sparse_PV}" +DESCRIPTION="Constrained Column approximate minimum degree ordering algorithm" +HOMEPAGE="https://people.engr.tamu.edu/davis/suitesparse.html" +SRC_URI="https://github.com/DrTimothyAldenDavis/SuiteSparse/archive/refs/tags/v${Sparse_PV}.tar.gz -> ${Sparse_P}.gh.tar.gz" + +S="${WORKDIR}/${Sparse_P}/${PN^^}" +LICENSE="BSD" +SLOT="0/3" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND=">=sci-libs/suitesparseconfig-${Sparse_PV}" +RDEPEND="${DEPEND}" + +src_configure() { + # Define SUITESPARSE_INCLUDEDIR_POSTFIX to "" otherwise it take + # the value suitesparse, and the include directory would be set to + # /usr/include/suitesparse + # This need to be set in all suitesparse ebuilds. + local mycmakeargs=( + -DBUILD_STATIC_LIBS=OFF + -DSUITESPARSE_DEMOS=$(usex test) + -DSUITESPARSE_INCLUDEDIR_POSTFIX="" + ) + cmake_src_configure +} + +src_test() { + # Because we are not using cmake_src_test, + # we have to manually go to BUILD_DIR + cd "${BUILD_DIR}" || die + # Run demo files + ./ccolamd_example > ccolamd_example.out || die "ccolamd_example failed to run" + diff "${S}"/Demo/ccolamd_example.out ccolamd_example.out || die "failed testing ccolamd_example" + ./ccolamd_l_example > ccolamd_l_example.out || die die "ccolamd_l_example failed to run" + diff "${S}"/Demo/ccolamd_l_example.out ccolamd_l_example.out || die "failed testing ccolamd_l_example" + + einfo "All tests passed" +}