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.6.tar.gz" sha256 "05943d28d22785c44d9cb825a8efad9c3a5699447d7204ef9b53b1d64a9ac492" bottle do cellar :any_skip_relocation sha256 "23ab43c15675e41f22e6e40c3bbe26ae5acc42db43d7be50f9eb6f5a25c89311" => :sierra sha256 "e95df6e61bc1260f0773042a82b14f6a13cc69a13b632a3a032910175b230815" => :el_capitan sha256 "74ce285fe6b4a995f568f7bd89f4e7cc386d9b2202d4553ad3cf43c8091d4467" => :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