<commit_before>require 'brewkit'

# TODO Fix java support anyone?
#
#

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

  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<commit_msg>fix thrift formula<commit_after>require 'brewkit'

# 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
{'fraction_non_alphanumeric': 0.12338754907459339, 'fraction_numerical': 0.0033651149747616375, 'mean_word_length': 2.1298245614035087, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6404946', 'n_tokens_mistral': 534, 'n_tokens_neox': 510, 'n_words': 139}