summaryrefslogtreecommitdiff
path: root/sci-libs/kissfft
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-04-28 20:21:43 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-04-28 20:21:43 +0100
commit40aaaa64e86ba6710bbeb31c4615a6ce80e75e11 (patch)
tree758c221bad35c9288d0bd6df9c7dfc226728e52c /sci-libs/kissfft
parent8d5dbd847cbc704a6a06405856e94b461011afe3 (diff)
gentoo resync : 28.04.2021
Diffstat (limited to 'sci-libs/kissfft')
-rw-r--r--sci-libs/kissfft/Manifest4
-rw-r--r--sci-libs/kissfft/kissfft-131.1.0.ebuild54
-rw-r--r--sci-libs/kissfft/kissfft-9999.ebuild54
-rw-r--r--sci-libs/kissfft/metadata.xml16
4 files changed, 128 insertions, 0 deletions
diff --git a/sci-libs/kissfft/Manifest b/sci-libs/kissfft/Manifest
new file mode 100644
index 000000000000..1b6f8e3dbf1a
--- /dev/null
+++ b/sci-libs/kissfft/Manifest
@@ -0,0 +1,4 @@
+DIST kissfft-131.1.0.tar.gz 52383 BLAKE2B 74e6d2e7d132a311b31c28a468e13d9772a53f0ea0abed0e0f49d8db9c183fb0646f58fd38df3e797b8577285899daf6b80446b149ce2582bb828410656d96df SHA512 bd715868ce0e93a291a0592fb1f8b960e832fc64efe863755e52b67d5addff9bcb444a1bf2570d1914c52b41dad1023d0d86400f5ea30c9fb84cd6b4f7210708
+EBUILD kissfft-131.1.0.ebuild 1222 BLAKE2B 6316ea22067eeab14bc1e5d3854d9f316673db8be8245317734cb3922bd83dabbe4909d00cc6fedc72a6a911428ee192cc0cee9de4b6102fa350df8a6cb393bc SHA512 840630bfbe5d4b79ef07517c152fe4f06c02593f452885b08b1206cf5f29d318fd028ad0035ec49640b6dabe09b5449ecef56289fc7b1a2bc49cf8eddc3a857d
+EBUILD kissfft-9999.ebuild 1222 BLAKE2B 6316ea22067eeab14bc1e5d3854d9f316673db8be8245317734cb3922bd83dabbe4909d00cc6fedc72a6a911428ee192cc0cee9de4b6102fa350df8a6cb393bc SHA512 840630bfbe5d4b79ef07517c152fe4f06c02593f452885b08b1206cf5f29d318fd028ad0035ec49640b6dabe09b5449ecef56289fc7b1a2bc49cf8eddc3a857d
+MISC metadata.xml 524 BLAKE2B 077725c10a1fffdbde22e261ff45fc5acab53a0d1a1493c094aa01a5f81da622392420924c65ae6417563b79339abf734e6d1d70a8d7047e00c06901ce1c9b1e SHA512 88bc18934f588bb9fba48ace868ac40d406576ffaf87ba44d1783dd1e0039f7119369f36d96d0ae82349f6d8b2a5ea4c32e5b1ad6ed9305e9e441b00eb6d9479
diff --git a/sci-libs/kissfft/kissfft-131.1.0.ebuild b/sci-libs/kissfft/kissfft-131.1.0.ebuild
new file mode 100644
index 000000000000..ad2bc1ff31a9
--- /dev/null
+++ b/sci-libs/kissfft/kissfft-131.1.0.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7..9} )
+
+inherit cmake python-any-r1 toolchain-funcs
+
+DESCRIPTION="A Fast Fourier Transform (FFT) library that tries to Keep it Simple, Stupid"
+HOMEPAGE="https://github.com/mborgerding/kissfft"
+
+if [[ ${PV} == *9999 ]] ; then
+ EGIT_REPO_URI="https://github.com/mborgerding/kissfft"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/mborgerding/kissfft/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="alloca cpu_flags_x86_sse openmp test tools"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+ test? (
+ sci-libs/fftw:3.0
+ $(python_gen_any_dep '
+ dev-python/numpy[${PYTHON_USEDEP}]
+ ')
+ )
+"
+
+python_check_deps() {
+ has_version -d "dev-python/numpy[${PYTHON_USEDEP}]"
+}
+
+pkg_setup() {
+ use test && python-any-r1_pkg_setup
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DKISSFFT_OPENMP=$(usex openmp)
+ -DKISSFFT_TEST=$(usex test)
+ -DKISSFFT_TOOLS=$(usex tools)
+ -DKISSFFT_USE_ALLOCA=$(usex alloca)
+ -DKISSFFT_DATATYPE=$(usex cpu_flags_x86_sse simd float)
+ )
+
+ cmake_src_configure
+}
diff --git a/sci-libs/kissfft/kissfft-9999.ebuild b/sci-libs/kissfft/kissfft-9999.ebuild
new file mode 100644
index 000000000000..ad2bc1ff31a9
--- /dev/null
+++ b/sci-libs/kissfft/kissfft-9999.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7..9} )
+
+inherit cmake python-any-r1 toolchain-funcs
+
+DESCRIPTION="A Fast Fourier Transform (FFT) library that tries to Keep it Simple, Stupid"
+HOMEPAGE="https://github.com/mborgerding/kissfft"
+
+if [[ ${PV} == *9999 ]] ; then
+ EGIT_REPO_URI="https://github.com/mborgerding/kissfft"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/mborgerding/kissfft/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="alloca cpu_flags_x86_sse openmp test tools"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+ test? (
+ sci-libs/fftw:3.0
+ $(python_gen_any_dep '
+ dev-python/numpy[${PYTHON_USEDEP}]
+ ')
+ )
+"
+
+python_check_deps() {
+ has_version -d "dev-python/numpy[${PYTHON_USEDEP}]"
+}
+
+pkg_setup() {
+ use test && python-any-r1_pkg_setup
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DKISSFFT_OPENMP=$(usex openmp)
+ -DKISSFFT_TEST=$(usex test)
+ -DKISSFFT_TOOLS=$(usex tools)
+ -DKISSFFT_USE_ALLOCA=$(usex alloca)
+ -DKISSFFT_DATATYPE=$(usex cpu_flags_x86_sse simd float)
+ )
+
+ cmake_src_configure
+}
diff --git a/sci-libs/kissfft/metadata.xml b/sci-libs/kissfft/metadata.xml
new file mode 100644
index 000000000000..1dd34da24f4b
--- /dev/null
+++ b/sci-libs/kissfft/metadata.xml
@@ -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" proxied="yes">
+ <email>gentoo@aisha.cc</email>
+ <name>Aisha Tammy</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <use>
+ <flag name="alloca">Use alloca(3) instead of malloc(3) for memory management</flag>
+ <flag name="tools">Build command line tools</flag>
+ </use>
+</pkgmetadata>