summaryrefslogtreecommitdiff
path: root/sci-libs
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-05-14 22:02:07 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-05-14 22:02:07 +0100
commit78db24b58a7f75bf18548cbf5c3b210f2f33f2f4 (patch)
tree53f180d30387a94fd028e0c5a10635621ebeb98f /sci-libs
parent153fd195574cc30040446316bb666af0e58d985f (diff)
gentoo auto-resync : 14:05:2023 - 22:02:07
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/Manifest.gzbin44329 -> 44479 bytes
-rw-r--r--sci-libs/datasets/Manifest2
-rw-r--r--sci-libs/datasets/datasets-2.11.0-r1.ebuild (renamed from sci-libs/datasets/datasets-2.11.0.ebuild)8
-rw-r--r--sci-libs/jiwer/Manifest4
-rw-r--r--sci-libs/jiwer/files/jiwer-3.0.1-tests.patch31
-rw-r--r--sci-libs/jiwer/jiwer-3.0.1.ebuild27
-rw-r--r--sci-libs/jiwer/metadata.xml12
-rw-r--r--sci-libs/tensorpipe/Manifest4
-rw-r--r--sci-libs/tensorpipe/metadata.xml3
-rw-r--r--sci-libs/tensorpipe/tensorpipe-2022.05.13-r1.ebuild (renamed from sci-libs/tensorpipe/tensorpipe-2022.05.13.ebuild)14
10 files changed, 93 insertions, 12 deletions
diff --git a/sci-libs/Manifest.gz b/sci-libs/Manifest.gz
index e6360cf4a1ec..67308abe8a64 100644
--- a/sci-libs/Manifest.gz
+++ b/sci-libs/Manifest.gz
Binary files differ
diff --git a/sci-libs/datasets/Manifest b/sci-libs/datasets/Manifest
index 60c41a959a09..7f194fcc9e7a 100644
--- a/sci-libs/datasets/Manifest
+++ b/sci-libs/datasets/Manifest
@@ -1,4 +1,4 @@
AUX datasets-2.11.0-tests.patch 6391 BLAKE2B ce947a4c52b224d860b58ee7cbe2cbeb006d0f532b29b6d67e2d3a60fcad50e6a9e63534bc6dccb8a6d83ddaca6b8bce81fafafa22265f5ac44964347e18244c SHA512 a89d57195acbc5e99d7dc4adbd1dde0f04461421fbfef8735964ff41e90b071f03526acbfe4a266ae8a4e3a1796c39ffebe299a8638c2a476d23d1c75f8495ee
DIST datasets-2.11.0.gh.tar.gz 2141289 BLAKE2B 0fb471dd6ee5de3831eb6586c4a15e67381262470b72d5ab02ee87dfc7977cb4d40e04da6507049d1e47cb8948cad11988bb7627293b48231e1cd413d2cfb885 SHA512 9ec2274d7978e3dde1b2f8ce78dd65bdf66742bbfee7b8672af46216aeaae3ef5c4604a8a5ea0bdee808f1c362cca9a122c16d2e9a161678148e581e4cd5c863
-EBUILD datasets-2.11.0.ebuild 1393 BLAKE2B 9a4e44ff67d4dfceffa95b8710a6f7dd5b97d071cfcd1dbeb86d9c9a52168f211cc65f02268a94a5f6e41871e8caededab126ec9e109862d1d4b3b66b88938ae SHA512 b7aef0e39a2693af36e478c857b1e339ae5ef46b45f9477eacdac08aa737c53bf99e0c7f2d418a7ac5fe5e8dbbdbe4bfb1ab28bc801219f8c3e07bb84632eae3
+EBUILD datasets-2.11.0-r1.ebuild 1330 BLAKE2B 9a2ce5b9420d51ec0cd4e925a3619f4382534c607e9100b6f90a947a8814040dda202485b470bb491af391d877d370a92841c95f64181f2646505a97a75fc171 SHA512 18fb6c7cd4109510274112284d740b2c052ce54d6c6f31ece8d55bbb2f959435125b71a7fb7f580d885295ec6744852ffa938ad8fd79302b34b13039c6fb15c3
MISC metadata.xml 379 BLAKE2B 48ebb9e7bfa8b58b0d15b82c4146def465e08cf3212ab4af04129d09c153b67b00d0fa05b94d6af54f643ec3a202f2335d3254b966f49d1394d3c7b9e5da56a5 SHA512 99560decfaa0e438980f372d99257695e9ca9585167d9aba091e0b775c2f8384657ddc017841c8f06f8b568017a54fb9e31da736f3c875da717e154cdce876d1
diff --git a/sci-libs/datasets/datasets-2.11.0.ebuild b/sci-libs/datasets/datasets-2.11.0-r1.ebuild
index b7c020779cce..977bf0d698b9 100644
--- a/sci-libs/datasets/datasets-2.11.0.ebuild
+++ b/sci-libs/datasets/datasets-2.11.0-r1.ebuild
@@ -42,16 +42,10 @@ BDEPEND="test? (
$(python_gen_cond_dep '
dev-python/pytest-datadir[${PYTHON_USEDEP}]
dev-python/decorator[${PYTHON_USEDEP}]
+ sci-libs/jiwer[${PYTHON_USEDEP}]
')
)"
PATCHES=( "${FILESDIR}"/${P}-tests.patch )
distutils_enable_tests pytest
-
-src_prepare() {
- # Require jiwer
- rm metrics/cer/test_cer.py || die
-
- distutils-r1_src_prepare
-}
diff --git a/sci-libs/jiwer/Manifest b/sci-libs/jiwer/Manifest
new file mode 100644
index 000000000000..ca6738a490e3
--- /dev/null
+++ b/sci-libs/jiwer/Manifest
@@ -0,0 +1,4 @@
+AUX jiwer-3.0.1-tests.patch 790 BLAKE2B dda351c97d0807c327d0438eb3849e15a9b30753c3e7350fa522ebc6d861fa5f3ecbf01b9c55bfad921e6a605178c0175ead21f450677518da26de9faf2120d4 SHA512 e8b8bacbb051b20e8b6cf9e93542dd31828cc052fea773335d7ec4b8a27d2c06c2ba7a8a58f91d02434907aeb1d499e411d69e6daf56cb3420a3ccfbcc51ea35
+DIST jiwer-3.0.1.gh.tar.gz 24015 BLAKE2B 634b1c7613a29ee492a108c09d3adeeec6ce975e3663505db5f02258f37f53933f0c6e12c9f0ab48274798bdc130e8ceb5d201b3090af3b9fcbba3ccf66a261e SHA512 9a455ec8687947531dc18f89aa898d7906e1e94f803fa05f3e4689b074e05a13b3b653cbc621c723c8d9776c0c787d7a4978eca3efb90c4abded7e7f6b13ca9e
+EBUILD jiwer-3.0.1.ebuild 608 BLAKE2B bdd1fd3afa9dc26bd7dedb13c6b82886c710588def8e3a7055053f9bcc5cce873ccf32aafab98e71cd6372bf5cb35a14fa32154443f513d4820526afea1db531 SHA512 65a411b1114412222f6b18118264cf4b2a35874ccfca6f35f9b42361fb083da019480dcc638da157d56ffe997320d5848d78542f08b70bca88f02b0bb8f69e92
+MISC metadata.xml 367 BLAKE2B 474dd86fe7addc587bea0b16430e99e5c69148099c1fba0cd58022dbe83411e83e1455320ed4ea1a54c4c74932bcbaa5e793223023d795639babb64d7751a876 SHA512 9bbed0bbfca58ff29129a6e3cceaa075da22576c840595e0a1471baa8e8e00f4f3407c88bbd46755c498a058d89220e3c0864157fd61850ab4c73d3f2c4a110e
diff --git a/sci-libs/jiwer/files/jiwer-3.0.1-tests.patch b/sci-libs/jiwer/files/jiwer-3.0.1-tests.patch
new file mode 100644
index 000000000000..cfd9530985a3
--- /dev/null
+++ b/sci-libs/jiwer/files/jiwer-3.0.1-tests.patch
@@ -0,0 +1,31 @@
+--- a/tests/test_speed.py 2023-05-14 18:22:53.206560417 +0200
++++ b/tests/test_speed.py 2023-05-14 18:24:35.611996479 +0200
+@@ -1,4 +1,6 @@
+ from jiwer import wer
++import pytest
++
+
+
+ def perform_computation(num_sentences):
+@@ -8,17 +10,21 @@
+ wer(truth, hypo)
+
+
++@pytest.mark.skip(reason="require pytest-benchmark")
+ def test_speed_n1(benchmark):
+ benchmark(perform_computation, 1)
+
+
++@pytest.mark.skip(reason="require pytest-benchmark")
+ def test_speed_n10(benchmark):
+ benchmark(perform_computation, 10)
+
+
++@pytest.mark.skip(reason="require pytest-benchmark")
+ def test_speed_n100(benchmark):
+ benchmark(perform_computation, 100)
+
+
++@pytest.mark.skip(reason="require pytest-benchmark")
+ def test_speed_n1000(benchmark):
+ benchmark(perform_computation, 1000)
diff --git a/sci-libs/jiwer/jiwer-3.0.1.ebuild b/sci-libs/jiwer/jiwer-3.0.1.ebuild
new file mode 100644
index 000000000000..dcf61747a15a
--- /dev/null
+++ b/sci-libs/jiwer/jiwer-3.0.1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( python3_{9..11} )
+inherit distutils-r1
+
+DESCRIPTION="Evaluate an automatic speech recognition system"
+HOMEPAGE="
+ https://github.com/jitsi/jiwer
+ https://pypi.org/project/jiwer/
+"
+SRC_URI="https://github.com/jitsi/${PN}/archive/refs/tags/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+BDEPEND="test? (
+ dev-python/rapidfuzz[${PYTHON_USEDEP}]
+)"
+
+distutils_enable_tests pytest
+
+PATCHES=( "${FILESDIR}"/${P}-tests.patch )
diff --git a/sci-libs/jiwer/metadata.xml b/sci-libs/jiwer/metadata.xml
new file mode 100644
index 000000000000..183cb49efbc4
--- /dev/null
+++ b/sci-libs/jiwer/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>tupone@gentoo.org</email>
+ <name>Tupone Alfredo</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">jiwer</remote-id>
+ <remote-id type="github">jitsi/jiwer</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-libs/tensorpipe/Manifest b/sci-libs/tensorpipe/Manifest
index c5bb13a8fdf1..694912c39de3 100644
--- a/sci-libs/tensorpipe/Manifest
+++ b/sci-libs/tensorpipe/Manifest
@@ -1,4 +1,4 @@
AUX tensorpipe-2022.05.13-gentoo.patch 522 BLAKE2B b5efc8193549a84569125794e65a931343f26996f487158f39dd6c9d1689ecd1390bae1616e1f498461a3b4b0a17478a8a14c1cbd6b76c82b7dc2a4452e72d7e SHA512 3c8cd91daf9cf1c4249c5e5f7154f9d4495d33ab011802f83a96d056723ebfb86406f4bc9c8bacc8af2a70336d706de9d88d538d196348d2d6ea4e56886b5162
DIST tensorpipe-2022.05.13.tar.gz 259678 BLAKE2B 09231216b7ea1a5f4559bfd38d82337cdcde160c34ceb160c728b85ccf94566b812f0c38b6d3f6bc74b6f08b49b749939970265df343e3ca0214803f9d88e58c SHA512 cf0334f81affb2d844bc8b63c533a749753e36ee096f841641716a3bf044b17580262a2e9056d8d1351228e323c4f75401a2a120a5de397e80ec21a33fe56d2b
-EBUILD tensorpipe-2022.05.13.ebuild 569 BLAKE2B 70d536748302b8a0fa0fcbbc96b45901ab242bf0eaa3f7d2ab92da0280fc7a252673dc62ae426c3844bf52817e9456087d9eda270659784d96b7e207d7fb9449 SHA512 517023c737aed9ab89783f28c88b4cb68c5bd4bfb90dba56fe99edf4d585addfafd47e4efb352e7a9a6ffe0bd322a17a6396feaf0998bb7d435d3d47160e726e
-MISC metadata.xml 331 BLAKE2B 6a5a854e8e6c987dc1b105a3c905d8113b0613e63f479e700f85a01b96e4b939de8706bc876c1bf44bd61f40b9b3b18eb87f3899c1f3697ddfb5ca6bed2a7a61 SHA512 8843f661956cdbfbda49aebfe4586c5eaafa7e7b82f134d5881e46ac6ebf69b20167f532a372280be17ae29016aca82e2930762b2bdbb7616918b7200a3a2a49
+EBUILD tensorpipe-2022.05.13-r1.ebuild 715 BLAKE2B acf19eb22134d1a77d7b421702a98e907104747c87afb16253680c72dc000ae10ef2e356678384e71522032e1ad52f8fc0e6f5f26332c0d30b459c87a2e99bc7 SHA512 b84ba32b1f4abe94db73418625184f0a843170a6604dcaa9a855a3905d09efeb82cdfbc461248cd9b4cfbf740b5aa3001b504d3adacf2ae7b8404a703d78830c
+MISC metadata.xml 405 BLAKE2B 8204155408fdc2a096eb6bfc28958c0b355d15f3c0afe30143b6919a0db1762d77c9e7048de5dcb210514fd56c2cad387e1bed365b66d51bf77917813fd27496 SHA512 2810baff83febd987e2c7d66a57e491ad7e13be65c0eb965955fce00b2f62811938c1aa9b9401b1764b710ca573c57a42fe328de6de7060aa0e0ab8d481fe1aa
diff --git a/sci-libs/tensorpipe/metadata.xml b/sci-libs/tensorpipe/metadata.xml
index a676d5dbb87a..0771cea93d5e 100644
--- a/sci-libs/tensorpipe/metadata.xml
+++ b/sci-libs/tensorpipe/metadata.xml
@@ -5,6 +5,9 @@
<email>tupone@gentoo.org</email>
<name>Tupone Alfredo</name>
</maintainer>
+ <use>
+ <flag name="cuda">Add support for CUDA processing</flag>
+ </use>
<upstream>
<remote-id type="github">pytorch/tensorpipe</remote-id>
</upstream>
diff --git a/sci-libs/tensorpipe/tensorpipe-2022.05.13.ebuild b/sci-libs/tensorpipe/tensorpipe-2022.05.13-r1.ebuild
index 23422f9cc125..734a2050cf07 100644
--- a/sci-libs/tensorpipe/tensorpipe-2022.05.13.ebuild
+++ b/sci-libs/tensorpipe/tensorpipe-2022.05.13-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2022 Gentoo Authors
+# Copyright 2022-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -15,16 +15,26 @@ SRC_URI="https://github.com/pytorch/${PN}/archive/${CommitId}.tar.gz
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
+IUSE="cuda"
RESTRICT=test
RDEPEND="
dev-libs/libuv
+ cuda? (
+ dev-util/nvidia-cuda-toolkit:=
+ )
"
DEPEND="${RDEPEND}
dev-libs/libnop
"
-BDEPEND=""
S="${WORKDIR}"/${PN}-${CommitId}
PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
+
+src_configure() {
+ local mycmakeargs=(
+ -DTP_USE_CUDA=$(usex cuda)
+ )
+ cmake_src_configure
+}