commit:     09ed8c79828a6ce3233237d8cf9e150c1f3bc965
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Tue May 10 00:13:57 2022 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Tue May 10 00:21:30 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=09ed8c79

sci-libs/qdldl: new package, add 0.1.5_p20211001

Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 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(+)

diff --git a/sci-libs/qdldl/Manifest b/sci-libs/qdldl/Manifest
new file mode 100644
index 000000000..8edc2f0a9
--- /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 000000000..75b82a5fe
--- /dev/null
+++ b/sci-libs/qdldl/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Alessandro Barbieri</name>
+       </maintainer>
+       <upstream>
+               <bugs-to>https://github.com/osqp/qdldl/issues</bugs-to>
+               <remote-id type="github">osqp/qdldl</remote-id>
+       </upstream>
+       <use>
+               <flag name="coverage">Perform code coverage</flag>
+               <flag name="single-precision">Use float numbers instead of 
doubles</flag>
+       </use>
+</pkgmetadata>

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 000000000..f6cb5de55
--- /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
+}

Reply via email to