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:41:41
Message-Id: 1609389632.23e59ba220dd5688d6e61f94e6522df06c5210a1.epsilon-0@gentoo
1 commit: 23e59ba220dd5688d6e61f94e6522df06c5210a1
2 Author: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
3 AuthorDate: Thu Dec 31 04:40:32 2020 +0000
4 Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
5 CommitDate: Thu Dec 31 04:40:32 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=23e59ba2
7
8 sci-chemistry/MotionCor2: version bump to 1.4.6
9
10 with comments from @AndrewAmmerlaan
11 Closes: https://github.com/gentoo/sci/pull/1002
12 Package-Manager: Portage-3.0.12, Repoman-3.0.2
13 RepoMan-Options: --force
14 Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>
15
16 sci-chemistry/MotionCor2/MotionCor2-1.4.0.ebuild | 45 ++++++++++++++++++++++++
17 sci-chemistry/MotionCor2/metadata.xml | 1 +
18 2 files changed, 46 insertions(+)
19
20 diff --git a/sci-chemistry/MotionCor2/MotionCor2-1.4.0.ebuild b/sci-chemistry/MotionCor2/MotionCor2-1.4.0.ebuild
21 new file mode 100644
22 index 000000000..99b3b14cd
23 --- /dev/null
24 +++ b/sci-chemistry/MotionCor2/MotionCor2-1.4.0.ebuild
25 @@ -0,0 +1,45 @@
26 +# Copyright 2019-2020 Gentoo Authors
27 +# Distributed under the terms of the GNU General Public License v2
28 +
29 +EAPI=7
30 +
31 +DESCRIPTION="Correction of electron beam-induced sample motion"
32 +HOMEPAGE="https://emcore.ucsf.edu/ucsf-motioncor2"
33 +SRC_URI="${PN}_${PV}.zip"
34 +S="${WORKDIR}"/${PN}_${PV}
35 +
36 +LICENSE="UCSF-Motioncor2"
37 +SLOT="0"
38 +KEYWORDS="~amd64"
39 +IUSE="cuda92 cuda102"
40 +REQUIRED_USE="^^ ( cuda92 cuda102 )"
41 +RESTRICT="fetch"
42 +
43 +RDEPEND="
44 + cuda92? ( =dev-util/nvidia-cuda-toolkit-9.2* )
45 + cuda102? ( =dev-util/nvidia-cuda-toolkit-10.2* )
46 + media-libs/tiff
47 + app-arch/xz-utils
48 + media-libs/libjpeg-turbo
49 +"
50 +BDEPEND="app-arch/unzip"
51 +
52 +pkg_nofetch() {
53 + elog "Please download ${PN}_${PV}.zip from:"
54 + elog "\t ${HOMEPAGE}"
55 + elog "and place it into ${DISTDIR}"
56 +}
57 +
58 +src_install() {
59 + dodoc MotionCor2-UserManual-10-08-2020.pdf \
60 + MotionCor2_1.4.0_ReleaseIntro-10-14-2020.docx
61 + docompress -x /usr/share/doc/${PF}
62 +
63 + # package also has 10.0 10.1 11.0 versions
64 + # but these cuda versions are not in ::gentoo
65 + if use cuda92; then
66 + dobin ${PN}_${PV}-Cuda92 ${PN}
67 + elif use cuda102; then
68 + dobin ${PN}_${PV}-Cuda102 ${PN}
69 + fi
70 +}
71
72 diff --git a/sci-chemistry/MotionCor2/metadata.xml b/sci-chemistry/MotionCor2/metadata.xml
73 index 75c4f5d9f..0cc6baff1 100644
74 --- a/sci-chemistry/MotionCor2/metadata.xml
75 +++ b/sci-chemistry/MotionCor2/metadata.xml
76 @@ -12,5 +12,6 @@
77 <use>
78 <flag name="cuda92">Install cuda-9.2 version</flag>
79 <flag name="cuda101">Install cuda-10.1 version</flag>
80 + <flag name="cuda102">Install cuda-10.2 version</flag>
81 </use>
82 </pkgmetadata>