bond 9.0.1 (new formula)

Closes #58894.

Signed-off-by: Dawid Dziurla <dawidd0811@gmail.com>
master
Andrew Kane 2020-07-30 20:32:19 -07:00 committed by Dawid Dziurla
parent 5a5507aa5d
commit 91e156d0ab
1 changed files with 30 additions and 0 deletions

30
Formula/bond.rb Normal file
View File

@ -0,0 +1,30 @@
class Bond < Formula
desc "Cross-platform framework for working with schematized data"
homepage "https://github.com/microsoft/bond"
url "https://github.com/microsoft/bond/archive/9.0.1.tar.gz"
sha256 "df56b97961ae1c6cf8399170051d977cda6ba30be45a0a50fb7bdea8c65fb076"
license "MIT"
depends_on "cmake" => :build
depends_on "haskell-stack" => :build
depends_on "boost"
depends_on "rapidjson"
def install
mkdir "build" do
system "cmake", "..", *std_cmake_args, "-DBOND_ENABLE_GRPC=FALSE", "-DBOND_FIND_RAPIDJSON=TRUE"
system "make"
system "make", "install"
end
chmod 0755, bin/"gbc"
pkgshare.install "examples"
end
test do
cp_r pkgshare/"examples/cpp/core/serialization/.", testpath
system bin/"gbc", "c++", "serialization.bond"
system ENV.cxx, "-std=c++11", "serialization_types.cpp", "serialization.cpp",
"-o", "test", "-L#{lib}/bond", "-lbond", "-lbond_apply"
system "./test"
end
end