class Chaiscript < Formula desc "Easy to use embedded scripting language for C++" homepage "http://chaiscript.com/" url "https://github.com/ChaiScript/ChaiScript/archive/v5.8.5.tar.gz" sha256 "dae4a9a2258adb79a86a567b0406913356b839e21299b698d913ece468439584" bottle do cellar :any_skip_relocation sha256 "ad9e30d47610ad300013028ba5fed8a457e7a6e5fd0ddecad6005e06bd0da229" => :sierra sha256 "315f0164b410acb7d8f8be71bf34afac86c66341bf41f3e4881c2a5ce6826f9b" => :el_capitan sha256 "e3410f2c9e0d6d4c4c9d16ab1c4adbf8a4d86a17f20a3a40030a22826957ed0b" => :yosemite end depends_on "cmake" => :build def install system "cmake", ".", *std_cmake_args system "make", "install" end test do (testpath/"test.cpp").write <<-EOS.undent #include #include #include int main() { chaiscript::ChaiScript chai(chaiscript::Std_Lib::library()); assert(chai.eval("123") == 123); } EOS system ENV.cxx, "test.cpp", "-L#{lib}", "-std=c++11", "-o", "test" system "./test" end end