dev-libs/sleef: add 3.9.0

Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
Alfredo Tupone
2025-12-31 18:18:54 +01:00
parent bb39c21974
commit b0bc9729fe
3 changed files with 68 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST sleef-3.8.tar.gz 1863935 BLAKE2B 5cb56ee97327a19b7d88e9b96ad1073e620310c6972137ea1e36417a4fcd93ad5f50c4c3d7f8d55a5c22eaf7ddeea7d2ec3616778698127a73c168b64dfc2d13 SHA512 218b4e7e2eeb1f9b45e56c2fbb46062480480c55f49b6b0d138d910374e7791c7dd909b964fbf9e2e984a896a3b162eb5aabaaa770692e1db440627e7ad07945
DIST sleef-3.9.0.tar.gz 1808227 BLAKE2B 54e42e1b4246574d2cf0f0d3ebf5d16f97fe2e997c16bd49c8dc729cb96f5abcf022e617c9d3ad4267fa6cb84a21d252665887f7ebf47902421859540c03e021 SHA512 9b47667b33a685308aa65f848b7ee620e9e8783ca4851fd57e873f34310b486fb351813f573f2a7a71b6bdc5c8b2c5ef4eb4f66c890ddfbfada7bb9d74626c0b

View File

@@ -0,0 +1,16 @@
--- a/docs/CMakeLists.txt 2025-12-31 15:12:58.993590668 +0100
+++ b/docs/CMakeLists.txt 2025-12-31 15:13:42.013073959 +0100
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.4.3)
+cmake_minimum_required(VERSION 3.10)
project(MyProject)
include(ExternalProject)
find_package(Git REQUIRED)
--- a/docs/src/CMakeLists.txt 2025-12-31 15:14:20.964606111 +0100
+++ b/docs/src/CMakeLists.txt 2025-12-31 15:14:31.032485183 +0100
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.4.3)
+cmake_minimum_required(VERSION 3.10)
project(MyProject)
include(ExternalProject)
find_package(Git REQUIRED)

View File

@@ -0,0 +1,51 @@
# Copyright 2022-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="Implements vectorized versions of C standard math functions"
HOMEPAGE="https://sleef.org/"
SRC_URI="https://github.com/shibatch/${PN}/archive/refs/tags/${PV}.tar.gz
-> ${P}.tar.gz"
LICENSE="Boost-1.0"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RESTRICT="
!test? ( test )
x86? ( test )
"
BDEPEND="
test? (
>=dev-libs/mpfr-4.2
dev-cpp/tlfloat
)
"
PATCHES=(
"${FILESDIR}"/${PN}-3.6.1-musl.patch
"${FILESDIR}"/${P}-cmake.patch
)
src_configure() {
local mycmakeargs=(
-DSLEEF_BUILD_QUAD=ON
-DSLEEF_BUILD_TESTS=$(usex test ON OFF)
-DSLEEF_DISABLE_FFTW=ON
-DSLEEF_DISABLE_OPENMP=ON
)
cmake_src_configure
}
src_test() {
local myctestargs=(
-E "iut(y)?purec(fma)?_scalar"
)
cmake_src_test
}