blob: 7507ca26f3380738ea29fe23cbe63711dcb70de5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Copyright 2019-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="Correction of electron beam-induced sample motion"
HOMEPAGE="https://emcore.ucsf.edu/ucsf-motioncor2"
SRC_URI="${PN}_${PV}.zip"
S="${WORKDIR}"/${PN}_${PV}
LICENSE="UCSF-Motioncor2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+cuda102"
RESTRICT="fetch"
RDEPEND="
cuda102? ( =dev-util/nvidia-cuda-toolkit-10.2* )
media-libs/tiff
app-arch/xz-utils
media-libs/libjpeg-turbo
"
BDEPEND="app-arch/unzip"
pkg_nofetch() {
elog "Please download ${PN}_${PV}.zip from:"
elog "\t ${HOMEPAGE}"
elog "and place it into your DISTDIR folder"
}
src_install() {
dodoc MotionCor2-UserManual-10-08-2020.pdf \
MotionCor2_1.4.0_ReleaseIntro-10-14-2020.docx
docompress -x /usr/share/doc/${PF}
# package also has 10.0 10.1 11.0 versions
# but these cuda versions are not in ::gentoo
local mcbin
use cuda102 && mcbin="${PN}_${PV}_Cuda102"
dobin "${mcbin}"
dosym "${mcbin}" /usr/bin/MotionCor2
}
|