aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/yajl.rb
blob: a170b841ba18e9ece2e02436f9ddb86fee74254b (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
require 'formula'

class Yajl < Formula
  homepage 'http://lloyd.github.com/yajl/'
  url 'http://github.com/lloyd/yajl/tarball/1.0.11'
  md5 '5b60f4d59b3b1fb42d7808d08460fb12'

  def patches
    # All YAJL releases so far have an rpath bug, though its fixed in upstream git:
    "https://github.com/lloyd/yajl/commit/a31c4d0f9ad90b4b58508702fd877bb35039067e.patch"
  end

  # Configure uses cmake, even though it looks like we're
  # just using autotools below.
  depends_on 'cmake' => :build

  def install
    ENV.deparallelize

    system "./configure", "--prefix=#{prefix}"
    system "make install"
    (include + 'yajl').install Dir['src/api/*.h']
  end
end