diff options
author | snehring <7978778+snehring@users.noreply.github.com> | 2024-09-26 04:14:27 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-26 11:14:27 +0200 |
commit | 5e56fa839da77dbd2616d11004ad69beb90d269c (patch) | |
tree | cb0892247dd751bdcb850ea0bdc8624da5741bf1 | |
parent | c62ed8bb2f543ed940ce9b5dc702f82fcd4a91d6 (diff) | |
download | spack-5e56fa839da77dbd2616d11004ad69beb90d269c.tar.gz spack-5e56fa839da77dbd2616d11004ad69beb90d269c.tar.bz2 spack-5e56fa839da77dbd2616d11004ad69beb90d269c.tar.xz spack-5e56fa839da77dbd2616d11004ad69beb90d269c.zip |
entrezdirect: add v22.6.20240912 (#46470)
Signed-off-by: Shane Nehring <snehring@iastate.edu>
-rw-r--r-- | var/spack/repos/builtin/packages/entrezdirect/package.py | 78 |
1 files changed, 77 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/entrezdirect/package.py b/var/spack/repos/builtin/packages/entrezdirect/package.py index fd87aaca5c..281a970416 100644 --- a/var/spack/repos/builtin/packages/entrezdirect/package.py +++ b/var/spack/repos/builtin/packages/entrezdirect/package.py @@ -12,21 +12,97 @@ class Entrezdirect(Package): gene, variation, expression, etc.) from a UNIX terminal window.""" homepage = "https://www.ncbi.nlm.nih.gov/books/NBK179288/" + maintainers("snehring") version( + "22.6.20240912", sha256="ddf1aab438bfe6af7cf38f725dac6f288d0daf354197665a66d4556c91129ace" + ) + version( "10.7.20190114", sha256="4152749e6a3aac71a64e9367527428714ed16cf1fb6c7eff1298cca9ef144c0d" ) + resource( + name="rchive.ARM64", + placement="rchive-bin", + url="https://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect/versions/22.6.20240912/rchive.ARM64.gz", + sha256="48dbd770a62505e3a52cd475f564ba8ab4a20729c318114f8177d5342c519122", + when="@22.6.20240912 platform=linux target=aarch64:", + ) + resource( + name="rchive.Linux", + placement="rchive-bin", + url="https://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect/versions/22.6.20240912/rchive.Linux.gz", + sha256="2454ca3423df31f4057d1d2ce743e14eb3142d856e688dbbc6586cd9a6b7948c", + when="@22.6.20240912 platform=linux target=x86_64:", + ) + resource( + name="rchive.Silicon", + placement="rchive-bin", + url="https://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect/versions/22.6.20240912/xtract.Silicon.gz", + sha256="fd7f73d42055b35783107257eb8d96cc2b65daa00c47774cf1913ab83156719c", + when="@22.6.20240912 platform=darwin target=aarch64:", + ) + resource( + name="transmute.ARM64", + placement="transmute-bin", + url="https://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect/versions/22.6.20240912/transmute.ARM64.gz", + sha256="c9d5dede1c70c29839af4d40a4eb55c0788a8943dc2bde5c919c8bf0be584f34", + when="@22.6.20240912 platform=linux target=aarch64:", + ) + resource( + name="transmute.Linux", + placement="transmute-bin", + url="https://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect/versions/22.6.20240912/transmute.Linux.gz", + sha256="8a8746b991494f354cb94dc46740691810b673ae1ff5235cf5a60b29fb974ac2", + when="@22.6.20240912 platform=linux target=x86_64:", + ) + resource( + name="transmute.Silicon", + placement="transmute-bin", + url="https://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect/versions/22.6.20240912/transmute.Silicon.gz", + sha256="5ec32a04a29db90a98dced0dbef717da174c6a1228fdb86b94bc35d1aed26545", + when="@22.6.20240912 platform=darwin target=aarch64:", + ) + resource( + name="xtract.ARM64", + placement="xtract-bin", + url="https://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect/versions/22.6.20240912/xtract.ARM64.gz", + sha256="1d62f612b2be6265c517af6c7a5d6bec0ce3f11bcccc6602a78ce1113bd4fc6c", + when="@22.6.20240912 platform=linux target=aarch64:", + ) + resource( + name="xtract.Linux", + placement="xtract-bin", + url="https://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect/versions/22.6.20240912/xtract.Linux.gz", + sha256="cc3994ce640cfe9ed67f4b8c31d6d22d006503c11a8506d50a5a9fe7c0b59124", + when="@22.6.20240912 platform=linux target=x86_64:", + ) + resource( + name="xtract.Silicon", + placement="xtract-bin", + url="https://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect/versions/22.6.20240912/xtract.Silicon.gz", + sha256="fd7f73d42055b35783107257eb8d96cc2b65daa00c47774cf1913ab83156719c", + when="@22.6.20240912 platform=darwin target=aarch64:", + ) + + depends_on("curl", type="run") depends_on("perl", type="run") depends_on("perl-html-parser", type="run") depends_on("perl-libwww-perl", type="run") depends_on("perl-lwp-protocol-https", type="run") depends_on("perl-http-message", type="run") depends_on("perl-xml-simple", type="run") + depends_on("python", type="run", when="@22:") def url_for_version(self, ver): - pfx = "ftp://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect/versions/" + pfx = "https://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect/versions/" return pfx + "{0}/edirect-{0}.tar.gz".format(ver.dotted) def install(self, spec, prefix): + for i in ["rchive", "transmute", "xtract"]: + src = f"{i}-bin" + exe = find(src, "*")[0] + set_executable(exe) + copy(exe, ".") + remove_linked_tree(src) install_tree(".", prefix.bin) |