Skip to content

Commit

Permalink
hepmc: revert from 3.3.0 to 3.2.7
Browse files Browse the repository at this point in the history
HepMC 3.3.0 had breaking changes that downstream dependencies are not ready for

Closes #407.

Signed-off-by: David C Hall <[email protected]>
  • Loading branch information
davidchall committed Sep 1, 2024
1 parent edf42f0 commit bbb2bd5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Formula/hepmc3.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
class Hepmc3 < Formula
desc "C++ event record for Monte Carlo generators"
homepage "https://hepmc.web.cern.ch/"
url "https://hepmc.web.cern.ch/releases/HepMC3-3.3.0.tar.gz"
sha256 "6f876091edcf7ee6d0c0db04e080056e89efc1a61abe62355d97ce8e735769d6"
url "https://hepmc.web.cern.ch/releases/HepMC3-3.2.7.tar.gz"
sha256 "587faa6556cc54ccd89ad35421461b4761d7809bc17a2e72f5034daea142232b"
license "LGPL-3.0-or-later"
revision 1

livecheck do
url "https://hepmc.web.cern.ch/hepmc/"
Expand Down Expand Up @@ -52,5 +53,10 @@ def install
test do
assert_equal prefix.to_s, shell_output(bin/"HepMC3-config --prefix").strip
system Formula["[email protected]"].opt_bin/python, "-c", "import pyHepMC3"

cp_r share/"doc/HepMC3/examples/.", testpath
system "cmake", "-DUSE_INSTALLED_HEPMC3=ON", "CMakeLists.txt"
system "make", "basic_tree.exe"
system "outputs/bin/basic_tree.exe"
end
end

0 comments on commit bbb2bd5

Please sign in to comment.