diff options
author | Glenn Johnson <glenn-johnson@uiowa.edu> | 2020-11-03 12:41:47 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-03 12:41:47 -0600 |
commit | 4ba7ad5162571c34a41ba8d738e65c4c1ddc7c87 (patch) | |
tree | 99e1ed8c100f121418b1d4d20901db4f375df483 | |
parent | e93ac1a8bdcbb4b0155e6463508923d52615ba8b (diff) | |
download | spack-4ba7ad5162571c34a41ba8d738e65c4c1ddc7c87.tar.gz spack-4ba7ad5162571c34a41ba8d738e65c4c1ddc7c87.tar.bz2 spack-4ba7ad5162571c34a41ba8d738e65c4c1ddc7c87.tar.xz spack-4ba7ad5162571c34a41ba8d738e65c4c1ddc7c87.zip |
New package - gatepet2stir (#19664)
-rw-r--r-- | var/spack/repos/builtin/packages/gatepet2stir/package.py | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/gatepet2stir/package.py b/var/spack/repos/builtin/packages/gatepet2stir/package.py new file mode 100644 index 0000000000..f13cdca589 --- /dev/null +++ b/var/spack/repos/builtin/packages/gatepet2stir/package.py @@ -0,0 +1,35 @@ +# Copyright 2013-2020 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 Gatepet2stir(QMakePackage): + """A QT/C++ application to convert GATE geometries to STIR format.""" + + homepage = "https://gatepet2stir.sourceforge.io/" + url = "http://sourceforge.net/projects/gatepet2stir/files/GATE_PET_2_STIR_1_3_2.tar.gz" + + version('1.3.2', sha256='c53b990e47b5856d47466cff62763d0a3bfdc12538b6842cce45271badb7a387') + + depends_on('gperftools') + depends_on('ncurses') + depends_on('qt@:4') + depends_on('qwt') + depends_on('root') + + def url_for_version(self, version): + url = "http://sourceforge.net/projects/gatepet2stir/files/GATE_PET_2_STIR_{0}.tar.gz" + return url.format(version.underscored) + + def qmake_args(self): + args = [ + 'QMAKE_LIBS=-ltcmalloc', + ] + return args + + def install(self, spec, prefix): + mkdir(prefix.bin) + install('GATE_PET_2_STIR', prefix.bin) |