homebrew-core/Formula/json_spirit.rb
2018-08-24 09:00:33 +02:00

32 lines
1.2 KiB
Ruby

class JsonSpirit < Formula
desc "C++ JSON parser/generator"
homepage "https://www.codeproject.com/Articles/20027/JSON-Spirit-A-C-JSON-Parser-Generator-Implemented"
url "https://github.com/png85/json_spirit/archive/json_spirit-4.07.tar.gz"
sha256 "3d53fac906261de1cf48db362436ca32b96547806ab6cce5ac195460ad732320"
bottle do
cellar :any
sha256 "83e0551760113ed4c6a23db7670c64b19f59b841d9ec8dd76cf5bdc833c66088" => :mojave
sha256 "0eed2985cea7cc97f61f595591b52889884e47617a3cebe8b0f78da0f26de95a" => :high_sierra
sha256 "4c7c56c29cb1e6b2f866004a82aeb89e66f177a5b155c6d723338957c0ad228f" => :sierra
sha256 "7668e993b4d8ca4493d6e8a706378e840b35409a96b1ac928fd96c8933528cf4" => :el_capitan
sha256 "192b4f814c55d038a5a0d8ab1dd13698d1f4daa4899ef9ce1cb22b8562442a96" => :yosemite
sha256 "fba55377ce6098174e392e66df972e070f58f9a259aa38cad592eaf2e808eace" => :mavericks
end
depends_on "boost"
depends_on "cmake" => :build
def install
args = std_cmake_args
args << "-DBUILD_STATIC_LIBRARIES=ON"
system "cmake", *args
system "make"
args = std_cmake_args
args << "-DBUILD_STATIC_LIBRARIES=OFF"
system "cmake", *args
system "make", "install"
end
end