
* Make boost composable Currently Boost enables a few components through variants by default, which means that if you want to use only what you need and no more, you have to explicitly disable these variants, leading to concretization errors whenever a second package explicitly needs those components. For instance if package A only needs `+component_a` it might depend on `boost +component_a ~component_b`. And if packge B only needs `+component_b` it might depend on `boost ~component_a +component_b`. If package C now depends on both A and B, this leads to unsatisfiable variants and hence a concretization error. However, if we default to disabling all components, package A can simply depend on `boost +component_a` and package B on `boost +component_b` and package C will concretize to depending on `boost +component_a +component_b`, and whatever you install, you get the bare minimum. * Fix style * Added composable boost dependencies for folly * fixing akantu merge issue * hpctoolkit boost dependencies already defined * Fix Styles * Fixup style once more * Adding isort fix * isort one more time * Fix for package audit issue Co-authored-by: Harmen Stoppels <harmenstoppels@gmail.com> Co-authored-by: Ryan O'Malley <rd.omalley@comcast.net>
49 lines
1.7 KiB
Python
49 lines
1.7 KiB
Python
# Copyright 2013-2022 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 import *
|
|
from spack.pkg.builtin.boost import Boost
|
|
|
|
|
|
class Dire(Package):
|
|
"""DIRE (short for dipole resummation) a C++ program for all-order
|
|
radiative corrections to scattering processes in high-energy particle
|
|
collisions."""
|
|
|
|
homepage = "https://dire.gitlab.io/"
|
|
url = "https://dire.gitlab.io/Downloads/DIRE-2.004.tar.gz"
|
|
git = "https://gitlab.com/dire/direforpythia"
|
|
list_url = "https://dire.gitlab.io/Downloads.html"
|
|
|
|
tags = ['hep']
|
|
|
|
maintainer = ['mdiefent']
|
|
|
|
version('2.004', sha256='8cc1213b58fec744fdaa50834560a14b141de99efb2c3e3d3d47f3d6d84b179f')
|
|
|
|
depends_on('zlib')
|
|
|
|
# TODO: replace this with an explicit list of components of Boost,
|
|
# for instance depends_on('boost +filesystem')
|
|
# See https://github.com/spack/spack/pull/22303 for reference
|
|
depends_on(Boost.with_default_variants)
|
|
depends_on('lhapdf')
|
|
depends_on('hepmc')
|
|
depends_on('pythia8@8.226:')
|
|
|
|
conflicts('pythia8@8.301:', msg='Dire is included in Pythia8 since version 8.301')
|
|
|
|
def install(self, spec, prefix):
|
|
configure_args = ['--prefix={0}'.format(prefix)]
|
|
configure_args.append(
|
|
'--with-pythia8={0}'.format(spec['pythia8'].prefix))
|
|
configure(*configure_args)
|
|
make()
|
|
# Open bug: https://gitlab.com/wdconinc/direforpythia/-/merge_requests/1
|
|
filter_file('-Wl,-rpath ',
|
|
self.compiler.cc_rpath_arg,
|
|
'bin/dire-config')
|
|
make('install')
|