From d0ba0e33274628d86bfa3ace5efc31c0821487cd Mon Sep 17 00:00:00 2001 From: Alexey Shvetsov Date: Tue, 29 Oct 2019 12:09:25 +0300 Subject: sci-chemistry/MotionCor2: Add motioncor2 Package-Manager: Portage-2.3.78, Repoman-2.3.17 Signed-off-by: Alexey Shvetsov --- sci-chemistry/MotionCor2/Manifest | 1 + sci-chemistry/MotionCor2/MotionCor2-1.2.6.ebuild | 49 ++++++++++++++++++++++++ sci-chemistry/MotionCor2/metadata.xml | 16 ++++++++ 3 files changed, 66 insertions(+) create mode 100644 sci-chemistry/MotionCor2/Manifest create mode 100644 sci-chemistry/MotionCor2/MotionCor2-1.2.6.ebuild create mode 100644 sci-chemistry/MotionCor2/metadata.xml diff --git a/sci-chemistry/MotionCor2/Manifest b/sci-chemistry/MotionCor2/Manifest new file mode 100644 index 000000000..092136ca6 --- /dev/null +++ b/sci-chemistry/MotionCor2/Manifest @@ -0,0 +1 @@ +DIST MotionCor2_1.2.6.zip 1781089 BLAKE2B cfb210948cc24824e353f5725aa710d0ca41b7c68fb65e6f3f9c3386d59c6359b87bc71f087d2f8429afea13fba8645f554a6a2b365ff6d47722ed0d7c95c49b SHA512 165085e635a03ff89d5f8d32e2b1edf7ab8c4ac7839cd9b83cb8d0b6a6a6a1c606554e969c0848681a51757bc927088513b8ccdf28b5d8a42ff69aa746b30a7f diff --git a/sci-chemistry/MotionCor2/MotionCor2-1.2.6.ebuild b/sci-chemistry/MotionCor2/MotionCor2-1.2.6.ebuild new file mode 100644 index 000000000..8fae639a3 --- /dev/null +++ b/sci-chemistry/MotionCor2/MotionCor2-1.2.6.ebuild @@ -0,0 +1,49 @@ +# Copyright 2019 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" + +LICENSE="UCSF-Motioncor2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="cuda92 +cuda101" + +DEPEND=" + cuda92? ( =dev-util/nvidia-cuda-toolkit-9.2* ) + cuda101? ( =dev-util/nvidia-cuda-toolkit-10.1* ) + media-libs/tiff + app-arch/xz-utils + || ( media-libs/jpeg:62 media-libs/libjpeg-turbo ) +" +RDEPEND="${DEPEND}" +BDEPEND="" + +REQUIRED_USE="^^ ( cuda92 cuda101 )" + +RESTRICT="fetch" +VERSION="MotionCor2 v1.2.6 (05-22.2019, Linux) now Cuda v8.0,9.2,10.1" + +S="${WORKDIR}" + +pkg_nofetch() { + echo + elog "Please download ${PN}_${PV}.zip from" + elog "${HOMEPAGE}." + elog "Be sure to select the version ${VERSION} tarball!!" + elog "Then move the tarball to" + elog "${DISTDIR}/${P}.tar.gz" + echo +} + +src_install() { + dodoc MotionCor2-UserManual-09-13-2018.pdf + if use cuda92; then + newbin MotionCor2_1.2.6-Cuda92 ${PN} + elif use cuda101; then + newbin MotionCor2_1.2.6-Cuda101 ${PN} + fi +} diff --git a/sci-chemistry/MotionCor2/metadata.xml b/sci-chemistry/MotionCor2/metadata.xml new file mode 100644 index 000000000..75c4f5d9f --- /dev/null +++ b/sci-chemistry/MotionCor2/metadata.xml @@ -0,0 +1,16 @@ + + + + + sci-chemistry@gentoo.org + Gentoo Chemistry Project + + + alexxy@gentoo.org + Alexey Shvetsov + + + Install cuda-9.2 version + Install cuda-10.1 version + + -- cgit v1.2.3-65-gdbad