motioncor2: add v1.6.4 (#42380)
Co-authored-by: LMS Bioinformatics <bioinformatics@lms.mrc.ac.uk>
This commit is contained in:
parent
473347df41
commit
8190903821
@ -20,6 +20,7 @@ class Motioncor2(Package):
|
||||
homepage = "http://msg.ucsf.edu/em/software"
|
||||
manual_download = True
|
||||
|
||||
version("1.6.4", sha256="28bb3e6477abf34fe41a78bcb9da9d77d08e2e89ecd41240fab085a308e6c498")
|
||||
version("1.4.7", sha256="8c33969b10916835b55f14f3c370f67ebe5c4b2a9df9ec487c5251710f038e6b")
|
||||
|
||||
# None of the below are available for download
|
||||
@ -41,18 +42,26 @@ class Motioncor2(Package):
|
||||
deprecated=True,
|
||||
)
|
||||
|
||||
depends_on("patchelf", type="build")
|
||||
|
||||
depends_on("cuda@10.2,11.1:11.8,12.1", type="run")
|
||||
depends_on("libtiff", type="run")
|
||||
|
||||
def url_for_version(self, version):
|
||||
return "file://{0}/MotionCor2_{1}.zip".format(os.getcwd(), version)
|
||||
|
||||
depends_on("cuda@10.2,11.1:11.5", type="run")
|
||||
depends_on("libtiff", type="run")
|
||||
|
||||
def install(self, spec, prefix):
|
||||
cuda_version = spec["cuda"].version.up_to(2).joined
|
||||
|
||||
mkdirp(prefix.bin)
|
||||
with working_dir("MotionCor2_{0}".format(spec.version)):
|
||||
install(
|
||||
"MotionCor2_{0}_Cuda{1}_*".format(spec.version, cuda_version),
|
||||
join_path(prefix.bin, "MotionCor2"),
|
||||
)
|
||||
install(
|
||||
"MotionCor2_{0}_Cuda{1}_*".format(spec.version, cuda_version),
|
||||
join_path(prefix.bin, "MotionCor2"),
|
||||
)
|
||||
|
||||
@run_after("install")
|
||||
def ensure_rpaths(self):
|
||||
patchelf = which("patchelf")
|
||||
patchelf(
|
||||
"--set-rpath", self.spec["cuda"].prefix.lib64, join_path(self.prefix.bin, "MotionCor2")
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user