blob: e00b3bce8e3928de3f471d877a59749c04f53122 (
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
28
29
30
31
32
33
34
35
36
|
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.12-20140410.tar.gz"
version "0.12"
sha256 "99304a4a633f1ee281d6a521155a182824dd995139d5ed6ee5c93093c281092b"
bottle do
cellar :any
sha1 "9066fa256094d7836546e0a9a89f540010b48896" => :yosemite
sha1 "3d4aff56dc15feecc79cda2f3cf30e0eb54e9489" => :mavericks
sha1 "26b39365b735048ca6c42b340ececdc146666e79" => :mountain_lion
end
head do
url "https://github.com/json-c/json-c.git"
depends_on "libtool" => :build
depends_on "automake" => :build
depends_on "autoconf" => :build
end
option :universal
def install
ENV.universal_binary if build.universal?
system "./autogen.sh" if build.head?
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
ENV.deparallelize
system "make", "install"
end
end
|