summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/agile/package.py
blob: e2f31ed2a4d4ce360d809b885e29d4197b89a5cf (plain) (blame)
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
34
35
36
37
# 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 Agile(AutotoolsPackage):
    """AGILe is A Generator Interface Library (& executable), i.e. a uniform
    object oriented C++ interface for a variety of Fortran-based Monte Carlo
    event generators.."""

    homepage = "https://agile.hepforge.org/"
    url = "http://www.hepforge.org/archive/agile/AGILe-1.4.1.tar.gz"

    tags = ["hep"]

    maintainers("vvolkl")

    license("GPL-2.0-only")

    version("1.5.1", sha256="e38536300060e4b845ccaaed824c7495944f9117a0d7e4ee74a18bf278e2012f")

    depends_on("hepmc")
    depends_on("boost")

    def configure_args(self):
        options = [
            "--prefix=%s" % self.spec.prefix,
            "--with-hepmc=%s" % self.spec["hepmc"].prefix,
            "--with-boost=%s" % self.spec["boost"].prefix,
            "--disable-pyext",  # probably only works with python2
            "CFLAGS=-g0 -O2",
            "CXXFLAGS=-g0 -O2",
            "FFLAGS=-g0 -O2",
        ]
        return options