summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Young <A-N-Other@users.noreply.github.com>2024-05-21 02:08:57 +0100
committerGitHub <noreply@github.com>2024-05-20 18:08:57 -0700
commit900bd2f477b618620b2c776b91a2e57d0e4555f7 (patch)
tree3516afd3280ba27ceb91f6c118682a77918671cd
parent29d4a5af44b09ef23e866d38e8015400ea1d7fd9 (diff)
downloadspack-900bd2f477b618620b2c776b91a2e57d0e4555f7.tar.gz
spack-900bd2f477b618620b2c776b91a2e57d0e4555f7.tar.bz2
spack-900bd2f477b618620b2c776b91a2e57d0e4555f7.tar.xz
spack-900bd2f477b618620b2c776b91a2e57d0e4555f7.zip
seqkit: add 2.4.0, switching to 'go build' install mechanic (#38192)
* seqkit: add 2.4.0 * seqkit: add 2.4.0, switching to 'go build' install mechanic * seqkit: add 2.4.0, switching to 'go build' install mechanic * seqkit: update to @2.6.1, drop deprecated version and build system * seqkit: add @2.7.0, convert to GoPackage * tidying * tidying --------- Co-authored-by: LMS Bioinformatics <bioinformatics@lms.mrc.ac.uk>
-rw-r--r--var/spack/repos/builtin/packages/seqkit/package.py28
1 files changed, 17 insertions, 11 deletions
diff --git a/var/spack/repos/builtin/packages/seqkit/package.py b/var/spack/repos/builtin/packages/seqkit/package.py
index 05a2d6ed00..238e3e735c 100644
--- a/var/spack/repos/builtin/packages/seqkit/package.py
+++ b/var/spack/repos/builtin/packages/seqkit/package.py
@@ -6,17 +6,23 @@
from spack.package import *
-class Seqkit(Package):
- """A cross-platform and ultrafast toolkit for FASTA/Q file manipulation
- in Golang."""
+class GoBuilder(spack.build_systems.go.GoBuilder):
+ @property
+ def build_directory(self):
+ return join_path(self.pkg.stage.source_path, "seqkit")
- homepage = "https://bioinf.shenwei.me/seqkit"
- url = (
- "https://github.com/shenwei356/seqkit/releases/download/v0.10.1/seqkit_linux_amd64.tar.gz"
- )
- version("0.10.1", sha256="82f1c86dc4bd196403a56c2bf3ec063e5674a71777e68d940c4cc3d8411d2e9d")
+class Seqkit(GoPackage):
+ """seqkit: a cross-platform and ultrafast toolkit for FASTA/Q file manipulation"""
- def install(self, spec, prefix):
- mkdir(prefix.bin)
- install("seqkit", prefix.bin)
+ homepage = "https://bioinf.shenwei.me/seqkit/"
+ url = "https://github.com/shenwei356/seqkit/archive/refs/tags/v2.4.0.tar.gz"
+
+ license("MIT", checked_by="A-N-Other")
+
+ version("2.7.0", sha256="b5c723ffd4640659860fc70a71c218d8f53bea0eae571cecc98eff04c7291e02")
+ version("2.6.1", sha256="d88249bd3b630c908ebd308abaa9cd7acb7a781c12bab877d3daaab56f43c443")
+ version("2.5.1", sha256="76d105921f918be20e616fbb607fe0fb2db603535a254ec0f853cb36bef817da")
+ version("2.4.0", sha256="c319f3d5feb7c99309e654042432959f01bbc5f7e4c71f55dc9854df46c73c7f")
+
+ depends_on("go@1.17:", type="build")