[gentoo-commits] repo/gentoo:master commit in: sci-libs/kissfft/
commit: c4e937b765f704b37fe8130fa38ad6f8f9b57119 Author: Alfred Wingate protonmail com> AuthorDate: Wed Apr 30 01:46:10 2025 + Commit: Sam James gentoo org> CommitDate: Wed Apr 30 14:24:46 2025 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4e937b7 sci-libs/kissfft: enable py3.13 Closes: https://bugs.gentoo.org/952673 Signed-off-by: Alfred Wingate protonmail.com> Part-of: https://github.com/gentoo/gentoo/pull/41854 Closes: https://github.com/gentoo/gentoo/pull/41854 Signed-off-by: Sam James gentoo.org> sci-libs/kissfft/kissfft-131.1.0-r2.ebuild | 2 +- sci-libs/kissfft/kissfft-.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sci-libs/kissfft/kissfft-131.1.0-r2.ebuild b/sci-libs/kissfft/kissfft-131.1.0-r2.ebuild index 77e5c509ab50..5478a756071e 100644 --- a/sci-libs/kissfft/kissfft-131.1.0-r2.ebuild +++ b/sci-libs/kissfft/kissfft-131.1.0-r2.ebuild @@ -3,7 +3,7 @@ EAPI=8 -PYTHON_COMPAT=( python3_{9..12} ) +PYTHON_COMPAT=( python3_{10..13} ) inherit cmake multibuild python-any-r1 toolchain-funcs diff --git a/sci-libs/kissfft/kissfft-.ebuild b/sci-libs/kissfft/kissfft-.ebuild index 793fba1399dd..f005780f3a89 100644 --- a/sci-libs/kissfft/kissfft-.ebuild +++ b/sci-libs/kissfft/kissfft-.ebuild @@ -3,7 +3,7 @@ EAPI=8 -PYTHON_COMPAT=( python3_{9..12} ) +PYTHON_COMPAT=( python3_{10..13} ) inherit cmake multibuild python-any-r1 toolchain-funcs
[gentoo-commits] repo/gentoo:master commit in: sci-libs/kissfft/
commit: b581e761dbff1e46ede4822021c07ef22c02b0df Author: Alfred Wingate protonmail com> AuthorDate: Wed Apr 30 01:45:08 2025 + Commit: Sam James gentoo org> CommitDate: Wed Apr 30 14:24:45 2025 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b581e761 sci-libs/kissfft: fix tests Fixes: dfb63cf60c75563bf69670cd168a16d2d4d8324c Signed-off-by: Alfred Wingate protonmail.com> Part-of: https://github.com/gentoo/gentoo/pull/41854 Signed-off-by: Sam James gentoo.org> sci-libs/kissfft/kissfft-131.1.0-r2.ebuild | 6 +- sci-libs/kissfft/kissfft-.ebuild | 6 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/sci-libs/kissfft/kissfft-131.1.0-r2.ebuild b/sci-libs/kissfft/kissfft-131.1.0-r2.ebuild index 200fee708116..77e5c509ab50 100644 --- a/sci-libs/kissfft/kissfft-131.1.0-r2.ebuild +++ b/sci-libs/kissfft/kissfft-131.1.0-r2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -78,6 +78,10 @@ src_compile() { multibuild_foreach_variant cmake_src_compile } +src_test() { + multibuild_foreach_variant cmake_src_test +} + src_install() { multibuild_foreach_variant cmake_src_install } diff --git a/sci-libs/kissfft/kissfft-.ebuild b/sci-libs/kissfft/kissfft-.ebuild index 8d8b1bb59f38..793fba1399dd 100644 --- a/sci-libs/kissfft/kissfft-.ebuild +++ b/sci-libs/kissfft/kissfft-.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -78,6 +78,10 @@ src_compile() { multibuild_foreach_variant cmake_src_compile } +src_test() { + multibuild_foreach_variant cmake_src_test +} + src_install() { multibuild_foreach_variant cmake_src_install }
[gentoo-commits] repo/gentoo:master commit in: sci-libs/kissfft/
commit: 5d2d9be69956b91404a6be4f9de4488d4a0b39dd Author: Sam James gentoo org> AuthorDate: Thu Dec 5 17:47:23 2024 + Commit: Sam James gentoo org> CommitDate: Thu Dec 5 17:47:23 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d2d9be6 sci-libs/kissfft: Stabilize 131.1.0-r2 amd64, #945562 Signed-off-by: Sam James gentoo.org> sci-libs/kissfft/kissfft-131.1.0-r2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sci-libs/kissfft/kissfft-131.1.0-r2.ebuild b/sci-libs/kissfft/kissfft-131.1.0-r2.ebuild index daed35703e8f..200fee708116 100644 --- a/sci-libs/kissfft/kissfft-131.1.0-r2.ebuild +++ b/sci-libs/kissfft/kissfft-131.1.0-r2.ebuild @@ -15,7 +15,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/mborgerding/kissfft/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~arm arm64 ~riscv x86" + KEYWORDS="amd64 ~arm arm64 ~riscv x86" fi LICENSE="BSD"
[gentoo-commits] repo/gentoo:master commit in: sci-libs/kissfft/
commit: 3ce3a3cbbd3f5bae0126e83b4ce6395dcc1974da Author: Jakov Smolić gentoo org> AuthorDate: Sun Dec 1 22:35:52 2024 + Commit: Jakov Smolić gentoo org> CommitDate: Sun Dec 1 22:35:52 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ce3a3cb sci-libs/kissfft: Stabilize 131.1.0-r2 x86, #945562 Signed-off-by: Jakov Smolić gentoo.org> sci-libs/kissfft/kissfft-131.1.0-r2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sci-libs/kissfft/kissfft-131.1.0-r2.ebuild b/sci-libs/kissfft/kissfft-131.1.0-r2.ebuild index 39f0f161e1ec..daed35703e8f 100644 --- a/sci-libs/kissfft/kissfft-131.1.0-r2.ebuild +++ b/sci-libs/kissfft/kissfft-131.1.0-r2.ebuild @@ -15,7 +15,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/mborgerding/kissfft/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~arm arm64 ~riscv ~x86" + KEYWORDS="~amd64 ~arm arm64 ~riscv x86" fi LICENSE="BSD"
[gentoo-commits] repo/gentoo:master commit in: sci-libs/kissfft/
commit: dfb63cf60c75563bf69670cd168a16d2d4d8324c Author: Violet Purcell inventati org> AuthorDate: Sat Oct 19 16:06:31 2024 + Commit: Andrew Ammerlaan gentoo org> CommitDate: Sun Oct 20 11:57:01 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dfb63cf6 sci-libs/kissfft: allow parallel installation of multiple datatypes KissFFT can be built for five different primary datatypes: float, double, int16_t, int32_t, and SIMD. Currently, we build the float datatype by default and instead use SIMD if cpu_flags_x86_sse is enabled. This can lead to awkwardness in programs that expect KissFFT to be built with a specific data type, such as media-sound/TauonMusicBox in GURU, which currently is forced to depend on sci-libs/kissfft[-cpu_flags_x86_sse], which forces a rather irritating package.use entry for anyone on an amd64 CPU who has set CPU_FLAGS_X86 accordingly. Instead, always build the float datatype, and additionally build the SIMD datatype based on cpu_flags_x86_sse. Also add USE flags to enable the building of the double, int16_t, and int32_t variants, which may enable more unbundling of KissFFT from other packages. Signed-off-by: Violet Purcell inventati.org> Closes: https://github.com/gentoo/gentoo/pull/39045 Signed-off-by: Andrew Ammerlaan gentoo.org> ...ssfft-.ebuild => kissfft-131.1.0-r2.ebuild} | 28 ++ sci-libs/kissfft/kissfft-.ebuild | 28 ++ sci-libs/kissfft/metadata.xml | 3 +++ 3 files changed, 51 insertions(+), 8 deletions(-) diff --git a/sci-libs/kissfft/kissfft-.ebuild b/sci-libs/kissfft/kissfft-131.1.0-r2.ebuild similarity index 71% copy from sci-libs/kissfft/kissfft-.ebuild copy to sci-libs/kissfft/kissfft-131.1.0-r2.ebuild index 14e039c7eec1..8d8b1bb59f38 100644 --- a/sci-libs/kissfft/kissfft-.ebuild +++ b/sci-libs/kissfft/kissfft-131.1.0-r2.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{9..12} ) -inherit cmake python-any-r1 toolchain-funcs +inherit cmake multibuild 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"; @@ -20,7 +20,7 @@ fi LICENSE="BSD" SLOT="0" -IUSE="alloca cpu_flags_x86_sse openmp test tools" +IUSE="alloca cpu_flags_x86_sse double int16 int32 openmp test tools" RESTRICT="!test? ( test )" DEPEND=" @@ -46,18 +46,38 @@ pkg_pretend() { } pkg_setup() { + MULTIBUILD_VARIANTS=( + float + $(usev double) + $(usev int16 int16_t) + $(usev int32 int32_t) + $(usev cpu_flags_x86_sse simd) + ) + use test && python-any-r1_pkg_setup [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp } -src_configure() { +kissfft_configure() { local mycmakeargs=( -DKISSFFT_OPENMP=$(usex openmp 1 0) -DKISSFFT_TEST=$(usex test) -DKISSFFT_TOOLS=$(usex tools) -DKISSFFT_USE_ALLOCA=$(usex alloca) - -DKISSFFT_DATATYPE=$(usex cpu_flags_x86_sse simd float) + -DKISSFFT_DATATYPE=${MULTIBUILD_VARIANT} ) cmake_src_configure } + +src_configure() { + multibuild_foreach_variant kissfft_configure +} + +src_compile() { + multibuild_foreach_variant cmake_src_compile +} + +src_install() { + multibuild_foreach_variant cmake_src_install +} diff --git a/sci-libs/kissfft/kissfft-.ebuild b/sci-libs/kissfft/kissfft-.ebuild index 14e039c7eec1..8d8b1bb59f38 100644 --- a/sci-libs/kissfft/kissfft-.ebuild +++ b/sci-libs/kissfft/kissfft-.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{9..12} ) -inherit cmake python-any-r1 toolchain-funcs +inherit cmake multibuild 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"; @@ -20,7 +20,7 @@ fi LICENSE="BSD" SLOT="0" -IUSE="alloca cpu_flags_x86_sse openmp test tools" +IUSE="alloca cpu_flags_x86_sse double int16 int32 openmp test tools" RESTRICT="!test? ( test )" DEPEND=" @@ -46,18 +46,38 @@ pkg_pretend() { } pkg_setup() { + MULTIBUILD_VARIANTS=( + float + $(usev double) + $(usev int16 int16_t) + $(usev int32 int32_t) + $(usev cpu_flags_x86_sse simd) + ) + use test && python-any-r1_pkg_setup [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp } -src_configure() { +kissfft_configure() { local mycmakeargs=( -DKISSFFT_OPENMP=$(usex openmp 1 0) -DKISSFFT_TEST=$(usex test) -DKISSFFT_TOOLS=$(usex tools) -DKISSFFT_USE_ALLOCA=$(usex alloca) - -DKISSFFT_DATATYPE=$(usex cpu_flags_x86_sse simd float) + -
[gentoo-commits] repo/gentoo:master commit in: sci-libs/kissfft/
commit: cfaf5bc8606de38042eefb54ab8ad8d98db474cb Author: Andreas Sturmlechner gentoo org> AuthorDate: Thu Aug 29 19:47:18 2024 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Fri Aug 30 13:11:21 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cfaf5bc8 sci-libs/kissfft: drop 131.1.0 Bug: https://bugs.gentoo.org/938697 Signed-off-by: Andreas Sturmlechner gentoo.org> sci-libs/kissfft/kissfft-131.1.0.ebuild | 62 - 1 file changed, 62 deletions(-) diff --git a/sci-libs/kissfft/kissfft-131.1.0.ebuild b/sci-libs/kissfft/kissfft-131.1.0.ebuild deleted file mode 100644 index 9fb779d33ddd.. --- a/sci-libs/kissfft/kissfft-131.1.0.ebuild +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{9..11} ) - -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} == * ]] ; 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 ~arm arm64 ~riscv ~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}] - ') - ) -" - -PATCHES=( - "${FILESDIR}"/${PN}-131.1.0-cross.patch -) - -python_check_deps() { - python_has_version -d "dev-python/numpy[${PYTHON_USEDEP}]" -} - -pkg_pretend() { - [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp -} - -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 1 0) - -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 -}
[gentoo-commits] repo/gentoo:master commit in: sci-libs/kissfft/
commit: 438a45b7ab3affb9aa93ddbe6b85661b51ed4e32 Author: Sam James gentoo org> AuthorDate: Fri Aug 30 02:30:14 2024 + Commit: Sam James gentoo org> CommitDate: Fri Aug 30 02:30:18 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=438a45b7 sci-libs/kissfft: Stabilize 131.1.0-r1 amd64, #938697 Signed-off-by: Sam James gentoo.org> sci-libs/kissfft/kissfft-131.1.0-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sci-libs/kissfft/kissfft-131.1.0-r1.ebuild b/sci-libs/kissfft/kissfft-131.1.0-r1.ebuild index ddf795e20e8c..fea82f5057b3 100644 --- a/sci-libs/kissfft/kissfft-131.1.0-r1.ebuild +++ b/sci-libs/kissfft/kissfft-131.1.0-r1.ebuild @@ -15,7 +15,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/mborgerding/kissfft/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~arm arm64 ~riscv ~x86" + KEYWORDS="amd64 ~arm arm64 ~riscv ~x86" fi LICENSE="BSD"
[gentoo-commits] repo/gentoo:master commit in: sci-libs/kissfft/
commit: a933ed6261bc2852e543e97fbdbaacd875c87d0f Author: Sam James gentoo org> AuthorDate: Fri Aug 30 02:30:15 2024 + Commit: Sam James gentoo org> CommitDate: Fri Aug 30 02:30:19 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a933ed62 sci-libs/kissfft: Stabilize 131.1.0-r1 x86, #938697 Signed-off-by: Sam James gentoo.org> sci-libs/kissfft/kissfft-131.1.0-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sci-libs/kissfft/kissfft-131.1.0-r1.ebuild b/sci-libs/kissfft/kissfft-131.1.0-r1.ebuild index fea82f5057b3..b4a8adf61398 100644 --- a/sci-libs/kissfft/kissfft-131.1.0-r1.ebuild +++ b/sci-libs/kissfft/kissfft-131.1.0-r1.ebuild @@ -15,7 +15,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/mborgerding/kissfft/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="amd64 ~arm arm64 ~riscv ~x86" + KEYWORDS="amd64 ~arm arm64 ~riscv x86" fi LICENSE="BSD"
[gentoo-commits] repo/gentoo:master commit in: sci-libs/kissfft/
commit: a72c4ac6944d4c12d8bd81240644679a5f63f0d0 Author: Sam James gentoo org> AuthorDate: Thu Aug 29 19:40:19 2024 + Commit: Sam James gentoo org> CommitDate: Thu Aug 29 19:40:19 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a72c4ac6 sci-libs/kissfft: Stabilize 131.1.0-r1 arm64, #938697 Signed-off-by: Sam James gentoo.org> sci-libs/kissfft/kissfft-131.1.0-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sci-libs/kissfft/kissfft-131.1.0-r1.ebuild b/sci-libs/kissfft/kissfft-131.1.0-r1.ebuild index 14e039c7eec1..ddf795e20e8c 100644 --- a/sci-libs/kissfft/kissfft-131.1.0-r1.ebuild +++ b/sci-libs/kissfft/kissfft-131.1.0-r1.ebuild @@ -15,7 +15,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/mborgerding/kissfft/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" + KEYWORDS="~amd64 ~arm arm64 ~riscv ~x86" fi LICENSE="BSD"
[gentoo-commits] repo/gentoo:master commit in: sci-libs/kissfft/, sci-libs/kissfft/files/
commit: 38ef80f7c87a6c640df9c801289dd28de96a0321 Author: David Roman gmail com> AuthorDate: Thu Feb 1 10:40:22 2024 + Commit: Yixun Lan gentoo org> CommitDate: Thu Feb 22 12:10:56 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38ef80f7 sci-libs/kissfft: add cmake patch Also: - update EAPI 7 -> 8 - add python12 support Signed-off-by: David Roman gmail.com> Signed-off-by: Yixun Lan gentoo.org> sci-libs/kissfft/files/kissfft-131.1.0-cmake.patch | 26 ++ ...ssfft-.ebuild => kissfft-131.1.0-r1.ebuild} | 9 sci-libs/kissfft/kissfft-.ebuild | 9 3 files changed, 36 insertions(+), 8 deletions(-) diff --git a/sci-libs/kissfft/files/kissfft-131.1.0-cmake.patch b/sci-libs/kissfft/files/kissfft-131.1.0-cmake.patch new file mode 100644 index ..a3cb3e468e17 --- /dev/null +++ b/sci-libs/kissfft/files/kissfft-131.1.0-cmake.patch @@ -0,0 +1,26 @@ +diff --git a/kissfft-config.cmake.in b/kissfft-config.cmake.in +index cd7139a..7d6c7a2 100644 +--- a/kissfft-config.cmake.in b/kissfft-config.cmake.in +@@ -66,14 +66,19 @@ foreach(_kissfft_datatype simd int16 int32 float double) + endforeach() + + if(_kissfft_datatype_detected) +-if(NOT TARGET kissfft::kissfft-${_kissfft_datatype_detected}) +-message(FATAL_ERROR "kissfft with datatype=${_kissfft_datatype_detected} is not installed") ++if(TARGET kissfft::kissfft-${_kissfft_datatype_detected}-openmp) ++ set(_kissfft_openmp_detected "-openmp") + endif() ++ ++if(NOT TARGET kissfft::kissfft-${_kissfft_datatype_detected}${_kissfft_openmp_detected}) ++message(FATAL_ERROR "kissfft with datatype=${_kissfft_datatype_detected}${_kissfft_openmp_detected} is not installed") ++endif() ++ + if(TARGET kissfft::kissfft) + message(SEND_ERROR "kissfft::kissfft already exists. You cannot use 2 find_package's with datatype that are visible to eachother.") + else() + add_library(kissfft::kissfft INTERFACE IMPORTED) +-set_property(TARGET kissfft::kissfft PROPERTY INTERFACE_LINK_LIBRARIES kissfft::kissfft-${_kissfft_datatype_detected}) ++set_property(TARGET kissfft::kissfft PROPERTY INTERFACE_LINK_LIBRARIES kissfft::kissfft-${_kissfft_datatype_detected}${_kissfft_openmp_detected}) + endif() + endif() diff --git a/sci-libs/kissfft/kissfft-.ebuild b/sci-libs/kissfft/kissfft-131.1.0-r1.ebuild similarity index 88% copy from sci-libs/kissfft/kissfft-.ebuild copy to sci-libs/kissfft/kissfft-131.1.0-r1.ebuild index 238fe43ab8ee..14e039c7eec1 100644 --- a/sci-libs/kissfft/kissfft-.ebuild +++ b/sci-libs/kissfft/kissfft-131.1.0-r1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -PYTHON_COMPAT=( python3_{9..11} ) +PYTHON_COMPAT=( python3_{9..12} ) inherit cmake python-any-r1 toolchain-funcs @@ -15,7 +15,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/mborgerding/kissfft/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~arm ~arm64 ~x86" + KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" fi LICENSE="BSD" @@ -34,6 +34,7 @@ DEPEND=" PATCHES=( "${FILESDIR}"/${PN}-131.1.0-cross.patch + "${FILESDIR}"/${PN}-131.1.0-cmake.patch ) python_check_deps() { diff --git a/sci-libs/kissfft/kissfft-.ebuild b/sci-libs/kissfft/kissfft-.ebuild index 238fe43ab8ee..14e039c7eec1 100644 --- a/sci-libs/kissfft/kissfft-.ebuild +++ b/sci-libs/kissfft/kissfft-.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -PYTHON_COMPAT=( python3_{9..11} ) +PYTHON_COMPAT=( python3_{9..12} ) inherit cmake python-any-r1 toolchain-funcs @@ -15,7 +15,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/mborgerding/kissfft/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~arm ~arm64 ~x86" + KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" fi LICENSE="BSD" @@ -34,6 +34,7 @@ DEPEND=" PATCHES=( "${FILESDIR}"/${PN}-131.1.0-cross.patch + "${FILESDIR}"/${PN}-131.1.0-cmake.patch ) python_check_deps() {
[gentoo-commits] repo/gentoo:master commit in: sci-libs/kissfft/
commit: 65862dd39aea472318251fa34b83ac67a006ddf9 Author: David Roman gmail com> AuthorDate: Thu Feb 1 10:43:20 2024 + Commit: Yixun Lan gentoo org> CommitDate: Thu Feb 22 12:11:21 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65862dd3 sci-libs/kissfft: add github upstream metadata Closes: https://github.com/gentoo/gentoo/pull/35132 Signed-off-by: David Roman gmail.com> Signed-off-by: Yixun Lan gentoo.org> sci-libs/kissfft/metadata.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sci-libs/kissfft/metadata.xml b/sci-libs/kissfft/metadata.xml index 06198343b639..9cc777a3ea9c 100644 --- a/sci-libs/kissfft/metadata.xml +++ b/sci-libs/kissfft/metadata.xml @@ -9,4 +9,7 @@ Use alloca(3) instead of malloc(3) for memory management Build command line tools + + mborgerding/kissfft +
[gentoo-commits] repo/gentoo:master commit in: sci-libs/kissfft/
commit: 1b97a23a2cd56c9855a76dd19fbca5b1808db774 Author: Jakov Smolić gentoo org> AuthorDate: Tue Jan 23 22:59:19 2024 + Commit: Jakov Smolić gentoo org> CommitDate: Tue Jan 23 22:59:19 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b97a23a sci-libs/kissfft: Keyword 131.1.0 riscv, #922617 Signed-off-by: Jakov Smolić gentoo.org> sci-libs/kissfft/kissfft-131.1.0.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sci-libs/kissfft/kissfft-131.1.0.ebuild b/sci-libs/kissfft/kissfft-131.1.0.ebuild index a06cd743a6c7..453b134283b6 100644 --- a/sci-libs/kissfft/kissfft-131.1.0.ebuild +++ b/sci-libs/kissfft/kissfft-131.1.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -15,7 +15,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/mborgerding/kissfft/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="amd64 ~arm ~arm64 ~x86" + KEYWORDS="amd64 ~arm ~arm64 ~riscv ~x86" fi LICENSE="BSD"
[gentoo-commits] repo/gentoo:master commit in: sci-libs/kissfft/files/
commit: e37b1ab4b48975628e7eab7791fd9e18417d3e77 Author: James Le Cuirot gentoo org> AuthorDate: Mon Dec 25 23:28:01 2023 + Commit: James Le Cuirot gentoo org> CommitDate: Mon Dec 25 23:28:01 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e37b1ab4 sci-libs/kissfft: Forgot to commit the patch No one noticed, right? ;) Signed-off-by: James Le Cuirot gentoo.org> sci-libs/kissfft/files/kissfft-131.1.0-cross.patch | 30 ++ 1 file changed, 30 insertions(+) diff --git a/sci-libs/kissfft/files/kissfft-131.1.0-cross.patch b/sci-libs/kissfft/files/kissfft-131.1.0-cross.patch new file mode 100644 index ..137a5a939872 --- /dev/null +++ b/sci-libs/kissfft/files/kissfft-131.1.0-cross.patch @@ -0,0 +1,30 @@ +From 8b308c28e5c3684ac002289b0eebc64500bbed1c Mon Sep 17 00:00:00 2001 +From: James Le Cuirot +Date: Sun, 24 Dec 2023 16:37:38 + +Subject: [PATCH] GNUInstallDirs is not supposed to be used conditionally + +Always include it to fix cross-compiling. This should not break Windows. + +Closes: https://github.com/mborgerding/kissfft/issues/65 +--- + CMakeLists.txt | 4 +--- + 1 file changed, 1 insertion(+), 3 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 0213798..c4d7d3e 100644 +--- a/CMakeLists.txt b/CMakeLists.txt +@@ -105,9 +105,7 @@ endif() + # Add GNUInstallDirs for GNU infrastructure before target)include_directories + # + +-if(CMAKE_SYSTEM_NAME MATCHES "^(Linux|kFreeBSD|GNU)$" AND NOT CMAKE_CROSSCOMPILING) +-include(GNUInstallDirs) +-endif() ++include(GNUInstallDirs) + + # + # Declare PKGINCLUDEDIR for kissfft include path +-- +2.43.0 +
[gentoo-commits] repo/gentoo:master commit in: sci-libs/kissfft/
commit: a864e26922f45315b1d723fed369142711d8e62c Author: James Le Cuirot gentoo org> AuthorDate: Sun Dec 24 16:42:35 2023 + Commit: James Le Cuirot gentoo org> CommitDate: Sun Dec 24 16:42:35 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a864e269 sci-libs/kissfft: Fix cross-compiling with patch Submitted upstream but sadly upstream looks a bit dead. Signed-off-by: James Le Cuirot gentoo.org> sci-libs/kissfft/kissfft-131.1.0.ebuild | 4 sci-libs/kissfft/kissfft-.ebuild| 4 2 files changed, 8 insertions(+) diff --git a/sci-libs/kissfft/kissfft-131.1.0.ebuild b/sci-libs/kissfft/kissfft-131.1.0.ebuild index 8cd5a54a6850..a06cd743a6c7 100644 --- a/sci-libs/kissfft/kissfft-131.1.0.ebuild +++ b/sci-libs/kissfft/kissfft-131.1.0.ebuild @@ -32,6 +32,10 @@ DEPEND=" ) " +PATCHES=( + "${FILESDIR}"/${PN}-131.1.0-cross.patch +) + python_check_deps() { python_has_version -d "dev-python/numpy[${PYTHON_USEDEP}]" } diff --git a/sci-libs/kissfft/kissfft-.ebuild b/sci-libs/kissfft/kissfft-.ebuild index 9bd7014dd1fb..238fe43ab8ee 100644 --- a/sci-libs/kissfft/kissfft-.ebuild +++ b/sci-libs/kissfft/kissfft-.ebuild @@ -32,6 +32,10 @@ DEPEND=" ) " +PATCHES=( + "${FILESDIR}"/${PN}-131.1.0-cross.patch +) + python_check_deps() { python_has_version -d "dev-python/numpy[${PYTHON_USEDEP}]" }
[gentoo-commits] repo/gentoo:master commit in: sci-libs/kissfft/
commit: 0be531f69a84588ff8712fb80bee2654a6061654 Author: Andrew Ammerlaan gentoo org> AuthorDate: Wed Oct 5 14:30:00 2022 + Commit: Andrew Ammerlaan gentoo org> CommitDate: Wed Oct 5 14:31:20 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0be531f6 sci-libs/kissfft: enable py3.10, py3.11 and disable py3.7 Closes: https://bugs.gentoo.org/846266 Signed-off-by: Andrew Ammerlaan gentoo.org> sci-libs/kissfft/kissfft-131.1.0.ebuild | 4 ++-- sci-libs/kissfft/kissfft-.ebuild| 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sci-libs/kissfft/kissfft-131.1.0.ebuild b/sci-libs/kissfft/kissfft-131.1.0.ebuild index 76993eb680fd..900a50486450 100644 --- a/sci-libs/kissfft/kissfft-131.1.0.ebuild +++ b/sci-libs/kissfft/kissfft-131.1.0.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{7..9} ) +PYTHON_COMPAT=( python3_{8..11} ) inherit cmake python-any-r1 toolchain-funcs @@ -33,7 +33,7 @@ DEPEND=" " python_check_deps() { - has_version -d "dev-python/numpy[${PYTHON_USEDEP}]" + python_has_version -d "dev-python/numpy[${PYTHON_USEDEP}]" } pkg_pretend() { diff --git a/sci-libs/kissfft/kissfft-.ebuild b/sci-libs/kissfft/kissfft-.ebuild index bc06fee4c8e0..814cce24e11a 100644 --- a/sci-libs/kissfft/kissfft-.ebuild +++ b/sci-libs/kissfft/kissfft-.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{7..9} ) +PYTHON_COMPAT=( python3_{8..11} ) inherit cmake python-any-r1 toolchain-funcs @@ -33,7 +33,7 @@ DEPEND=" " python_check_deps() { - has_version -d "dev-python/numpy[${PYTHON_USEDEP}]" + python_has_version -d "dev-python/numpy[${PYTHON_USEDEP}]" } pkg_pretend() {
[gentoo-commits] repo/gentoo:master commit in: sci-libs/kissfft/
commit: 3d8b98664e9f771d493c7ac52f63dc27b7a57a53 Author: Joonas Niilola gentoo org> AuthorDate: Thu May 19 12:10:52 2022 + Commit: Joonas Niilola gentoo org> CommitDate: Thu May 19 12:10:52 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d8b9866 sci-libs/kissfft: Stabilize 131.1.0 amd64, #829841 Signed-off-by: Joonas Niilola gentoo.org> sci-libs/kissfft/kissfft-131.1.0.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sci-libs/kissfft/kissfft-131.1.0.ebuild b/sci-libs/kissfft/kissfft-131.1.0.ebuild index bc06fee4c8e0..76993eb680fd 100644 --- a/sci-libs/kissfft/kissfft-131.1.0.ebuild +++ b/sci-libs/kissfft/kissfft-131.1.0.ebuild @@ -15,7 +15,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/mborgerding/kissfft/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~arm ~arm64 ~x86" + KEYWORDS="amd64 ~arm ~arm64 ~x86" fi LICENSE="BSD"
[gentoo-commits] repo/gentoo:master commit in: sci-libs/kissfft/
commit: 4fd9cba02c85e6a99cadae42dcef198ac14dcc84 Author: David Seifert gentoo org> AuthorDate: Mon May 16 08:12:19 2022 + Commit: David Seifert gentoo org> CommitDate: Mon May 16 08:12:19 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4fd9cba0 sci-libs/kissfft: [QA] use tc-check-openmp correctly Signed-off-by: David Seifert gentoo.org> sci-libs/kissfft/kissfft-131.1.0.ebuild | 6 +- sci-libs/kissfft/kissfft-.ebuild| 6 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/sci-libs/kissfft/kissfft-131.1.0.ebuild b/sci-libs/kissfft/kissfft-131.1.0.ebuild index 719285275283..bc06fee4c8e0 100644 --- a/sci-libs/kissfft/kissfft-131.1.0.ebuild +++ b/sci-libs/kissfft/kissfft-131.1.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -36,6 +36,10 @@ python_check_deps() { has_version -d "dev-python/numpy[${PYTHON_USEDEP}]" } +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + pkg_setup() { use test && python-any-r1_pkg_setup [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp diff --git a/sci-libs/kissfft/kissfft-.ebuild b/sci-libs/kissfft/kissfft-.ebuild index 719285275283..bc06fee4c8e0 100644 --- a/sci-libs/kissfft/kissfft-.ebuild +++ b/sci-libs/kissfft/kissfft-.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -36,6 +36,10 @@ python_check_deps() { has_version -d "dev-python/numpy[${PYTHON_USEDEP}]" } +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + pkg_setup() { use test && python-any-r1_pkg_setup [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
[gentoo-commits] repo/gentoo:master commit in: sci-libs/kissfft/
commit: ba2eb87c865d17a690ed0db9dacdb957a5b3f2c4 Author: Aisha Tammy bsd ac> AuthorDate: Mon May 17 22:23:19 2021 + Commit: Sam James gentoo org> CommitDate: Mon May 17 22:25:12 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba2eb87c sci-libs/kissfft: fix tests Closes: https://bugs.gentoo.org/790302 Signed-off-by: Aisha Tammy aisha.cc> Closes: https://github.com/gentoo/gentoo/pull/20857 Signed-off-by: Sam James gentoo.org> sci-libs/kissfft/kissfft-131.1.0.ebuild | 2 +- sci-libs/kissfft/kissfft-.ebuild| 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sci-libs/kissfft/kissfft-131.1.0.ebuild b/sci-libs/kissfft/kissfft-131.1.0.ebuild index d85c68aee2c..71928527528 100644 --- a/sci-libs/kissfft/kissfft-131.1.0.ebuild +++ b/sci-libs/kissfft/kissfft-131.1.0.ebuild @@ -43,7 +43,7 @@ pkg_setup() { src_configure() { local mycmakeargs=( - -DKISSFFT_OPENMP=$(usex openmp) + -DKISSFFT_OPENMP=$(usex openmp 1 0) -DKISSFFT_TEST=$(usex test) -DKISSFFT_TOOLS=$(usex tools) -DKISSFFT_USE_ALLOCA=$(usex alloca) diff --git a/sci-libs/kissfft/kissfft-.ebuild b/sci-libs/kissfft/kissfft-.ebuild index ad2bc1ff31a..71928527528 100644 --- a/sci-libs/kissfft/kissfft-.ebuild +++ b/sci-libs/kissfft/kissfft-.ebuild @@ -15,7 +15,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/mborgerding/kissfft/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~x86" + KEYWORDS="~amd64 ~arm ~arm64 ~x86" fi LICENSE="BSD" @@ -43,7 +43,7 @@ pkg_setup() { src_configure() { local mycmakeargs=( - -DKISSFFT_OPENMP=$(usex openmp) + -DKISSFFT_OPENMP=$(usex openmp 1 0) -DKISSFFT_TEST=$(usex test) -DKISSFFT_TOOLS=$(usex tools) -DKISSFFT_USE_ALLOCA=$(usex alloca)
[gentoo-commits] repo/gentoo:master commit in: sci-libs/kissfft/
commit: 352cc4248b47db1d7b72d2e653612b71566940c0 Author: Sam James gentoo org> AuthorDate: Sat May 15 19:32:54 2021 + Commit: Sam James gentoo org> CommitDate: Sat May 15 19:32:54 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=352cc424 sci-libs/kissfft: Keyword 131.1.0 arm, #787380 Signed-off-by: Sam James gentoo.org> sci-libs/kissfft/kissfft-131.1.0.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sci-libs/kissfft/kissfft-131.1.0.ebuild b/sci-libs/kissfft/kissfft-131.1.0.ebuild index ad2bc1ff31a..6a30a96033a 100644 --- a/sci-libs/kissfft/kissfft-131.1.0.ebuild +++ b/sci-libs/kissfft/kissfft-131.1.0.ebuild @@ -15,7 +15,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/mborgerding/kissfft/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~x86" + KEYWORDS="~amd64 ~arm ~x86" fi LICENSE="BSD"
[gentoo-commits] repo/gentoo:master commit in: sci-libs/kissfft/
commit: 1c0ffc309f55b5d8076c6df85712d59f05535963 Author: Sam James gentoo org> AuthorDate: Sat May 15 19:33:04 2021 + Commit: Sam James gentoo org> CommitDate: Sat May 15 19:33:04 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c0ffc30 sci-libs/kissfft: Keyword 131.1.0 arm64, #787380 Signed-off-by: Sam James gentoo.org> sci-libs/kissfft/kissfft-131.1.0.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sci-libs/kissfft/kissfft-131.1.0.ebuild b/sci-libs/kissfft/kissfft-131.1.0.ebuild index 6a30a96033a..d85c68aee2c 100644 --- a/sci-libs/kissfft/kissfft-131.1.0.ebuild +++ b/sci-libs/kissfft/kissfft-131.1.0.ebuild @@ -15,7 +15,7 @@ if [[ ${PV} == * ]] ; then inherit git-r3 else SRC_URI="https://github.com/mborgerding/kissfft/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~arm ~x86" + KEYWORDS="~amd64 ~arm ~arm64 ~x86" fi LICENSE="BSD"
[gentoo-commits] repo/gentoo:master commit in: sci-libs/kissfft/
commit: 395eb9c6329ad0d2790d190b0441928563b116ad Author: Aisha Tammy bsd ac> AuthorDate: Fri Apr 23 16:46:36 2021 + Commit: David Seifert gentoo org> CommitDate: Fri Apr 23 16:46:36 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=395eb9c6 sci-libs/kissfft: new fft library * new dependency of vtk Closes: https://github.com/gentoo/gentoo/pull/20513 Closes: https://bugs.gentoo.org/754690 Bug: https://bugs.gentoo.org/754684 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Aisha Tammy aisha.cc> Signed-off-by: David Seifert gentoo.org> sci-libs/kissfft/Manifest | 1 + sci-libs/kissfft/kissfft-131.1.0.ebuild | 54 + sci-libs/kissfft/kissfft-.ebuild| 54 + sci-libs/kissfft/metadata.xml | 16 ++ 4 files changed, 125 insertions(+) diff --git a/sci-libs/kissfft/Manifest b/sci-libs/kissfft/Manifest new file mode 100644 index 000..12e96cdb00e --- /dev/null +++ b/sci-libs/kissfft/Manifest @@ -0,0 +1 @@ +DIST kissfft-131.1.0.tar.gz 52383 BLAKE2B 74e6d2e7d132a311b31c28a468e13d9772a53f0ea0abed0e0f49d8db9c183fb0646f58fd38df3e797b8577285899daf6b80446b149ce2582bb828410656d96df SHA512 bd715868ce0e93a291a0592fb1f8b960e832fc64efe863755e52b67d5addff9bcb444a1bf2570d1914c52b41dad1023d0d86400f5ea30c9fb84cd6b4f7210708 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 000..ad2bc1ff31a --- /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} == * ]] ; 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-.ebuild b/sci-libs/kissfft/kissfft-.ebuild new file mode 100644 index 000..ad2bc1ff31a --- /dev/null +++ b/sci-libs/kissfft/kissfft-.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} == * ]] ; 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 000..1dd34da24f4 --- /dev/null +++ b/sci-libs/kissfft/metadata.xml @@ -0,0 +1,16 @@ + +http://www.