diff options
author | Andrew W Elble <aweits@rit.edu> | 2020-09-08 22:00:27 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-08 21:00:27 -0500 |
commit | 520308ad2b2408a03d0de96bab1d56b7f7ceda20 (patch) | |
tree | 89e8fda71b31c2b8eff7aca06fb5d91456243648 /var | |
parent | 7165795c4a5f43af13409cd4a1b3ad75c88cb7d3 (diff) | |
download | spack-520308ad2b2408a03d0de96bab1d56b7f7ceda20.tar.gz spack-520308ad2b2408a03d0de96bab1d56b7f7ceda20.tar.bz2 spack-520308ad2b2408a03d0de96bab1d56b7f7ceda20.tar.xz spack-520308ad2b2408a03d0de96bab1d56b7f7ceda20.zip |
astra: update checksum, add other executables (#18567)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/astra/package.py | 52 |
1 files changed, 51 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/astra/package.py b/var/spack/repos/builtin/packages/astra/package.py index 48b4a7fdc2..a74e82bd6b 100644 --- a/var/spack/repos/builtin/packages/astra/package.py +++ b/var/spack/repos/builtin/packages/astra/package.py @@ -11,12 +11,62 @@ class Astra(Package): homepage = "http://www.desy.de/~mpyflo/" - version('2016-11-30', sha256='50738bf924724e2dd15f1d924b290ffb0f7c703e5d5ae02ffee2db554338801e', expand=False, + version('2020-02-03', + sha256='ca9ee7d3d369f9040fbd595f57f3153f712d789b66385fd2d2de88a69a774b83', + expand=False, url='http://www.desy.de/~mpyflo/Astra_for_64_Bit_Linux/Astra') + # no longer available? + # version('2016-11-30', + # sha256='50738bf924724e2dd15f1d924b290ffb0f7c703e5d5ae02ffee2db554338801e', + # expand=False, + # url='http://www.desy.de/~mpyflo/Astra_for_64_Bit_Linux/Astra') + + variant('gui', default=False, description='Install plotting/gui tools') + + resource(name='generator', url='http://www.desy.de/~mpyflo/Astra_for_64_Bit_Linux/generator', + sha256='d31cf9fcfeb90ce0e729d8af628caf4a23f7e588a3d412d5b19241e8c684e531', + expand=False, + placement='generator') + resource(name='postpro', url='http://www.desy.de/~mpyflo/Astra_for_64_Bit_Linux/postpro', + sha256='f47efb14748ce1da62bcd33c9411482bee89bcab75b28a678fc764db0c21ee8d', + expand=False, + when='+gui', + placement='postpro') + resource(name='fieldplot', url='http://www.desy.de/~mpyflo/Astra_for_64_Bit_Linux/fieldplot', + sha256='89df1da96bfd9f165fa148b84376af558e6633ab2dda837273706143ff863c96', + expand=False, + when='+gui', + placement='fieldplot') + resource(name='lineplot', url='http://www.desy.de/~mpyflo/Astra_for_64_Bit_Linux/lineplot', + sha256='d2d5702be9cb3d96391c6a0ca37366d580ced1f0f722fb33a6039ad7fd43b69a', + expand=False, + when='+gui', + placement='lineplot') + resource(name='pgxwin_server', url='http://www.desy.de/~mpyflo/Astra_for_64_Bit_Linux/pgxwin_server', + sha256='d2d5702be9cb3d96391c6a0ca37366d580ced1f0f722fb33a6039ad7fd43b69a', + expand=False, + when='+gui', + placement='pgxwin_server') + + depends_on('libxcb', when='+gui') + depends_on('libx11', when='+gui') + def install(self, spec, prefix): mkdir(prefix.bin) install('Astra', prefix.bin) + install('generator/generator', prefix.bin) + if spec.satisfies('+gui'): + install('postpro/postpro', prefix.bin) + install('fieldplot/fieldplot', prefix.bin) + install('lineplot/lineplot', prefix.bin) + install('pgxwin_server/pgxwin_server', prefix.bin) chmod = which('chmod') chmod('+x', join_path(prefix.bin, 'Astra')) + chmod('+x', join_path(prefix.bin, 'generator')) + if spec.satisfies('+gui'): + chmod('+x', join_path(prefix.bin, 'postpro')) + chmod('+x', join_path(prefix.bin, 'fieldplot')) + chmod('+x', join_path(prefix.bin, 'lineplot')) + chmod('+x', join_path(prefix.bin, 'pgxwin_server')) |