Skip to content

Commit

Permalink
leela-zero: update license
Browse files Browse the repository at this point in the history
  • Loading branch information
branchvincent committed Feb 12, 2023
1 parent 61239c4 commit ca1ebb9
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions Formula/leela-zero.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class LeelaZero < Formula
url "https://github.com/leela-zero/leela-zero.git",
tag: "v0.17",
revision: "3f297889563bcbec671982c655996ccff63fa253"
license "GPL-3.0"
license "GPL-3.0-or-later"
revision 3

bottle do
Expand Down Expand Up @@ -34,17 +34,14 @@ class LeelaZero < Formula
end

def install
mkdir "build"
cd "build" do
system "cmake", "..", *std_cmake_args
system "cmake", "--build", "."
bin.install "leelaz"
end
system "cmake", "-S", ".", "-B", "build", *std_cmake_args
system "cmake", "--build", "build"
system "cmake", "--install", "build"
pkgshare.install resource("network")
end

test do
system "#{bin}/leelaz", "--help"
system bin/"leelaz", "--help"
assert_match(/^= [A-T][0-9]+$/,
pipe_output("#{bin}/leelaz --cpu-only --gtp -w #{pkgshare}/*.gz", "genmove b\n", 0))
end
Expand Down

0 comments on commit ca1ebb9

Please sign in to comment.