From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1236224-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 38B9813835B
	for <garchives@archives.gentoo.org>; Thu, 31 Dec 2020 04:41:41 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 540A7E086E;
	Thu, 31 Dec 2020 04:41:40 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 34443E086D
	for <gentoo-commits@lists.gentoo.org>; Thu, 31 Dec 2020 04:41:40 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id B9FD5340BE2
	for <gentoo-commits@lists.gentoo.org>; Thu, 31 Dec 2020 04:41:38 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 2A167CC
	for <gentoo-commits@lists.gentoo.org>; Thu, 31 Dec 2020 04:41:37 +0000 (UTC)
From: "Aisha Tammy" <gentoo@aisha.cc>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Aisha Tammy" <gentoo@aisha.cc>
Message-ID: <1609389632.23e59ba220dd5688d6e61f94e6522df06c5210a1.epsilon-0@gentoo>
Subject: [gentoo-commits] proj/sci:master commit in: sci-chemistry/MotionCor2/
X-VCS-Repository: proj/sci
X-VCS-Files: sci-chemistry/MotionCor2/MotionCor2-1.4.0.ebuild sci-chemistry/MotionCor2/metadata.xml
X-VCS-Directories: sci-chemistry/MotionCor2/
X-VCS-Committer: epsilon-0
X-VCS-Committer-Name: Aisha Tammy
X-VCS-Revision: 23e59ba220dd5688d6e61f94e6522df06c5210a1
X-VCS-Branch: master
Date: Thu, 31 Dec 2020 04:41:37 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 69bc8cea-de98-4723-b2fd-a69650a81005
X-Archives-Hash: d31811984d81643ae198e4a255200245

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>