commit:     df5779f6acc052dd3150ba8176caa7163d42a151
Author:     Rick Farina <zerochaos <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 18 02:27:17 2024 +0000
Commit:     Rick Farina <zerochaos <AT> gentoo <DOT> org>
CommitDate: Thu Jan 18 02:39:12 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df5779f6

sci-libs/volk: add 3.1.0

Signed-off-by: Rick Farina <zerochaos <AT> gentoo.org>

 sci-libs/volk/Manifest          |  1 +
 sci-libs/volk/volk-3.1.0.ebuild | 58 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 59 insertions(+)

diff --git a/sci-libs/volk/Manifest b/sci-libs/volk/Manifest
index ccc9454c73e3..1e3ed7081c7e 100644
--- a/sci-libs/volk/Manifest
+++ b/sci-libs/volk/Manifest
@@ -1 +1,2 @@
 DIST volk-3.0.0.tar.xz 394044 BLAKE2B 
04e832916375610571387db521348df2a37f5460500c4bd6d223dd6af9c0a207f3b22c599fccbf9bd51b8a87ed90cb5239512c19fc6ddd02320b7aa27c3be588
 SHA512 
5d1ff90f28ec6ef2d21370d74025139ccc9872e5a477b271ffe6662725b7705203715ea4ffc430554ec2fec56e8d9b40a945e75186761995d3075218e1f16313
+DIST volk-3.1.0.tar.xz 420088 BLAKE2B 
709c3561675b0f71a1400d7b9332aa18c6d2ae848c993914cb40484890f631bde48da12ab9756be38cca9fbb20d0d851cb40ff5bfe3722ff72cd0b4daff1b11d
 SHA512 
0c39c06e5121782461c0ea2c84402c84f9609a2a09ce7218e976472081d09531746ea1cde767f329a69d72d51cf5715bf7f2df1b26a8d8ddd1694e8239f5ff21

diff --git a/sci-libs/volk/volk-3.1.0.ebuild b/sci-libs/volk/volk-3.1.0.ebuild
new file mode 100644
index 000000000000..0a400d90ff06
--- /dev/null
+++ b/sci-libs/volk/volk-3.1.0.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..12} )
+
+#https://github.com/gnuradio/volk/issues/383
+CMAKE_BUILD_TYPE="None"
+inherit cmake python-single-r1
+
+DESCRIPTION="vector optimized library of kernels"
+HOMEPAGE="http://libvolk.org";
+
+if [[ "${PV}" == "9999" ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/gnuradio/volk.git";
+else
+       
SRC_URI="https://github.com/gnuradio/volk/releases/download/v${PV}/${P}.tar.xz";
+       KEYWORDS="~amd64 ~arm ~riscv ~x86"
+fi
+
+LICENSE="GPL-3"
+SLOT="0/$(ver_cut 1-2)"
+IUSE="orc test"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+RDEPEND="${PYTHON_DEPS}
+       orc? ( dev-lang/orc )"
+DEPEND="${RDEPEND}
+       $(python_gen_cond_dep 'dev-python/mako[${PYTHON_USEDEP}]')"
+
+RESTRICT="!test? ( test )"
+
+src_configure() {
+       local mycmakeargs=(
+               -DENABLE_ORC=$(usex orc)
+               -DPYTHON_EXECUTABLE="${PYTHON}"
+               -DENABLE_TESTING="$(usex test)"
+               -DENABLE_PROFILING=OFF
+       )
+       cmake_src_configure
+}
+
+src_install() {
+       cmake_src_install
+       # Remove stray python files generated by the build system
+       find "${ED}" -name '*.pyc' -exec rm -f {} \; || die
+       find "${ED}" -name '*.pyo' -exec rm -f {} \; || die
+       python_optimize
+}
+
+src_test() {
+       local myctestargs=(
+               -E "(check_lgpl)"
+       )
+       cmake_src_test
+}

Reply via email to