diff options
author | Miles Perry <37849532+Miles-Perry@users.noreply.github.com> | 2018-12-13 12:43:45 -0600 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2018-12-13 12:43:45 -0600 |
commit | b7a2192f918452528ed81d2e2557b4654edb4785 (patch) | |
tree | 65c60ac91a9e6901ab7a0e176bef1cda98915fbf | |
parent | 7f602266621d64a8b6cba63397b72dbec4a13620 (diff) | |
download | spack-b7a2192f918452528ed81d2e2557b4654edb4785.tar.gz spack-b7a2192f918452528ed81d2e2557b4654edb4785.tar.bz2 spack-b7a2192f918452528ed81d2e2557b4654edb4785.tar.xz spack-b7a2192f918452528ed81d2e2557b4654edb4785.zip |
Feature/spm (#10053)
* extract spm12.ctf to get binaries and libraries
* flake8 edits
* flake8 edits
* spm: updates
* spm: previous version
-rw-r--r-- | var/spack/repos/builtin/packages/spm/package.py | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/spm/package.py b/var/spack/repos/builtin/packages/spm/package.py new file mode 100644 index 0000000000..2531e61da2 --- /dev/null +++ b/var/spack/repos/builtin/packages/spm/package.py @@ -0,0 +1,32 @@ +# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack import * + + +class Spm(Package): + """Statistical Parametric Mapping refers to the construction and assessment + of spatially extended statistical processes used to test hypotheses + about functional imaging data. These ideas have been instantiated in + software that is called SPM.""" + + homepage = "https://www.fil.ion.ucl.ac.uk/spm/" + url = "https://www.fil.ion.ucl.ac.uk/spm/download/restricted/utopia/spm12_r7219.zip" + list_url = "https://www.fil.ion.ucl.ac.uk/spm/download/restricted/utopia/previous/" + + version('12_r7219', sha256='b46fe8ce5ab537caeea7634c650f3a12fe2716f6a2e8ac15aa0d62b3652fe764', + url='https://www.fil.ion.ucl.ac.uk/spm/download/restricted/utopia/previous/spm12_r7219_R2010a.zip') + + depends_on('zip', type='build') + depends_on('matlab', type='run') + + def install(self, spec, prefix): + unzip = which('unzip') + unzip('spm12.ctf') + + bash = which('bash') + bash('./run_spm12.sh') + + install_tree('spm12', prefix) |