diff options
Diffstat (limited to 'sci-libs/cxsparse')
-rw-r--r-- | sci-libs/cxsparse/Manifest | 4 | ||||
-rw-r--r-- | sci-libs/cxsparse/cxsparse-4.0.3.ebuild | 98 | ||||
-rw-r--r-- | sci-libs/cxsparse/metadata.xml | 3 |
3 files changed, 104 insertions, 1 deletions
diff --git a/sci-libs/cxsparse/Manifest b/sci-libs/cxsparse/Manifest index 998a76a02f46..66381e5db75e 100644 --- a/sci-libs/cxsparse/Manifest +++ b/sci-libs/cxsparse/Manifest @@ -1,4 +1,6 @@ AUX cxsparse-3.2.0-header.patch 531 BLAKE2B 7b8738c26a48aa01541db4978cc195f093da3e5d81536ff5819334ac847cd5d5a0e7ea5d2b1891183015ff449d98ba96ad360c4097369a70adab72a5419c471f SHA512 2340a350af044bcded3a592fde76ee885c02a3047772a02d91bfa0b43e7b6a04d7102893ba8d3e2394435fa6194d767812a3896359581c4d789890d2d35a78e0 +DIST SuiteSparse-7.0.0.gh.tar.gz 64884962 BLAKE2B 06c6cf54ffae188f5179e0cd45523700448d8999b44d6b1aeb3dfb99ccf34a570f6aff600988a144c68a4a2d8f41e32f7145e09349aed3bd889501ea031c8340 SHA512 50b1cd7bab6e4c063984162ed803fd13b69df7f67efe8ce7af15eace6b0ccd1669b6e57daa59511fd9531a847433cda49c1f52bfff234031af0d79e7fbd6423e DIST cxsparse-3.2.0.tar.bz2 2080196 BLAKE2B 9b89469c45e518077c4348ad3efd8d89d248e4c039057c0286ee44b493ab595075894d01530cbfbe845b91ef5e43cfbfdd102721cfeefe943a1cb4bc5f171843 SHA512 9931dac5b319b61a39ccb5f34309acb4240602b5f55d029c790ed0b7319a373cb925c4b83994526af4bc5b19b88c723f04581068d1fc80960a290c9d6d1e1aef EBUILD cxsparse-3.2.0.ebuild 762 BLAKE2B 98860b77754debbfab54d454f26c7a8d4e9911b36428d4a05c7ce23886dc3aa3ba1148756fabf26f8dadef13046f3cf0354804e7f11020f85ca1ef21bb722b01 SHA512 4425f57939ca17a06644de84878f5f7217d523d413e3fda8a3b14f845e942bd4bfa137329cc2f181a81c5d9b5dcf1bbae61f86526394c197814d5e8b06139c21 -MISC metadata.xml 450 BLAKE2B 06f645dd4abefdc2442fd56a7b4ba79ad4251e39e58938b53f848c68736e7cad82f7d1ca268106034e66ceb900dcd1fb91ba110a19ee08eca5409e19e37e104a SHA512 ba5b18e97e038f65590e260a0a5fbf3e933736a316b2ad764e07d2b6acb0bc2a010cfdd7f132e303f3abef5f853f9f62cd8653d5114e6e7dd159b0aff05a37f5 +EBUILD cxsparse-4.0.3.ebuild 4283 BLAKE2B 1e4e8a46c24557ab82d9e7227064b441540a18b109187778458e7ba48e454980d98d7341cc18c35a3c1d278d5438364db351198792d893a3ac0437cc7b7fe504 SHA512 43e32de1ae78302e8d98327d3123c8bc6fa88517a2714895f3b545f35850b6ca737b1ccaaf1145d8f5b171af6995daab6da9b6d05682c759494822cee90d8bb6 +MISC metadata.xml 546 BLAKE2B c6de5532a26cd33be3219024ad49e7593c92013139de7f354a8f896c7f67c1791d8c6a3ba880dacf5dbb71f80b6e8cfbee5bde09958e7de01618ced4ecc7e4e1 SHA512 c5a292e738e56ef3e7f16e04dd922b566941cc1f119b04818b481e7debfe690718363b0fab16e65b3484dbe8e7a5a1a7eb5c0a12c65866a04dd066a8a9e89ddb diff --git a/sci-libs/cxsparse/cxsparse-4.0.3.ebuild b/sci-libs/cxsparse/cxsparse-4.0.3.ebuild new file mode 100644 index 000000000000..afd86a8e149e --- /dev/null +++ b/sci-libs/cxsparse/cxsparse-4.0.3.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake-multilib + +Sparse_PV="7.0.0" +Sparse_P="SuiteSparse-${Sparse_PV}" +DESCRIPTION="Extended sparse matrix package" +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" + +LICENSE="LGPL-2.1" +SLOT="0/4" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND=">=sci-libs/suitesparseconfig-${Sparse_PV}" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${Sparse_P}/CXSparse" + +multilib_src_configure() { + local mycmakeargs=( + -DNSTATIC=ON + -DDEMO=$(usex test) + ) + cmake_src_configure +} + +multilib_src_test() { + # Programs assume that they can access the Matrix folder in ${S} + ln -s "${S}/Matrix" || die "cannot link to the Matrix folder" + # Run demo files + ./cs_idemo < Matrix/t2 || die "failed testing" + ./cs_ldemo < Matrix/t2 || die "failed testing" + ./cs_demo1 < Matrix/t1 || die "failed testing" + ./cs_demo2 < Matrix/t1 || die "failed testing" + ./cs_demo2 < Matrix/fs_183_1 || die "failed testing" + ./cs_demo2 < Matrix/west0067 || die "failed testing" + ./cs_demo2 < Matrix/lp_afiro || die "failed testing" + ./cs_demo2 < Matrix/ash219 || die "failed testing" + ./cs_demo2 < Matrix/mbeacxc || die "failed testing" + ./cs_demo2 < Matrix/bcsstk01 || die "failed testing" + ./cs_demo3 < Matrix/bcsstk01 || die "failed testing" + ./cs_demo2 < Matrix/bcsstk16 || die "failed testing" + ./cs_demo3 < Matrix/bcsstk16 || die "failed testing" + ./cs_di_demo1 < Matrix/t1 || die "failed testing" + ./cs_di_demo2 < Matrix/t1 || die "failed testing" + ./cs_di_demo2 < Matrix/fs_183_1 || die "failed testing" + ./cs_di_demo2 < Matrix/west0067 || die "failed testing" + ./cs_di_demo2 < Matrix/lp_afiro || die "failed testing" + ./cs_di_demo2 < Matrix/ash219 || die "failed testing" + ./cs_di_demo2 < Matrix/mbeacxc || die "failed testing" + ./cs_di_demo2 < Matrix/bcsstk01 || die "failed testing" + ./cs_di_demo3 < Matrix/bcsstk01 || die "failed testing" + ./cs_di_demo2 < Matrix/bcsstk16 || die "failed testing" + ./cs_di_demo3 < Matrix/bcsstk16 || die "failed testing" + ./cs_dl_demo1 < Matrix/t1 || die "failed testing" + ./cs_dl_demo2 < Matrix/t1 || die "failed testing" + ./cs_dl_demo2 < Matrix/fs_183_1 || die "failed testing" + ./cs_dl_demo2 < Matrix/west0067 || die "failed testing" + ./cs_dl_demo2 < Matrix/lp_afiro || die "failed testing" + ./cs_dl_demo2 < Matrix/ash219 || die "failed testing" + ./cs_dl_demo2 < Matrix/mbeacxc || die "failed testing" + ./cs_dl_demo2 < Matrix/bcsstk01 || die "failed testing" + ./cs_dl_demo3 < Matrix/bcsstk01 || die "failed testing" + ./cs_dl_demo2 < Matrix/bcsstk16 || die "failed testing" + ./cs_dl_demo3 < Matrix/bcsstk16 || die "failed testing" + ./cs_ci_demo1 < Matrix/t2 || die "failed testing" + ./cs_ci_demo2 < Matrix/t2 || die "failed testing" + ./cs_ci_demo2 < Matrix/t3 || die "failed testing" + ./cs_ci_demo2 < Matrix/t4 || die "failed testing" + ./cs_ci_demo2 < Matrix/c_west0067 || die "failed testing" + ./cs_ci_demo2 < Matrix/c_mbeacxc || die "failed testing" + ./cs_ci_demo2 < Matrix/young1c || die "failed testing" + ./cs_ci_demo2 < Matrix/qc324 || die "failed testing" + ./cs_ci_demo2 < Matrix/neumann || die "failed testing" + ./cs_ci_demo2 < Matrix/c4 || die "failed testing" + ./cs_ci_demo3 < Matrix/c4 || die "failed testing" + ./cs_ci_demo2 < Matrix/mhd1280b || die "failed testing" + ./cs_ci_demo3 < Matrix/mhd1280b || die "failed testing" + ./cs_cl_demo1 < Matrix/t2 || die "failed testing" + ./cs_cl_demo2 < Matrix/t2 || die "failed testing" + ./cs_cl_demo2 < Matrix/t3 || die "failed testing" + ./cs_cl_demo2 < Matrix/t4 || die "failed testing" + ./cs_cl_demo2 < Matrix/c_west0067 || die "failed testing" + ./cs_cl_demo2 < Matrix/c_mbeacxc || die "failed testing" + ./cs_cl_demo2 < Matrix/young1c || die "failed testing" + ./cs_cl_demo2 < Matrix/qc324 || die "failed testing" + ./cs_cl_demo2 < Matrix/neumann || die "failed testing" + ./cs_cl_demo2 < Matrix/c4 || die "failed testing" + ./cs_cl_demo3 < Matrix/c4 || die "failed testing" + ./cs_cl_demo2 < Matrix/mhd1280b || die "failed testing" + ./cs_cl_demo3 < Matrix/mhd1280b || die "failed testing" +} diff --git a/sci-libs/cxsparse/metadata.xml b/sci-libs/cxsparse/metadata.xml index 2aa4c4bf0fff..7a0611fccc34 100644 --- a/sci-libs/cxsparse/metadata.xml +++ b/sci-libs/cxsparse/metadata.xml @@ -10,4 +10,7 @@ with support for double or complex matrices, with int or long integers. </longdescription> + <upstream> + <remote-id type="github">DrTimothyAldenDavis/SuiteSparse</remote-id> + </upstream> </pkgmetadata> |