diff options
author | Rick Farina <zerochaos@gentoo.org> | 2024-01-17 21:27:17 -0500 |
---|---|---|
committer | Rick Farina <zerochaos@gentoo.org> | 2024-01-17 21:39:12 -0500 |
commit | df5779f6acc052dd3150ba8176caa7163d42a151 (patch) | |
tree | a9b5a89aff2d55de5c9cd5a49301f302a990bec5 /sci-libs/volk | |
parent | net-analyzer/multimon-ng: drop 1.2.0 (diff) | |
download | gentoo-df5779f6acc052dd3150ba8176caa7163d42a151.tar.gz gentoo-df5779f6acc052dd3150ba8176caa7163d42a151.tar.bz2 gentoo-df5779f6acc052dd3150ba8176caa7163d42a151.zip |
sci-libs/volk: add 3.1.0
Signed-off-by: Rick Farina <zerochaos@gentoo.org>
Diffstat (limited to 'sci-libs/volk')
-rw-r--r-- | sci-libs/volk/Manifest | 1 | ||||
-rw-r--r-- | sci-libs/volk/volk-3.1.0.ebuild | 58 |
2 files changed, 59 insertions, 0 deletions
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 +} |