summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/whizard/package.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/whizard/package.py b/var/spack/repos/builtin/packages/whizard/package.py
index 57241cd6cf..1abfc157d2 100644
--- a/var/spack/repos/builtin/packages/whizard/package.py
+++ b/var/spack/repos/builtin/packages/whizard/package.py
@@ -3,6 +3,8 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+import os
+
from spack.package import *
@@ -121,6 +123,14 @@ class Whizard(AutotoolsPackage):
env.set("FC", self.compiler.fc)
env.set("F77", self.compiler.fc)
+ @run_before("autoreconf")
+ def prepare_whizard(self):
+ # As described in the manual (SVN Repository version)
+ # https://whizard.hepforge.org/manual/manual003.html#sec%3Aprerequisites
+ if not os.path.exists("configure.ac"):
+ shell = which("sh")
+ shell("build_master.sh")
+
def configure_args(self):
spec = self.spec
enable_hepmc = "no" if "hepmc=off" in spec else "yes"