summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorBernhard Kaindl <43588962+bernhardkaindl@users.noreply.github.com>2022-12-05 22:10:57 +0100
committerGitHub <noreply@github.com>2022-12-05 14:10:57 -0700
commit56072172f5d90b13958cfe7b92f459226c481153 (patch)
tree7b5a42724b575fe195d28499132b4d410907a90b /var
parent64d957dece357255a8ac8f750545258db83da486 (diff)
downloadspack-56072172f5d90b13958cfe7b92f459226c481153.tar.gz
spack-56072172f5d90b13958cfe7b92f459226c481153.tar.bz2
spack-56072172f5d90b13958cfe7b92f459226c481153.tar.xz
spack-56072172f5d90b13958cfe7b92f459226c481153.zip
jellyfish: add variants for python and ruby bindings (#33832)
Co-authored-by: teachers-uk-net <stuart.morrison@kcl.ac.uk>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/jellyfish/package.py29
1 files changed, 22 insertions, 7 deletions
diff --git a/var/spack/repos/builtin/packages/jellyfish/package.py b/var/spack/repos/builtin/packages/jellyfish/package.py
index 76fd9ba868..7ab4fe6b1f 100644
--- a/var/spack/repos/builtin/packages/jellyfish/package.py
+++ b/var/spack/repos/builtin/packages/jellyfish/package.py
@@ -7,21 +7,36 @@ from spack.package import *
class Jellyfish(AutotoolsPackage):
- """JELLYFISH is a tool for fast, memory-efficient counting of k-mers in
- DNA."""
+ """JELLYFISH is a tool for fast, memory-efficient counting of k-mers in DNA."""
homepage = "https://www.cbcb.umd.edu/software/jellyfish/"
- url = "https://github.com/gmarcais/Jellyfish/releases/download/v2.2.7/jellyfish-2.2.7.tar.gz"
- list_url = "https://www.cbcb.umd.edu/software/jellyfish/"
+ url = "https://github.com/gmarcais/Jellyfish/releases/download/v2.3.0/jellyfish-2.3.0.tar.gz"
+ list_url = "https://github.com/gmarcais/Jellyfish/releases"
- version("2.2.7", sha256="d80420b4924aa0119353a5b704f923863abc802e94efeb531593147c13e631a8")
+ version("2.3.0", sha256="e195b7cf7ba42a90e5e112c0ed27894cd7ac864476dc5fb45ab169f5b930ea5a")
+ version(
+ "2.2.7",
+ sha256="d80420b4924aa0119353a5b704f923863abc802e94efeb531593147c13e631a8",
+ preferred=True,
+ )
version(
"1.1.11",
sha256="496645d96b08ba35db1f856d857a159798c73cbc1eccb852ef1b253d1678c8e2",
url="https://www.cbcb.umd.edu/software/jellyfish/jellyfish-1.1.11.tar.gz",
)
- depends_on("perl", type=("build", "run"))
- depends_on("python", type=("build", "run"))
+ depends_on("perl", when="@2.2.7:", type=("build", "run"))
+ variant("ruby", default=False, description="Enable ruby bindings")
+ # Info: python bindings exist, but are for python2 which is no longer supported in spack
+
+ extends("ruby@:2.6", when="+ruby")
patch("dna_codes.patch", when="@1.1.11")
+
+ # v1.1.11 does not support language bindings
+ conflicts("+ruby", when="@1.1.11")
+
+ def configure_args(self):
+ if "+ruby" in self.spec:
+ return ["--enable-ruby-binding"]
+ return []