commit:     9623a3e98fc0f8e3658488d31f0708505505fa89
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 22 22:26:06 2023 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Fri Dec 22 22:26:53 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9623a3e9

sci-libs/caffe2: fix install without cuda

Closes: https://bugs.gentoo.org/920549
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 sci-libs/caffe2/{caffe2-2.1.1-r3.ebuild => caffe2-2.1.1-r4.ebuild} | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sci-libs/caffe2/caffe2-2.1.1-r3.ebuild 
b/sci-libs/caffe2/caffe2-2.1.1-r4.ebuild
similarity index 99%
rename from sci-libs/caffe2/caffe2-2.1.1-r3.ebuild
rename to sci-libs/caffe2/caffe2-2.1.1-r4.ebuild
index d2022d69585d..ac5b4024c28f 100644
--- a/sci-libs/caffe2/caffe2-2.1.1-r3.ebuild
+++ b/sci-libs/caffe2/caffe2-2.1.1-r4.ebuild
@@ -211,5 +211,8 @@ src_install() {
        cp torch/version.py python/torch/ || die
        python_domodule python/caffe2
        python_domodule python/torch
+       if use cuda; then
+               python_domodule python/nvfuser
+       fi
        find "${ED}" -empty -delete
 }

Reply via email to