recola: add new package (including dependencies) (#25383)

This commit is contained in:
Valentin Volkl 2021-08-13 11:50:28 +02:00 committed by GitHub
parent 06eda406cc
commit 6cd8583165
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 68 additions and 1 deletions

View File

@ -7,13 +7,17 @@
class Collier(CMakePackage):
"""COLLIER: A Complex One-Loop LIbrary with Extended Regularizations """
"""COLLIER: A Complex One-Loop LIbrary with Extended Regularizations
for the numerical evaluation of one-loop scalar and tensor integrals
appearing in perturbative relativistic quantum field theory. """
homepage = "https://collier.hepforge.org"
url = "https://collier.hepforge.org/downloads/?f=collier-1.2.5.tar.gz"
tags = ['hep']
maintainers = ['vvolkl']
version('1.2.5', sha256='3ec58a975ff0c3b1ca870bc38973476c923ff78fd3dd5850e296037852b94a8b')
version('1.2.4', sha256='92ae8f61461b232fbd47a6d8e832e1a726d504f9390b7edc49a68fceedff8857')
version('1.2.3', sha256='e6f72df223654df59113b0067a4bebe9f8c20227bb81371d3193e1557bdf56fb')

View File

@ -0,0 +1,26 @@
# Copyright 2013-2021 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 RecolaSm(CMakePackage):
"""Standard Model files for the Recola generator."""
tags = ['hep']
homepage = "https://recola.gitlab.io/recola2/modelfiles/modelfiles.html"
url = "https://recola.hepforge.org/downloads/?f=SM_2.2.3.tar.gz"
maintainers = ['vvolkl']
version('2.2.3', sha256='9ebdc4fd8ca48789de0b6bbb2ab7e4845c92d19dfe0c3f67866cbf114d6242a5')
depends_on('collier')
def cmake_args(self):
args = ['-Dstatic=ON']
return args

View File

@ -0,0 +1,37 @@
# Copyright 2013-2021 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 Recola(CMakePackage):
"""REcursive Computation of One-Loop Amplitudes:
a fortran library for the perturbative computation of
next-to-leading-order transition amplitudes in the
Standard Model of particle physics."""
tags = ['hep']
homepage = "https://recola.hepforge.org"
url = "https://recola.hepforge.org/downloads/?f=recola2-2.2.3.tar.gz"
maintainers = ['vvolkl']
variant('python', default=True,
description="Build py-recola python bindings.")
version('2.2.3', sha256='db0f5e448ed603ac4073d4bbf36fd74f401a22876ad390c0d02c815a78106c5f')
depends_on('collier')
depends_on('recola-sm')
depends_on('python@3:', when='+python')
def cmake_args(self):
args = [
'-DCMAKE_VERBOSE_MAKEFILE=ON',
self.define_from_variant("with_python3", 'python'),
]
return args