sci-mathematics/libpotassco: new package, add 0_pre20200612

Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2022-04-27 23:24:30 +02:00
parent dea7dc763f
commit 799d0f1c6f
3 changed files with 46 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST libpotassco-0_pre20200612.tar.gz 210167 BLAKE2B 2e7e91674458e28b7d2208b200c5db9f4dace7871a239ebc85fa07d70aee9fa22bf48a41f601ac85b7d083bd62750a08eb98255373a77cb1406dd4b451c42aa4 SHA512 649cc07a2fcdea98ece9a3515e2ccc451e8fb6046642be1a8cd09919e100cf215376703690430ae58b8f5d9dab53b4e0bc4b0f3b19e4ff16bd0b62bfe20404fd

View File

@@ -0,0 +1,30 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
COMMIT="2f2b80feac1e35cbe1cae986c44dbb20d4151c74"
DESCRIPTION="A utility library used by various potassco projects"
HOMEPAGE="https://github.com/potassco/libpotassco"
SRC_URI="https://github.com/potassco/${PN}/archive/${COMMIT}.tar.gz -> ${PF}.tar.gz"
S="${WORKDIR}/${PN}-${COMMIT}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test tools"
RESTRICT="!test? ( test )"
src_configure() {
local mycmakeargs=(
-DLIB_POTASSCO_BUILD_TESTS=$(usex test)
-DLIB_POTASSCO_BUILD_APP=$(usex tools)
-DLIB_POTASSCO_INSTALL_LIB=ON
-DLIB_POTASSCO_INSTALL_VERSIONED=OFF
)
cmake_src_configure
}

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>lssndrbarbieri@gmail.com</email>
<name>Alessandro Barbieri</name>
</maintainer>
<use>
<flag name="tools">whether or not to build lpconvert tool</flag>
</use>
<upstream>
<bugs-to>https://github.com/potassco/libpotassco/issues</bugs-to>
<remote-id type="github">potassco/libpotassco</remote-id>
</upstream>
</pkgmetadata>