parent
5a5507aa5d
commit
91e156d0ab
|
@ -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
|
Loading…
Reference in New Issue