diff options
author | Valentin Volkl <valentin.volkl@cern.ch> | 2022-06-28 10:46:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-28 08:46:33 +0000 |
commit | 99bfd7059e5d7a9ecd3786ccad7a2a4b29b80fdb (patch) | |
tree | ccf420dd3a8f2265fd8e3534ce162da1b4cb3d16 /var | |
parent | 129880d2ed156ee8ae22f5c2cbb691371de068c5 (diff) | |
download | spack-99bfd7059e5d7a9ecd3786ccad7a2a4b29b80fdb.tar.gz spack-99bfd7059e5d7a9ecd3786ccad7a2a4b29b80fdb.tar.bz2 spack-99bfd7059e5d7a9ecd3786ccad7a2a4b29b80fdb.tar.xz spack-99bfd7059e5d7a9ecd3786ccad7a2a4b29b80fdb.zip |
ampt: add new package (#31307)
Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/ampt/package.py | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/ampt/package.py b/var/spack/repos/builtin/packages/ampt/package.py new file mode 100644 index 0000000000..c18f21b12f --- /dev/null +++ b/var/spack/repos/builtin/packages/ampt/package.py @@ -0,0 +1,36 @@ +# Copyright 2013-2022 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.package import * + + +class Ampt(MakefilePackage): + """A Multi-Phase Transport (AMPT) model is a Monte Carlo transport model for + nuclear collisions at relativistic energies.""" + + homepage = "http://myweb.ecu.edu/linz/ampt/" + url = "http://myweb.ecu.edu/linz/ampt/ampt-v1.26t9b-v2.26t9b.zip" + + maintainers = ['vvolkl'] + + tags = ['hep'] + + patch('https://gitlab.cern.ch/sft/lcgcmake/-/raw/master/generators/patches/ampt-2.26t9b_atlas.patch', level=0, + sha256='7a9a4f175f84dc3021301dae5d48adab1fc714fccf44ec17128a3ba1608bff4c', + when='@2.26-t9b_atlas') + + version('2.26-t9b_atlas', sha256='9441b5f77c2ab91a57b291abd4afd12de7968f9cbe9f3cc8dbe60fbf5293ed55', + url='http://myweb.ecu.edu/linz/ampt/ampt-v1.26t9b-v2.26t9b.zip') + version('2.26-t9', sha256='9441b5f77c2ab91a57b291abd4afd12de7968f9cbe9f3cc8dbe60fbf5293ed55', + url='http://myweb.ecu.edu/linz/ampt/ampt-v1.26t9b-v2.26t9b.zip') + + def install(self, spec, prefix): + mkdir(prefix.bin) + mkdir(prefix.share) + mkdir(prefix.share.ampt) + install('ampt', prefix.bin) + install('input.ampt', prefix.share.ampt) + install('readme', prefix.share.ampt) |