summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorsnehring <snehring@users.noreply.github.com>2022-05-04 01:29:06 -0500
committerGitHub <noreply@github.com>2022-05-04 08:29:06 +0200
commitd0fdaf6d03bff323744235c5eb30e134d78918e6 (patch)
tree69a7db16cf0b71431d5e0640f95af3238804e50d /var
parentb8ebaa081312acc432aa7aeaa14f856fa405981a (diff)
downloadspack-d0fdaf6d03bff323744235c5eb30e134d78918e6.tar.gz
spack-d0fdaf6d03bff323744235c5eb30e134d78918e6.tar.bz2
spack-d0fdaf6d03bff323744235c5eb30e134d78918e6.tar.xz
spack-d0fdaf6d03bff323744235c5eb30e134d78918e6.zip
igv: changing to 'all platforms' version. Adding igvtools variant. (#30379)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/igv/package.py29
1 files changed, 18 insertions, 11 deletions
diff --git a/var/spack/repos/builtin/packages/igv/package.py b/var/spack/repos/builtin/packages/igv/package.py
index 152c16df53..18d44b8acb 100644
--- a/var/spack/repos/builtin/packages/igv/package.py
+++ b/var/spack/repos/builtin/packages/igv/package.py
@@ -13,24 +13,31 @@ class Igv(Package):
next-generation sequence data, and genomic annotations."""
homepage = "https://software.broadinstitute.org/software/igv/home"
- url = "https://data.broadinstitute.org/igv/projects/downloads/2.8/IGV_Linux_2.8.0.zip"
+ url = "https://data.broadinstitute.org/igv/projects/downloads/2.8/IGV_2.8.0.zip"
maintainers = ['snehring']
- version('2.8.0', sha256='897f683645b02c4da55424110b885071c2b9dd51bc180174e2a9b10788bf3257')
+ version('2.12.3', sha256='c87a109deb35994e1b28dee80b5acfd623ec3257f031fcd9cfce008cd32a4cf2')
+ version('2.8.0', sha256='33f3ac57017907b931f90c35b63b2de2e4f8d2452f0fbb5be39d30288fc9b2c6')
- # They ship with 11, out of an abundance of caution I'm going to restrict
- # it to just 11.
+ depends_on('java@11:', type='run')
- depends_on('java@11:11.99', type='run')
+ variant('igvtools', default=False, description='Include igvtools')
+
+ def url_for_version(self, version):
+ url = 'https://data.broadinstitute.org/igv/projects/downloads/{0}/IGV_{1}.zip'
+ return url.format(version.up_to(2), version)
def install(self, spec, prefix):
- # Binary dist, just copy what we need, which should be the lib
- # directory, the two script, and the arg file
install_tree('lib', prefix.lib)
mkdirp(prefix.bin)
- filter_file('^prefix=.*$', 'prefix=' + prefix,
- 'igv.sh', 'igv_hidpi.sh')
- install('igv.sh', prefix.bin)
- install('igv_hidpi.sh', prefix.bin)
install('igv.args', prefix)
+ files = ['igv.sh', 'igv_hidpi.sh']
+ if '+igvtools' in spec:
+ files.extend(['igvtools', 'igvtools_gui', 'igvtools_gui_hidpi'])
+ for f in files:
+ filter_file('^prefix=.*$', 'prefix=' + prefix, f)
+ filter_file(' java ', ' {0} '.format(spec['java'].prefix.bin.java),
+ f)
+ set_executable(f)
+ install(f, prefix.bin)