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

# TODO Fix java support anyone?
#
#

class Thrift <Formula
  homepage 'http://incubator.apache.org/thrift/'
  head 'http://svn.apache.org/repos/asf/incubator/thrift/trunk'

  depends_on 'boost'
  
  def install
    FileUtils.cp "/usr/X11/share/aclocal/pkg.m4", "aclocal"
    system "./bootstrap.sh"
    system "./configure","--disable-debug","--without-java",
                         "--prefix=#{prefix}","--libdir=#{lib}",
                         # rationale: this can be installed with easy_install
                         # and when you do that, it installs properly, we
                         # can't install it properly without leaving Homebrew's prefix
                         "--without-py"
    system "make"
    system "make install"
  end
  
  def caveats; <<-EOS
We didn't install the python bindings, to do that:

    easy_install thrift
    EOS
  end
end