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

Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2022-05-10 02:13:57 +02:00
parent 24644418bf
commit 09ed8c7982
3 changed files with 56 additions and 0 deletions

1
sci-libs/qdldl/Manifest Normal file
View File

@@ -0,0 +1 @@
DIST qdldl-0.1.5_p20211001.tar.gz 18567 BLAKE2B 2863bc53395573f24e3b461a30f336cede15b99aef4ce51899b35b97a7a7b79ffced6220e95a72f8e2900ecedc5a16363a16df9769359cf6a206c328b75eea0b SHA512 16422bc97a0c4cfffdf4c91717272f0cef7d9f6c68fa31ba33879897892b11109e4c8625be040235fcb8015fd9fc224d6ba8890dbe1e628d94ddde41d40dc22c

View File

@@ -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>lssndrbarbieri@gmail.com</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>

View File

@@ -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
}