summaryrefslogtreecommitdiff
path: root/dev-libs/sleef
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-06-29 12:04:12 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-06-29 12:04:12 +0100
commit0f558761aa2dee1017b4751e4017205e015a9560 (patch)
tree037df795519468a25d9362b4e95cdaeb84eb1cf9 /dev-libs/sleef
parent752d6256e5204b958b0ef7905675a940b5e9172f (diff)
gentoo resync : 29.12.2022
Diffstat (limited to 'dev-libs/sleef')
-rw-r--r--dev-libs/sleef/Manifest4
-rw-r--r--dev-libs/sleef/files/sleef-3.5.1-gentoo.patch18
-rw-r--r--dev-libs/sleef/metadata.xml11
-rw-r--r--dev-libs/sleef/sleef-3.5.1.ebuild34
4 files changed, 67 insertions, 0 deletions
diff --git a/dev-libs/sleef/Manifest b/dev-libs/sleef/Manifest
new file mode 100644
index 000000000000..a482c48448d5
--- /dev/null
+++ b/dev-libs/sleef/Manifest
@@ -0,0 +1,4 @@
+AUX sleef-3.5.1-gentoo.patch 1261 BLAKE2B cef8f55c1e24e0366636965a7838caf2f1f204dd6bf76b3521bf4e8f2819af461394a743417999245a3cdcd204069914b03285234f073bdbd45852dc6d2b62ba SHA512 2dc7a8f1dd4e061df24ddc0061ca9e6b1fb06d6660a95c9a9bf33b90c419cc36fb2ab7c1c9aeb40cb019f459a7552aa3aae8e9189d7d0c5caf21fbc4390c49eb
+DIST sleef-3.5.1.tar.gz 1210108 BLAKE2B e10e23cb830252dd2ed34e24bfd79b5e812640572afedad899cccd462019c7a4e41c7b3b9f0ff5a77549fc45dbc51ae0ebeeada4c38f011cdac0262d2982ade8 SHA512 e8e4e5028db52998c6b82bd462622c08d670e4e85273327f1c3bdbd900827dd7793b217c2876ca1229b6f672493bb96f40140e14366390cccea0e6780689e128
+EBUILD sleef-3.5.1.ebuild 616 BLAKE2B 634808838d4e0cd22ca29c1f27fdf431067d1f8a38d394ca5d3ebcb1d8fc25c7191e346bb699629193cc6e0ca8231d8f1c366ce6e99edfd66e17df4f478f45ad SHA512 095a451f96283cc1adfb196ef01b4cfb4233e60e259d0c4659e2e60b69eff6b5f4222b50329d4779ece219b0db0eb0943532c4ca726b5b93ddc41892a1d63b63
+MISC metadata.xml 327 BLAKE2B 983705672ddaa295e873a6fe7a7e7caf7c4d3fdd7c587fa2bff53e457e580ad1958108931e50df7f27303aa75937a702f3cae3d830b3f34760b95f06ca15458a SHA512 8cc8e6126c425e73d9431937f2bedc7dbb68f294359beaf4923e4105284465a7cb4c678693afdf3a16469f9d1a846d7543b550bbd5d100f369a0f93b6bd90c7a
diff --git a/dev-libs/sleef/files/sleef-3.5.1-gentoo.patch b/dev-libs/sleef/files/sleef-3.5.1-gentoo.patch
new file mode 100644
index 000000000000..2246f74151fd
--- /dev/null
+++ b/dev-libs/sleef/files/sleef-3.5.1-gentoo.patch
@@ -0,0 +1,18 @@
+--- a/src/dft-tester/CMakeLists.txt 2022-05-11 21:48:47.011990780 +0200
++++ b/src/dft-tester/CMakeLists.txt 2022-05-11 21:49:07.424697074 +0200
+@@ -186,15 +186,7 @@
+
+ # Test roundtriptest2ddp
+ add_test_dft(${TARGET_ROUNDTRIPTEST2DDP}_2_2 $<TARGET_FILE:${TARGET_ROUNDTRIPTEST2DDP}> 2 2 10)
+- add_test_dft(${TARGET_ROUNDTRIPTEST2DDP}_4_4 $<TARGET_FILE:${TARGET_ROUNDTRIPTEST2DDP}> 4 4 10)
+- add_test_dft(${TARGET_ROUNDTRIPTEST2DDP}_8_8 $<TARGET_FILE:${TARGET_ROUNDTRIPTEST2DDP}> 8 8 10)
+- add_test_dft(${TARGET_ROUNDTRIPTEST2DDP}_10_10 $<TARGET_FILE:${TARGET_ROUNDTRIPTEST2DDP}> 10 10 2)
+- add_test_dft(${TARGET_ROUNDTRIPTEST2DDP}_5_15 $<TARGET_FILE:${TARGET_ROUNDTRIPTEST2DDP}> 5 15 2)
+
+ # Test roundtriptest2dsp
+ add_test_dft(${TARGET_ROUNDTRIPTEST2DSP}_2_2 $<TARGET_FILE:${TARGET_ROUNDTRIPTEST2DSP}> 2 2 10)
+- add_test_dft(${TARGET_ROUNDTRIPTEST2DSP}_4_4 $<TARGET_FILE:${TARGET_ROUNDTRIPTEST2DSP}> 4 4 10)
+- add_test_dft(${TARGET_ROUNDTRIPTEST2DSP}_8_8 $<TARGET_FILE:${TARGET_ROUNDTRIPTEST2DSP}> 8 8 10)
+- add_test_dft(${TARGET_ROUNDTRIPTEST2DSP}_10_10 $<TARGET_FILE:${TARGET_ROUNDTRIPTEST2DSP}> 10 10 2)
+- add_test_dft(${TARGET_ROUNDTRIPTEST2DSP}_5_15 $<TARGET_FILE:${TARGET_ROUNDTRIPTEST2DSP}> 5 15 2)
+ endif(LIBFFTW3 AND NOT DISABLE_FFTW)
diff --git a/dev-libs/sleef/metadata.xml b/dev-libs/sleef/metadata.xml
new file mode 100644
index 000000000000..40e9c116eb75
--- /dev/null
+++ b/dev-libs/sleef/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>tupone@gentoo.org</email>
+ <name>Tupone Alfredo</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">shibatch/sleef</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-libs/sleef/sleef-3.5.1.ebuild b/dev-libs/sleef/sleef-3.5.1.ebuild
new file mode 100644
index 000000000000..7d994a46c2f5
--- /dev/null
+++ b/dev-libs/sleef/sleef-3.5.1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 2022 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 )"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+BDEPEND=""
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gentoo.patch
+)
+
+src_configure() {
+ local mycmakeargs=(
+ -DDISABLE_FFTW=ON
+ -DBUILD_TESTS=$(usex test ON OFF)
+ )
+
+ cmake_src_configure
+}