blob: 0b86a77cb5a4839aafc68d6765b6edcff7ce76d4 (
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
 | require 'formula'
class JsonC < Formula
  homepage 'https://github.com/json-c/json-c/wiki'
  url 'https://github.com/json-c/json-c/archive/json-c-0.11-20130402.tar.gz'
  version '0.11'
  sha1 '1910e10ea57a743ec576688700df4a0cabbe64ba'
  bottle do
    cellar :any
    sha1 "44f79306bc549ac82fb2007184a757e6d94ae320" => :mavericks
    sha1 "0d3169dcd74efedb465598463026dc8c1b3192a1" => :mountain_lion
    sha1 "13d7c03bb2c64a60d392390e693f750ccb38be6c" => :lion
  end
  option :universal
  def install
    ENV.universal_binary if build.universal?
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    ENV.deparallelize
    system "make install"
  end
end
 |