Gentoo Archives: gentoo-commits

From: Aisha Tammy <gentoo@×××××.cc>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-chemistry/MotionCor2/
Date: Thu, 31 Dec 2020 04:46:47
Message-Id: 1609389997.c3cb98a6a4ee1d7fad29a906f2e7fda3db04526a.epsilon-0@gentoo
1 commit: c3cb98a6a4ee1d7fad29a906f2e7fda3db04526a
2 Author: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
3 AuthorDate: Thu Dec 31 04:46:37 2020 +0000
4 Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
5 CommitDate: Thu Dec 31 04:46:37 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=c3cb98a6
7
8 sci-chemistry/MotionCor2: add symlink to binary
9
10 Package-Manager: Portage-3.0.12, Repoman-3.0.2
11 Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>
12
13 sci-chemistry/MotionCor2/MotionCor2-1.4.0.ebuild | 9 ++++++---
14 1 file changed, 6 insertions(+), 3 deletions(-)
15
16 diff --git a/sci-chemistry/MotionCor2/MotionCor2-1.4.0.ebuild b/sci-chemistry/MotionCor2/MotionCor2-1.4.0.ebuild
17 index 99b3b14cd..e1f880d28 100644
18 --- a/sci-chemistry/MotionCor2/MotionCor2-1.4.0.ebuild
19 +++ b/sci-chemistry/MotionCor2/MotionCor2-1.4.0.ebuild
20 @@ -11,7 +11,7 @@ S="${WORKDIR}"/${PN}_${PV}
21 LICENSE="UCSF-Motioncor2"
22 SLOT="0"
23 KEYWORDS="~amd64"
24 -IUSE="cuda92 cuda102"
25 +IUSE="cuda92 +cuda102"
26 REQUIRED_USE="^^ ( cuda92 cuda102 )"
27 RESTRICT="fetch"
28
29 @@ -37,9 +37,12 @@ src_install() {
30
31 # package also has 10.0 10.1 11.0 versions
32 # but these cuda versions are not in ::gentoo
33 + local mcbin
34 if use cuda92; then
35 - dobin ${PN}_${PV}-Cuda92 ${PN}
36 + mcbin="${PN}_${PV}_Cuda92"
37 elif use cuda102; then
38 - dobin ${PN}_${PV}-Cuda102 ${PN}
39 + mcbin="${PN}_${PV}_Cuda102"
40 fi
41 + dobin "${mcbin}"
42 + dosym "${mcbin}" /usr/bin/MotionCor2
43 }