diff options
author | haralmha <47558670+haralmha@users.noreply.github.com> | 2022-03-31 06:22:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-31 06:22:55 +0200 |
commit | 5c5da19b0cfdab09b0ba053168b958a20016026a (patch) | |
tree | a2933f549f85ece2f0235f5aabcfee5c93c7617a /var | |
parent | 75d692eed340d68f6d53b8dd0f0bc8d9edf2dd10 (diff) | |
download | spack-5c5da19b0cfdab09b0ba053168b958a20016026a.tar.gz spack-5c5da19b0cfdab09b0ba053168b958a20016026a.tar.bz2 spack-5c5da19b0cfdab09b0ba053168b958a20016026a.tar.xz spack-5c5da19b0cfdab09b0ba053168b958a20016026a.zip |
hto4l: Add new package (#29794)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/hto4l/package.py | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/hto4l/package.py b/var/spack/repos/builtin/packages/hto4l/package.py new file mode 100644 index 0000000000..4a1eeb5bfb --- /dev/null +++ b/var/spack/repos/builtin/packages/hto4l/package.py @@ -0,0 +1,37 @@ +# 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 import * + + +class Hto4l(MakefilePackage): + """Hto4l is an event generator for the SM Higgs decay into 4 charged leptons + up to NLOPS electroweak accuracy and in presence of dimension-6 operators.""" + + homepage = "https://www2.pv.infn.it/~hepcomplex/hto4l.html" + url = "http://www2.pv.infn.it/~hepcomplex/releases/hto4l/Hto4l-v2.02.tar.bz2" + + maintainers = ['haralmha'] + + version('2.02', sha256='1a7061689ddaf6bde1f12032479c529a9787d7b038ed55a0325398bd531aadf6') + + depends_on('gsl') + + @when('@2.02') + def patch(self): + filter_file(r'FFLAGS = -O1 -g -ffixed-line-length-none ' + + r'-fno-range-check \$\(DEF\)QUAD=0 \$\(DEF\)U77EXT=0', + 'FFLAGS = -O1 -g -ffixed-line-length-none -std=legacy ' + + '-fno-range-check $(DEF)QUAD=0 $(DEF)U77EXT=0', + 'LoopTools-2.10/makefile-lxplus') + filter_file(r'-mkdir \$\(PREFIX\)', '-mkdir -p $(PREFIX)', + 'LoopTools-2.10/makefile-lxplus') + filter_file(r'-mkdir \$\(LIBDIR\) \$\(BINDIR\) \$\(INCLUDEDIR\)', + '-mkdir -p $(LIBDIR) $(BINDIR) $(INCLUDEDIR)', + 'LoopTools-2.10/makefile-lxplus') + + def install(self, spec, prefix): + mkdir(prefix.bin) + install('Hto4l', prefix.bin) |