summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsnehring <7978778+snehring@users.noreply.github.com>2023-05-15 12:14:58 -0500
committerGitHub <noreply@github.com>2023-05-15 10:14:58 -0700
commitc9849dd41d3b774acabeddc5d8099ee2e6b123e5 (patch)
tree98fc613a3a1c12a9dbdb4aeb32a8ff5799e9cc97
parentd44e97d3f2ebb37de599d5235f1ab50aa08d6b21 (diff)
downloadspack-c9849dd41d3b774acabeddc5d8099ee2e6b123e5.tar.gz
spack-c9849dd41d3b774acabeddc5d8099ee2e6b123e5.tar.bz2
spack-c9849dd41d3b774acabeddc5d8099ee2e6b123e5.tar.xz
spack-c9849dd41d3b774acabeddc5d8099ee2e6b123e5.zip
tmalign: new version 20220412 (#37645)
-rw-r--r--var/spack/repos/builtin/packages/tmalign/package.py29
1 files changed, 26 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/tmalign/package.py b/var/spack/repos/builtin/packages/tmalign/package.py
index 48b517ed2b..c27a79a3d8 100644
--- a/var/spack/repos/builtin/packages/tmalign/package.py
+++ b/var/spack/repos/builtin/packages/tmalign/package.py
@@ -10,13 +10,36 @@ class Tmalign(Package):
"""TM-align is an algorithm for sequence-order independent protein
structure comparisons."""
- homepage = "https://zhanglab.ccmb.med.umich.edu/TM-align"
- url = "http://zhanglab.ccmb.med.umich.edu/TM-align/TM-align-C/TMalignc.tar.gz"
+ homepage = "https://zhanggroup.org/TM-align/"
+ url = "https://zhanggroup.org/TM-align/TMalign.cpp"
+ maintainers("snehring")
+
+ version(
+ "20220412",
+ sha256="09227c46705ca8cf7c922a6e1672c34d7ed4daba32e5c7c484306808db54117a",
+ expand=False,
+ )
version(
- "2016-05-25", sha256="ce7f68289f3766d525afb0a58e3acfc28ae05f538d152bd33d57f8708c60e2af"
+ "2016-05-25",
+ sha256="ce7f68289f3766d525afb0a58e3acfc28ae05f538d152bd33d57f8708c60e2af",
+ url="http://zhanglab.ccmb.med.umich.edu/TM-align/TM-align-C/TMalignc.tar.gz",
+ deprecated=True,
)
+ variant("fast-math", default=False, when="@20220412:")
+
+ with when("@20220412:"):
+ phases = ["build", "install"]
+
+ def build(self, spec, prefix):
+ cxx = Executable(self.compiler.cxx)
+ args = ["-O3"]
+ if spec.satisfies("+fast-math"):
+ args.append("-ffast-math")
+ args.extend(["-lm", "-o", "TMalign", "TMalign.cpp"])
+ cxx(*args)
+
def install(self, spec, prefix):
mkdirp(prefix.bin)
install("TMalign", prefix.bin)