commit: 23e59ba220dd5688d6e61f94e6522df06c5210a1 Author: Aisha Tammy <gentoo <AT> aisha <DOT> cc> AuthorDate: Thu Dec 31 04:40:32 2020 +0000 Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc> CommitDate: Thu Dec 31 04:40:32 2020 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=23e59ba2
sci-chemistry/MotionCor2: version bump to 1.4.6 with comments from @AndrewAmmerlaan Closes: https://github.com/gentoo/sci/pull/1002 Package-Manager: Portage-3.0.12, Repoman-3.0.2 RepoMan-Options: --force Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc> sci-chemistry/MotionCor2/MotionCor2-1.4.0.ebuild | 45 ++++++++++++++++++++++++ sci-chemistry/MotionCor2/metadata.xml | 1 + 2 files changed, 46 insertions(+) diff --git a/sci-chemistry/MotionCor2/MotionCor2-1.4.0.ebuild b/sci-chemistry/MotionCor2/MotionCor2-1.4.0.ebuild new file mode 100644 index 000000000..99b3b14cd --- /dev/null +++ b/sci-chemistry/MotionCor2/MotionCor2-1.4.0.ebuild @@ -0,0 +1,45 @@ +# Copyright 2019-2020 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="cuda92 cuda102" +REQUIRED_USE="^^ ( cuda92 cuda102 )" +RESTRICT="fetch" + +RDEPEND=" + cuda92? ( =dev-util/nvidia-cuda-toolkit-9.2* ) + 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 ${DISTDIR}" +} + +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 + if use cuda92; then + dobin ${PN}_${PV}-Cuda92 ${PN} + elif use cuda102; then + dobin ${PN}_${PV}-Cuda102 ${PN} + fi +} diff --git a/sci-chemistry/MotionCor2/metadata.xml b/sci-chemistry/MotionCor2/metadata.xml index 75c4f5d9f..0cc6baff1 100644 --- a/sci-chemistry/MotionCor2/metadata.xml +++ b/sci-chemistry/MotionCor2/metadata.xml @@ -12,5 +12,6 @@ <use> <flag name="cuda92">Install cuda-9.2 version</flag> <flag name="cuda101">Install cuda-10.1 version</flag> + <flag name="cuda102">Install cuda-10.2 version</flag> </use> </pkgmetadata>
