aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libjson-rpc-cpp.rb
blob: c18110de6bea8d631458862560ae3b2dfe2a2595 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
class LibjsonRpcCpp < Formula
  homepage "https://github.com/cinemast/libjson-rpc-cpp"
  url "https://github.com/cinemast/libjson-rpc-cpp/archive/v0.5.0.tar.gz"
  sha1 "a8c9862bfff278494b43973052020eb1556abdfa"

  bottle do
    cellar :any
    sha1 "f91d44d59eb889473db7d99eef593317f9f1c244" => :yosemite
    sha1 "4857b90795ae4cf8ee239139030356bc677a02e3" => :mavericks
    sha1 "5adfd6855401bb04f0db8191e339d7d2891f4a5b" => :mountain_lion
  end

  depends_on "cmake" => :build
  depends_on "argtable"
  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