1 |
commit: 395eb9c6329ad0d2790d190b0441928563b116ad |
2 |
Author: Aisha Tammy <floss <AT> bsd <DOT> ac> |
3 |
AuthorDate: Fri Apr 23 16:46:36 2021 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 23 16:46:36 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=395eb9c6 |
7 |
|
8 |
sci-libs/kissfft: new fft library |
9 |
|
10 |
* new dependency of vtk |
11 |
|
12 |
Closes: https://github.com/gentoo/gentoo/pull/20513 |
13 |
Closes: https://bugs.gentoo.org/754690 |
14 |
Bug: https://bugs.gentoo.org/754684 |
15 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
16 |
Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc> |
17 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
18 |
|
19 |
sci-libs/kissfft/Manifest | 1 + |
20 |
sci-libs/kissfft/kissfft-131.1.0.ebuild | 54 +++++++++++++++++++++++++++++++++ |
21 |
sci-libs/kissfft/kissfft-9999.ebuild | 54 +++++++++++++++++++++++++++++++++ |
22 |
sci-libs/kissfft/metadata.xml | 16 ++++++++++ |
23 |
4 files changed, 125 insertions(+) |
24 |
|
25 |
diff --git a/sci-libs/kissfft/Manifest b/sci-libs/kissfft/Manifest |
26 |
new file mode 100644 |
27 |
index 00000000000..12e96cdb00e |
28 |
--- /dev/null |
29 |
+++ b/sci-libs/kissfft/Manifest |
30 |
@@ -0,0 +1 @@ |
31 |
+DIST kissfft-131.1.0.tar.gz 52383 BLAKE2B 74e6d2e7d132a311b31c28a468e13d9772a53f0ea0abed0e0f49d8db9c183fb0646f58fd38df3e797b8577285899daf6b80446b149ce2582bb828410656d96df SHA512 bd715868ce0e93a291a0592fb1f8b960e832fc64efe863755e52b67d5addff9bcb444a1bf2570d1914c52b41dad1023d0d86400f5ea30c9fb84cd6b4f7210708 |
32 |
|
33 |
diff --git a/sci-libs/kissfft/kissfft-131.1.0.ebuild b/sci-libs/kissfft/kissfft-131.1.0.ebuild |
34 |
new file mode 100644 |
35 |
index 00000000000..ad2bc1ff31a |
36 |
--- /dev/null |
37 |
+++ b/sci-libs/kissfft/kissfft-131.1.0.ebuild |
38 |
@@ -0,0 +1,54 @@ |
39 |
+# Copyright 1999-2021 Gentoo Authors |
40 |
+# Distributed under the terms of the GNU General Public License v2 |
41 |
+ |
42 |
+EAPI=7 |
43 |
+ |
44 |
+PYTHON_COMPAT=( python3_{7..9} ) |
45 |
+ |
46 |
+inherit cmake python-any-r1 toolchain-funcs |
47 |
+ |
48 |
+DESCRIPTION="A Fast Fourier Transform (FFT) library that tries to Keep it Simple, Stupid" |
49 |
+HOMEPAGE="https://github.com/mborgerding/kissfft" |
50 |
+ |
51 |
+if [[ ${PV} == *9999 ]] ; then |
52 |
+ EGIT_REPO_URI="https://github.com/mborgerding/kissfft" |
53 |
+ inherit git-r3 |
54 |
+else |
55 |
+ SRC_URI="https://github.com/mborgerding/kissfft/archive/${PV}.tar.gz -> ${P}.tar.gz" |
56 |
+ KEYWORDS="~amd64 ~x86" |
57 |
+fi |
58 |
+ |
59 |
+LICENSE="BSD" |
60 |
+SLOT="0" |
61 |
+IUSE="alloca cpu_flags_x86_sse openmp test tools" |
62 |
+RESTRICT="!test? ( test )" |
63 |
+ |
64 |
+DEPEND=" |
65 |
+ test? ( |
66 |
+ sci-libs/fftw:3.0 |
67 |
+ $(python_gen_any_dep ' |
68 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
69 |
+ ') |
70 |
+ ) |
71 |
+" |
72 |
+ |
73 |
+python_check_deps() { |
74 |
+ has_version -d "dev-python/numpy[${PYTHON_USEDEP}]" |
75 |
+} |
76 |
+ |
77 |
+pkg_setup() { |
78 |
+ use test && python-any-r1_pkg_setup |
79 |
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
80 |
+} |
81 |
+ |
82 |
+src_configure() { |
83 |
+ local mycmakeargs=( |
84 |
+ -DKISSFFT_OPENMP=$(usex openmp) |
85 |
+ -DKISSFFT_TEST=$(usex test) |
86 |
+ -DKISSFFT_TOOLS=$(usex tools) |
87 |
+ -DKISSFFT_USE_ALLOCA=$(usex alloca) |
88 |
+ -DKISSFFT_DATATYPE=$(usex cpu_flags_x86_sse simd float) |
89 |
+ ) |
90 |
+ |
91 |
+ cmake_src_configure |
92 |
+} |
93 |
|
94 |
diff --git a/sci-libs/kissfft/kissfft-9999.ebuild b/sci-libs/kissfft/kissfft-9999.ebuild |
95 |
new file mode 100644 |
96 |
index 00000000000..ad2bc1ff31a |
97 |
--- /dev/null |
98 |
+++ b/sci-libs/kissfft/kissfft-9999.ebuild |
99 |
@@ -0,0 +1,54 @@ |
100 |
+# Copyright 1999-2021 Gentoo Authors |
101 |
+# Distributed under the terms of the GNU General Public License v2 |
102 |
+ |
103 |
+EAPI=7 |
104 |
+ |
105 |
+PYTHON_COMPAT=( python3_{7..9} ) |
106 |
+ |
107 |
+inherit cmake python-any-r1 toolchain-funcs |
108 |
+ |
109 |
+DESCRIPTION="A Fast Fourier Transform (FFT) library that tries to Keep it Simple, Stupid" |
110 |
+HOMEPAGE="https://github.com/mborgerding/kissfft" |
111 |
+ |
112 |
+if [[ ${PV} == *9999 ]] ; then |
113 |
+ EGIT_REPO_URI="https://github.com/mborgerding/kissfft" |
114 |
+ inherit git-r3 |
115 |
+else |
116 |
+ SRC_URI="https://github.com/mborgerding/kissfft/archive/${PV}.tar.gz -> ${P}.tar.gz" |
117 |
+ KEYWORDS="~amd64 ~x86" |
118 |
+fi |
119 |
+ |
120 |
+LICENSE="BSD" |
121 |
+SLOT="0" |
122 |
+IUSE="alloca cpu_flags_x86_sse openmp test tools" |
123 |
+RESTRICT="!test? ( test )" |
124 |
+ |
125 |
+DEPEND=" |
126 |
+ test? ( |
127 |
+ sci-libs/fftw:3.0 |
128 |
+ $(python_gen_any_dep ' |
129 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
130 |
+ ') |
131 |
+ ) |
132 |
+" |
133 |
+ |
134 |
+python_check_deps() { |
135 |
+ has_version -d "dev-python/numpy[${PYTHON_USEDEP}]" |
136 |
+} |
137 |
+ |
138 |
+pkg_setup() { |
139 |
+ use test && python-any-r1_pkg_setup |
140 |
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
141 |
+} |
142 |
+ |
143 |
+src_configure() { |
144 |
+ local mycmakeargs=( |
145 |
+ -DKISSFFT_OPENMP=$(usex openmp) |
146 |
+ -DKISSFFT_TEST=$(usex test) |
147 |
+ -DKISSFFT_TOOLS=$(usex tools) |
148 |
+ -DKISSFFT_USE_ALLOCA=$(usex alloca) |
149 |
+ -DKISSFFT_DATATYPE=$(usex cpu_flags_x86_sse simd float) |
150 |
+ ) |
151 |
+ |
152 |
+ cmake_src_configure |
153 |
+} |
154 |
|
155 |
diff --git a/sci-libs/kissfft/metadata.xml b/sci-libs/kissfft/metadata.xml |
156 |
new file mode 100644 |
157 |
index 00000000000..1dd34da24f4 |
158 |
--- /dev/null |
159 |
+++ b/sci-libs/kissfft/metadata.xml |
160 |
@@ -0,0 +1,16 @@ |
161 |
+<?xml version="1.0" encoding="UTF-8"?> |
162 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
163 |
+<pkgmetadata> |
164 |
+ <maintainer type="person" proxied="yes"> |
165 |
+ <email>gentoo@×××××.cc</email> |
166 |
+ <name>Aisha Tammy</name> |
167 |
+ </maintainer> |
168 |
+ <maintainer type="project"> |
169 |
+ <email>sci@g.o</email> |
170 |
+ <name>Gentoo Science Project</name> |
171 |
+ </maintainer> |
172 |
+ <use> |
173 |
+ <flag name="alloca">Use alloca(3) instead of malloc(3) for memory management</flag> |
174 |
+ <flag name="tools">Build command line tools</flag> |
175 |
+ </use> |
176 |
+</pkgmetadata> |