summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authoriarspider <iarspider@gmail.com>2021-02-02 23:42:07 +0100
committerGitHub <noreply@github.com>2021-02-02 14:42:07 -0800
commit4691177bbf622786eb1a1e48a64b79937095a93e (patch)
treeab60a547f67100965210c930275530053296bc9a /var
parentd8ba71993c58d42d11ad38356d1a06a53de86662 (diff)
downloadspack-4691177bbf622786eb1a1e48a64b79937095a93e.tar.gz
spack-4691177bbf622786eb1a1e48a64b79937095a93e.tar.bz2
spack-4691177bbf622786eb1a1e48a64b79937095a93e.tar.xz
spack-4691177bbf622786eb1a1e48a64b79937095a93e.zip
New package: apfel (#21440)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/apfel/package.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/apfel/package.py b/var/spack/repos/builtin/packages/apfel/package.py
new file mode 100644
index 0000000000..400ee71127
--- /dev/null
+++ b/var/spack/repos/builtin/packages/apfel/package.py
@@ -0,0 +1,35 @@
+# 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 Apfel(AutotoolsPackage):
+ """APFEL is a library able to perform DGLAP evolution up to NNLO in QCD and
+ to NLO in QED, both with pole and MSbar masses. The coupled DGLAP
+ QCD+QED evolution equations are solved in x-space by means of higher
+ order interpolations and Runge-Kutta techniques."""
+
+ homepage = "https://github.com/scarrazza/apfel"
+ url = "https://github.com/scarrazza/apfel/archive/3.0.4.tar.gz"
+
+ version('3.0.4', sha256='c7bfae7fe2dc0185981850f2fe6ae4842749339d064c25bf525b4ef412bbb224')
+
+ depends_on('swig', when='+python')
+ depends_on('python', when='+python', type=('build', 'run'))
+ depends_on('lhapdf', when='+lhapdf', type=('build', 'run'))
+
+ variant('python', description='Build python wrapper', default=False)
+ variant('lhapdf', description='Link to LHAPDF', default=False)
+
+ def configure_args(self):
+ args = []
+ if self.spec.satisfies('~python'):
+ args.append('--disable-pywrap')
+ else:
+ args.append('--enable-pywrap')
+
+ args += self.enable_or_disable('lhapdf')
+ return args