1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Copyright 2013-2023 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 Unigen(MakefilePackage):
"""The United Generators project was launched by the Virtual Institute 146
VI-SIM in September 2005 following a proposal of Herbert Strobele.
The goal was to facilitate comparison between various models (see below)
and/or various experiments (HADES, FOPI, CERES, NA49, CBM). The package
at present allows to convert output of various event generators to a
generic root format."""
homepage = "https://www.gsi.de/work/wissenschaftliche_netzwerke/helmholtz_virtuelle_institute/unigen.htm"
url = "https://github.com/FairRootGroup/UniGen/archive/v2.3.tar.gz"
tags = ["hep"]
version("2.3", sha256="8783bcabbdf8c50dab6e93153cff9cfb267a9a9e61aef51bf1e17679ba42a717")
patch("unigen-2.3.patch", level=0)
depends_on("root", type=("build", "link"))
def build(self, spec, prefix):
mkdirp(join_path(self.build_directory, "lib"))
make("TOPDIR=" + self.build_directory, "all")
def install(self, spec, prefix):
make("DESTDIR=" + prefix, "TOPDIR=" + self.build_directory, "install")
|