Skip to content

Commit

Permalink
math-comp: revision bump (ocaml-5.2.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
XVilka committed Jun 4, 2024
1 parent 6c2d3e4 commit 8802357
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Formula/m/math-comp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class MathComp < Formula
url "https://github.com/math-comp/math-comp/archive/refs/tags/mathcomp-1.19.0.tar.gz"
sha256 "786db902d904347f2108ffceae15ba29037ff8e63a6c58b87928f08671456394"
license "CECILL-B"
revision 2
revision 3
head "https://github.com/math-comp/math-comp.git", branch: "master"

bottle do
Expand All @@ -22,6 +22,11 @@ class MathComp < Formula
depends_on "coq"

def install
# Work around for https://github.com/Homebrew/homebrew-test-bot/issues/805
if ENV["HOMEBREW_GITHUB_ACTIONS"] && !(Formula["ocaml-findlib"].etc/"findlib.conf").exist?
ENV["OCAMLFIND_CONF"] = Formula["ocaml-findlib"].opt_libexec/"findlib.conf"
end

coqlib = "#{lib}/coq/"

(buildpath/"mathcomp/Makefile.coq.local").write <<~EOS
Expand All @@ -40,6 +45,11 @@ def install
end

test do
# Work around for https://github.com/Homebrew/homebrew-test-bot/issues/805
if ENV["HOMEBREW_GITHUB_ACTIONS"] && !(Formula["ocaml-findlib"].etc/"findlib.conf").exist?
ENV["OCAMLFIND_CONF"] = Formula["ocaml-findlib"].opt_libexec/"findlib.conf"
end

(testpath/"testing.v").write <<~EOS
From mathcomp Require Import ssreflect seq.
Expand Down

0 comments on commit 8802357

Please sign in to comment.