diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2022-05-17 08:36:52 +0200 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2022-05-17 08:36:52 +0200 |
commit | c59fc76ed4aba00bed30c69a102daaaf4867d1e8 (patch) | |
tree | 92b55f0a5f5d2414c0d5dd9a59bd403a750c2112 /dev-libs/sleef | |
parent | media-libs/babl: fix build w/ meson-0.62 for 0.1.90 too (diff) | |
download | gentoo-c59fc76ed4aba00bed30c69a102daaaf4867d1e8.tar.gz gentoo-c59fc76ed4aba00bed30c69a102daaaf4867d1e8.tar.bz2 gentoo-c59fc76ed4aba00bed30c69a102daaaf4867d1e8.zip |
dev-libs/sleef: add to tree
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-libs/sleef')
-rw-r--r-- | dev-libs/sleef/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/sleef/files/sleef-3.5.1-gentoo.patch | 18 | ||||
-rw-r--r-- | dev-libs/sleef/metadata.xml | 11 | ||||
-rw-r--r-- | dev-libs/sleef/sleef-3.5.1.ebuild | 34 |
4 files changed, 64 insertions, 0 deletions
diff --git a/dev-libs/sleef/Manifest b/dev-libs/sleef/Manifest new file mode 100644 index 000000000000..7ca5bfa2e46b --- /dev/null +++ b/dev-libs/sleef/Manifest @@ -0,0 +1 @@ +DIST sleef-3.5.1.tar.gz 1210108 BLAKE2B e10e23cb830252dd2ed34e24bfd79b5e812640572afedad899cccd462019c7a4e41c7b3b9f0ff5a77549fc45dbc51ae0ebeeada4c38f011cdac0262d2982ade8 SHA512 e8e4e5028db52998c6b82bd462622c08d670e4e85273327f1c3bdbd900827dd7793b217c2876ca1229b6f672493bb96f40140e14366390cccea0e6780689e128 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 +} |