From 2c17cd365de54c38cf5c0f1ec212b352a7f4f52e Mon Sep 17 00:00:00 2001 From: Thomas Madlener Date: Wed, 3 Apr 2024 21:55:57 +0200 Subject: Make it possible to build whizard from a git checkout (#43447) --- var/spack/repos/builtin/packages/whizard/package.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'var') 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" -- cgit v1.2.3-70-g09d2