Created
October 13, 2015 18:05
-
-
Save kapadia/5eb3f39c690ccfdeb1ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class JsonC < Formula | |
desc "JSON parser for C" | |
homepage "https://github.com/json-c/json-c/wiki" | |
url "https://github.com/downloads/json-c/json-c/json-c-0.9.tar.gz" | |
version "0.9" | |
sha256 "702a486c9bf8e19137d484ab5c49b4ad314eb5e1fe37062a72c0a0fa39439475" | |
bottle do | |
cellar :any | |
revision 1 | |
sha256 "8ba8006e2eb97006a781ce8d93a95791ae1e26d094afce0aeb8483caa95febbd" => :el_capitan | |
sha1 "fda8051afcd1aca5d5f225a757c0f6333c9f091a" => :yosemite | |
sha1 "3e4ba1c8434dde4bcff70dbfa5be90a1f8540f3f" => :mavericks | |
sha1 "e4b48b569408080805e236317eec4fa0cc3c2f06" => :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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment