
Add language dependencies `c`, `cxx`, and `fortran`. These `depends_on` statements are auto-generated based on file extensions found in source tarballs/zipfiles. The `# generated` comment can be removed by package maintainers after validating correctness.
46 lines
1.5 KiB
Python
46 lines
1.5 KiB
Python
# Copyright 2013-2024 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.package import *
|
|
|
|
|
|
class Bdsim(CMakePackage):
|
|
"""Beam Delivery Simulation (BDSIM) is a C++ program that utilises the Geant4 toolkit
|
|
to simulate both the transport of particles in an accelerator and their
|
|
interaction with the accelerator material"""
|
|
|
|
homepage = "http://www.pp.rhul.ac.uk/bdsim/manual/index.html"
|
|
url = "https://bitbucket.org/jairhul/bdsim/get/v1.6.0.tar.gz"
|
|
git = "https://bitbucket.org/jairhul/bdsim/src/master/"
|
|
|
|
tags = ["hep"]
|
|
|
|
maintainers("gganis")
|
|
|
|
license("GPL-3.0-or-later")
|
|
|
|
version("master", branch="master")
|
|
version("1.7.6", sha256="92f53aa0a9fbd3cafd218f9e58ae4d1e7115733e641191c1658243fefb436600")
|
|
version("1.7.0", sha256="713ce3c9d94f340ca774ce1803e0c4f992b904dbc28ce4129713abe883e98683")
|
|
version("1.6.0", sha256="e3241d2d097cb4e22249e315c1474da9b3657b9c6893232d9f9e543a5323f717")
|
|
|
|
depends_on("cxx", type="build") # generated
|
|
|
|
depends_on("cmake")
|
|
depends_on("geant4")
|
|
depends_on("geant4@:10.7.3", when="@:1.6.0")
|
|
depends_on("root")
|
|
depends_on("clhep")
|
|
depends_on("flex")
|
|
depends_on("bison")
|
|
|
|
patch("c++-standard.patch", when="@:1.7.6")
|
|
|
|
def cmake_args(self):
|
|
args = []
|
|
args.append(f"-DCMAKE_CXX_STANDARD={self.spec['root'].variants['cxxstd'].value}")
|
|
return args
|