Skip to content

Commit

Permalink
package for hepmc merger
Browse files Browse the repository at this point in the history
  • Loading branch information
kkauder committed Jun 17, 2024
1 parent c385ddf commit 4185e48
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions packages/hepmcmerger/package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# 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)

# ----------------------------------------------------------------------------
# If you submit this package back to Spack as a pull request,
# please first remove this boilerplate and all FIXME comments.
#
# This is a template package file for Spack. We've put "FIXME"
# next to all the things you'll want to change. Once you've handled
# them, you can save this file and test your package like this:
#
# spack install hepmcmerger
#
# You can edit this file again by typing:
#
# spack edit hepmcmerger
#
# See the Spack documentation for more information on packaging.
# ----------------------------------------------------------------------------

from spack.package import *


class Hepmcmerger(Package):
"""An EIC HepMC merger to combine signal and background events."""

# FIXME: Add a proper url for your package's homepage here.
homepage = "https://github.com/eic/HEPMC_Merger
url = "https://github.com/eic/HEPMC_Merger/releases/tag/v1.0.3"
list_url = "https://github.com/eic/HEPMC_Merger/tags"
git = "https://github.com/eic/HEPMC_Merger"

maintainers = ["kkauder"]

tags = ["eic"]

version("main", branch="main")
version("v1.0.3", sha256="d09c3ce65cc41a5f0bed4111deaa2d0d0e37173725c4caf873fd8f312f37096e")
version("v1.0.2", sha256="50d8be2b69cf87460c69bf261cf61c64587ea5aadcfe344aec1b0a1d8b59b386")
version("v1.0.1", sha256="f244ff4de311c164597eaedf547a7305b6d3cc1e6b2bc6e6d9acb8e603a44a4b")
version("v1.0.0", sha256="c6088ba6ce73a92d165bc82e19f6670a1545fcfb6f352cdf5629c395a95c16af")

depends_on("hepmc3")
depends_on("root")

def cmake_args(self):
args = []
args.append(
"-DCMAKE_CXX_STANDARD=%s" % self.spec["root"].variants["cxxstd"].value
)
return args

0 comments on commit 4185e48

Please sign in to comment.