summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsnehring <7978778+snehring@users.noreply.github.com>2022-05-24 14:54:42 -0500
committerGitHub <noreply@github.com>2022-05-24 12:54:42 -0700
commit0d2eae8da084036cb6fdb8b8e1bc7ca77e6660e3 (patch)
tree113b4e392cccfc30ebabae51140bbb7b9040a79f
parentf2a81af70e1d70828a579ea325a0699d89c7a420 (diff)
downloadspack-0d2eae8da084036cb6fdb8b8e1bc7ca77e6660e3.tar.gz
spack-0d2eae8da084036cb6fdb8b8e1bc7ca77e6660e3.tar.bz2
spack-0d2eae8da084036cb6fdb8b8e1bc7ca77e6660e3.tar.xz
spack-0d2eae8da084036cb6fdb8b8e1bc7ca77e6660e3.zip
tbl2asn: adding currently available version (#30774)
-rw-r--r--var/spack/repos/builtin/packages/tbl2asn/package.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/var/spack/repos/builtin/packages/tbl2asn/package.py b/var/spack/repos/builtin/packages/tbl2asn/package.py
index 7c94cb13fb..f2f1dbd04d 100644
--- a/var/spack/repos/builtin/packages/tbl2asn/package.py
+++ b/var/spack/repos/builtin/packages/tbl2asn/package.py
@@ -3,8 +3,6 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
-from os import chmod
-
from spack import *
@@ -13,13 +11,18 @@ class Tbl2asn(Package):
sequence records for submission to GenBank."""
homepage = "https://www.ncbi.nlm.nih.gov/genbank/tbl2asn2/"
+ maintainers = ['snehring']
- version('2020-03-01', sha256='7cc1119d3cfcbbffdbd4ecf33cef8bbdd44fc5625c72976bee08b1157625377e')
+ version('2022-04-26', sha256='c76481700e196ebd98a83f4174e0146569db9d6fe5753ac18691e9836d5c6a75')
+ version('2020-03-01', sha256='7cc1119d3cfcbbffdbd4ecf33cef8bbdd44fc5625c72976bee08b1157625377e', deprecated=True)
def url_for_version(self, ver):
- return "https://ftp.ncbi.nih.gov/toolbox/ncbi_tools/converters/by_program/tbl2asn/linux.tbl2asn.gz"
+ return "https://ftp.ncbi.nih.gov/toolbox/ncbi_tools/converters/by_program/tbl2asn/linux64.tbl2asn.gz"
def install(self, spec, prefix):
mkdirp(prefix.bin)
- install('../linux.tbl2asn', prefix.bin.tbl2asn)
- chmod(prefix.bin.tbl2asn, 0o775)
+ if spec.satisfies('@2020-03-01'):
+ install('../linux.tbl2asn', prefix.bin.tbl2asn)
+ else:
+ install('linux64.tbl2asn', prefix.bin.tbl2asn)
+ set_executable(prefix.bin.tbl2asn)