2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-01 13:05:18 +00:00
|
|
|
|
|
|
|
class Thrift <Formula
|
2009-10-04 23:36:13 +00:00
|
|
|
homepage 'http://incubator.apache.org/thrift/'
|
2010-04-07 05:58:35 +00:00
|
|
|
head 'http://svn.apache.org/repos/asf/incubator/thrift/trunk'
|
2010-10-26 04:02:37 +00:00
|
|
|
url 'http://www.apache.org/dist/incubator/thrift/0.5.0-incubating/thrift-0.5.0.tar.gz'
|
|
|
|
md5 '14c97adefb4efc209285f63b4c7f51f2'
|
2009-09-01 13:05:18 +00:00
|
|
|
|
2009-10-04 23:36:13 +00:00
|
|
|
depends_on 'boost'
|
2010-04-07 05:58:35 +00:00
|
|
|
|
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-10-30 22:57:11 +00:00
|
|
|
"--without-python",
|
2010-03-28 01:41:03 +00:00
|
|
|
# again, use gem
|
|
|
|
"--without-ruby",
|
2010-08-21 17:10:13 +00:00
|
|
|
"--without-perl",
|
|
|
|
# this wants to alter the system wide autoloads file
|
|
|
|
"--without-php"
|
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
|
|
|
|
2010-08-21 17:10:13 +00:00
|
|
|
Perl and PHP bindings are a mystery someone should solve.
|
2009-09-01 13:05:18 +00:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|