1 |
commit: d0ba0e33274628d86bfa3ace5efc31c0821487cd |
2 |
Author: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 29 09:09:25 2019 +0000 |
4 |
Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 29 09:09:25 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=d0ba0e33 |
7 |
|
8 |
sci-chemistry/MotionCor2: Add motioncor2 |
9 |
|
10 |
Package-Manager: Portage-2.3.78, Repoman-2.3.17 |
11 |
Signed-off-by: Alexey Shvetsov <alexxy <AT> gentoo.org> |
12 |
|
13 |
sci-chemistry/MotionCor2/MotionCor2-1.2.6.ebuild | 49 ++++++++++++++++++++++++ |
14 |
sci-chemistry/MotionCor2/metadata.xml | 16 ++++++++ |
15 |
2 files changed, 65 insertions(+) |
16 |
|
17 |
diff --git a/sci-chemistry/MotionCor2/MotionCor2-1.2.6.ebuild b/sci-chemistry/MotionCor2/MotionCor2-1.2.6.ebuild |
18 |
new file mode 100644 |
19 |
index 000000000..8fae639a3 |
20 |
--- /dev/null |
21 |
+++ b/sci-chemistry/MotionCor2/MotionCor2-1.2.6.ebuild |
22 |
@@ -0,0 +1,49 @@ |
23 |
+# Copyright 2019 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=7 |
27 |
+ |
28 |
+DESCRIPTION="Correction of electron beam-induced sample motion" |
29 |
+HOMEPAGE="https://emcore.ucsf.edu/ucsf-motioncor2" |
30 |
+SRC_URI="${PN}_${PV}.zip" |
31 |
+ |
32 |
+LICENSE="UCSF-Motioncor2" |
33 |
+SLOT="0" |
34 |
+KEYWORDS="~amd64" |
35 |
+IUSE="cuda92 +cuda101" |
36 |
+ |
37 |
+DEPEND=" |
38 |
+ cuda92? ( =dev-util/nvidia-cuda-toolkit-9.2* ) |
39 |
+ cuda101? ( =dev-util/nvidia-cuda-toolkit-10.1* ) |
40 |
+ media-libs/tiff |
41 |
+ app-arch/xz-utils |
42 |
+ || ( media-libs/jpeg:62 media-libs/libjpeg-turbo ) |
43 |
+" |
44 |
+RDEPEND="${DEPEND}" |
45 |
+BDEPEND="" |
46 |
+ |
47 |
+REQUIRED_USE="^^ ( cuda92 cuda101 )" |
48 |
+ |
49 |
+RESTRICT="fetch" |
50 |
+VERSION="MotionCor2 v1.2.6 (05-22.2019, Linux) now Cuda v8.0,9.2,10.1" |
51 |
+ |
52 |
+S="${WORKDIR}" |
53 |
+ |
54 |
+pkg_nofetch() { |
55 |
+ echo |
56 |
+ elog "Please download ${PN}_${PV}.zip from" |
57 |
+ elog "${HOMEPAGE}." |
58 |
+ elog "Be sure to select the version ${VERSION} tarball!!" |
59 |
+ elog "Then move the tarball to" |
60 |
+ elog "${DISTDIR}/${P}.tar.gz" |
61 |
+ echo |
62 |
+} |
63 |
+ |
64 |
+src_install() { |
65 |
+ dodoc MotionCor2-UserManual-09-13-2018.pdf |
66 |
+ if use cuda92; then |
67 |
+ newbin MotionCor2_1.2.6-Cuda92 ${PN} |
68 |
+ elif use cuda101; then |
69 |
+ newbin MotionCor2_1.2.6-Cuda101 ${PN} |
70 |
+ fi |
71 |
+} |
72 |
|
73 |
diff --git a/sci-chemistry/MotionCor2/metadata.xml b/sci-chemistry/MotionCor2/metadata.xml |
74 |
new file mode 100644 |
75 |
index 000000000..75c4f5d9f |
76 |
--- /dev/null |
77 |
+++ b/sci-chemistry/MotionCor2/metadata.xml |
78 |
@@ -0,0 +1,16 @@ |
79 |
+<?xml version="1.0" encoding="UTF-8"?> |
80 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
81 |
+<pkgmetadata> |
82 |
+ <maintainer type="project"> |
83 |
+ <email>sci-chemistry@g.o</email> |
84 |
+ <name>Gentoo Chemistry Project</name> |
85 |
+ </maintainer> |
86 |
+ <maintainer type="person"> |
87 |
+ <email>alexxy@g.o</email> |
88 |
+ <name>Alexey Shvetsov</name> |
89 |
+ </maintainer> |
90 |
+ <use> |
91 |
+ <flag name="cuda92">Install cuda-9.2 version</flag> |
92 |
+ <flag name="cuda101">Install cuda-10.1 version</flag> |
93 |
+ </use> |
94 |
+</pkgmetadata> |