diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/motioncor2/package.py | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/var/spack/repos/builtin/packages/motioncor2/package.py b/var/spack/repos/builtin/packages/motioncor2/package.py index 5c95cb0872..80d99c37d5 100644 --- a/var/spack/repos/builtin/packages/motioncor2/package.py +++ b/var/spack/repos/builtin/packages/motioncor2/package.py @@ -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, ) - def url_for_version(self, version): - return "file://{0}/MotionCor2_{1}.zip".format(os.getcwd(), version) + depends_on("patchelf", type="build") - depends_on("cuda@10.2,11.1:11.5", type="run") + 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) + 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") + ) |