aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/json-c.rb
blob: 8c3dd20b4a3a455f81e80424b1f6764db9d3500b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require 'formula'

class JsonC < Formula
  homepage 'https://github.com/json-c/json-c/wiki'
  url 'https://github.com/downloads/json-c/json-c/json-c-0.10.tar.gz'
  sha1 'f90f643c8455da21d57b3e8866868a944a93c596'

  def install
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"

    # The Makefile forgets to install this header. This is fixed upstream and
    # can be pulled on the next release.
    include.install 'json_object_iterator.h'
  end
end