2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-01 13:05:18 +00:00
|
|
|
|
|
|
|
# TODO Fix java support anyone?
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
class Thrift <Formula
|
2009-10-04 23:36:13 +00:00
|
|
|
homepage 'http://incubator.apache.org/thrift/'
|
|
|
|
head 'http://svn.apache.org/repos/asf/incubator/thrift/trunk'
|
2010-03-27 14:47:49 +00:00
|
|
|
version '0.2.0'
|
|
|
|
url 'http://apache.dataphone.se/incubator/thrift/0.2.0-incubating/thrift-0.2.0-incubating.tar.gz'
|
|
|
|
md5 '9958c57c402c02171ba0bcc96183505c'
|
2009-09-01 13:05:18 +00:00
|
|
|
|
2009-10-04 23:36:13 +00:00
|
|
|
depends_on 'boost'
|
|
|
|
|
2009-09-01 13:05:18 +00:00
|
|
|
def install
|
2010-03-28 01:41:03 +00:00
|
|
|
cp "/usr/X11/share/aclocal/pkg.m4", "aclocal"
|
2010-03-27 14:47:49 +00:00
|
|
|
system "./bootstrap.sh" if version == 'HEAD'
|
2009-09-01 13:05:18 +00:00
|
|
|
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
|
2010-03-28 01:41:03 +00:00
|
|
|
"--without-py",
|
|
|
|
# again, use gem
|
|
|
|
"--without-ruby",
|
|
|
|
"--without-perl"
|
2009-09-01 13:05:18 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
2010-03-28 01:41:03 +00:00
|
|
|
|
2010-02-27 17:26:27 +00:00
|
|
|
def caveats; <<-EOS.undent
|
2010-03-28 01:41:03 +00:00
|
|
|
Some bindings were not installed. You may like to do the following:
|
2009-09-01 13:05:18 +00:00
|
|
|
|
2010-03-28 01:41:03 +00:00
|
|
|
gem install thrift
|
2010-02-27 17:26:27 +00:00
|
|
|
easy_install thrift
|
2010-03-28 01:41:03 +00:00
|
|
|
|
|
|
|
Perl bindings are a mystery someone should solve.
|
2009-09-01 13:05:18 +00:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|