Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flatbuffers 2.0.7 #108676

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 8 additions & 4 deletions Formula/flatbuffers.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Flatbuffers < Formula
desc "Serialization library for C++, supporting Java, C#, and Go"
homepage "https://google.github.io/flatbuffers"
url "https://github.com/google/flatbuffers/archive/v2.0.6.tar.gz"
sha256 "e2dc24985a85b278dd06313481a9ca051d048f9474e0f199e372fea3ea4248c9"
url "https://github.com/google/flatbuffers/archive/v2.0.7.tar.gz"
sha256 "4c7986174dc3941220bf14feaacaad409c3e1526d9ad7f490366fede9a6f43fa"
license "Apache-2.0"
head "https://github.com/google/flatbuffers.git", branch: "master"

Expand All @@ -26,8 +26,12 @@ class Flatbuffers < Formula
conflicts_with "osrm-backend", because: "both install flatbuffers headers"

def install
system "cmake", "-G", "Unix Makefiles", *std_cmake_args
system "make", "install"
system "cmake", "-S", ".", "-B", "build",
"-DFLATBUFFERS_BUILD_SHAREDLIB=ON",
"-DFLATBUFFERS_BUILD_TESTS=OFF",
*std_cmake_args
system "cmake", "--build", "build"
system "cmake", "--install", "build"
end

test do
Expand Down