summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorValentin Volkl <valentin.volkl@cern.ch>2022-05-05 13:30:45 +0200
committerGitHub <noreply@github.com>2022-05-05 13:30:45 +0200
commit381ec8abac427eae0da77f05de388a415479904d (patch)
treedc672c0612566da16f33164294b78b9fbd65f181 /var
parentfd6d2265244b2b326d9c8fbe223e80595d472374 (diff)
downloadspack-381ec8abac427eae0da77f05de388a415479904d.tar.gz
spack-381ec8abac427eae0da77f05de388a415479904d.tar.bz2
spack-381ec8abac427eae0da77f05de388a415479904d.tar.xz
spack-381ec8abac427eae0da77f05de388a415479904d.zip
baurmc: add new package (#30245)
Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/baurmc/package.py43
1 files changed, 43 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/baurmc/package.py b/var/spack/repos/builtin/packages/baurmc/package.py
new file mode 100644
index 0000000000..fc3305774d
--- /dev/null
+++ b/var/spack/repos/builtin/packages/baurmc/package.py
@@ -0,0 +1,43 @@
+# 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)
+
+import os
+
+from spack import *
+
+
+class Baurmc(AutotoolsPackage):
+ """Baur's Monte Carlo package for simulating W+ gamma production at hadron
+ colliders provides full electroweak calculation upto O(alpha) and contains
+ higher order QCD corrections as well."""
+
+ homepage = "https://twiki.cern.ch/twiki/bin/view/Sandbox/BaurMCInteface"
+ url = "http://lcgpackages.web.cern.ch/lcgpackages/tarFiles/sources/MCGeneratorsTarFiles/baurmc-1.0-src.tgz"
+
+ tags = ['hep']
+
+ maintainers = ['vvolkl']
+
+ version('1.0', sha256='de5027ed2e66028bed890760bee9d869e1e330ac7f7112ee5cb25868cea5c35b')
+
+ @property
+ def configure_directory(self):
+ return os.path.join(self.stage.source_path, str(self.spec.version))
+
+ def patch(self):
+ filter_file('FC=g77',
+ 'FC=gfortran',
+ str(self.spec.version) + '/configure',
+ string=True)
+
+ def configure_args(self):
+ return [
+ '--userfflags=-fno-automatic',
+ '--enable-shared'
+ ]
+
+ def install(self, spec, prefix):
+ build_libdir = os.path.join(str(spec.version), "lib")
+ install_tree(build_libdir, self.prefix.lib)