From 09ed8c79828a6ce3233237d8cf9e150c1f3bc965 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Tue, 10 May 2022 02:13:57 +0200 Subject: [PATCH] sci-libs/qdldl: new package, add 0.1.5_p20211001 Signed-off-by: Alessandro Barbieri --- sci-libs/qdldl/Manifest | 1 + sci-libs/qdldl/metadata.xml | 16 +++++++++ sci-libs/qdldl/qdldl-0.1.5_p20211001.ebuild | 39 +++++++++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 sci-libs/qdldl/Manifest create mode 100644 sci-libs/qdldl/metadata.xml create mode 100644 sci-libs/qdldl/qdldl-0.1.5_p20211001.ebuild diff --git a/sci-libs/qdldl/Manifest b/sci-libs/qdldl/Manifest new file mode 100644 index 0000000000..8edc2f0a94 --- /dev/null +++ b/sci-libs/qdldl/Manifest @@ -0,0 +1 @@ +DIST qdldl-0.1.5_p20211001.tar.gz 18567 BLAKE2B 2863bc53395573f24e3b461a30f336cede15b99aef4ce51899b35b97a7a7b79ffced6220e95a72f8e2900ecedc5a16363a16df9769359cf6a206c328b75eea0b SHA512 16422bc97a0c4cfffdf4c91717272f0cef7d9f6c68fa31ba33879897892b11109e4c8625be040235fcb8015fd9fc224d6ba8890dbe1e628d94ddde41d40dc22c diff --git a/sci-libs/qdldl/metadata.xml b/sci-libs/qdldl/metadata.xml new file mode 100644 index 0000000000..75b82a5feb --- /dev/null +++ b/sci-libs/qdldl/metadata.xml @@ -0,0 +1,16 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + https://github.com/osqp/qdldl/issues + osqp/qdldl + + + Perform code coverage + Use float numbers instead of doubles + + diff --git a/sci-libs/qdldl/qdldl-0.1.5_p20211001.ebuild b/sci-libs/qdldl/qdldl-0.1.5_p20211001.ebuild new file mode 100644 index 0000000000..f6cb5de55b --- /dev/null +++ b/sci-libs/qdldl/qdldl-0.1.5_p20211001.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +COMMIT="9fae555ca11046362be143a24cca66c311eeb884" + +inherit cmake + +DESCRIPTION="A free LDL factorisation routine" +HOMEPAGE="https://github.com/osqp/qdldl" +SRC_URI="https://github.com/osqp/${PN}/archive/${COMMIT}.tar.gz -> ${PF}.tar.gz" +S="${WORKDIR}/${PN}-${COMMIT}" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="coverage single-precision test" + +RESTRICT="!test? ( test )" + +src_configure() { + mycmakeargs=( + -DCOVERAGE=$(usex coverage) + -DDFLOAT=$(usex single-precision) + -DQDLDL_BUILD_STATIC_LIB=$(usex test) + -DQDLDL_UNITTESTS=$(usex test) + + -DQDLDL_BUILD_DEMO_EXE=OFF + -DQDLDL_BUILD_SHARED_LIB=ON + ) + + cmake_src_configure +} + +src_install() { + cmake_src_install + dodoc README.md CHANGELOG.md +}