homebrew-core/Formula/libjson-rpc-cpp.rb
2019-04-27 03:12:46 +08:00

30 lines
936 B
Ruby

class LibjsonRpcCpp < Formula
desc "C++ framework for json-rpc"
homepage "https://github.com/cinemast/libjson-rpc-cpp"
url "https://github.com/cinemast/libjson-rpc-cpp/archive/v1.2.0.tar.gz"
sha256 "485556bd27bd546c025d9f9a2f53e89b4460bf820fd5de847ede2539f7440091"
head "https://github.com/cinemast/libjson-rpc-cpp.git"
bottle do
cellar :any
sha256 "c6efeb76438b2951e0dc8225e97a87a699662da1b6f0965957cd850e90dc8421" => :mojave
sha256 "e444d5b2fcc34189562fd4e01f2bcd20707acbd5588753f35a93dd1e0892b3ae" => :high_sierra
sha256 "af4c5fd9f026676f7e89cf1ef94af01f685347cc1e928b72c681b84849156c0d" => :sierra
end
depends_on "cmake" => :build
depends_on "argtable"
depends_on "hiredis"
depends_on "jsoncpp"
depends_on "libmicrohttpd"
def install
system "cmake", ".", *std_cmake_args
system "make"
system "make", "install"
end
test do
system "#{bin}/jsonrpcstub", "-h"
end
end