<commit_before>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'
  version '0.2.0'
  url 'http://apache.dataphone.se/incubator/thrift/0.2.0-incubating/thrift-0.2.0-incubating.tar.gz'
  md5 '9958c57c402c02171ba0bcc96183505c'

  depends_on 'boost'
  
  def install
    FileUtils.cp "/usr/X11/share/aclocal/pkg.m4", "aclocal"
    system "./bootstrap.sh" if version == 'HEAD'
    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.undent
    We didn't install the python bindings, to do that:

        easy_install thrift
    EOS
  end
end
<commit_msg>Don't install Thrift scripting bindings<commit_after>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'
  version '0.2.0'
  url 'http://apache.dataphone.se/incubator/thrift/0.2.0-incubating/thrift-0.2.0-incubating.tar.gz'
  md5 '9958c57c402c02171ba0bcc96183505c'

  depends_on 'boost'
  
  def install
    cp "/usr/X11/share/aclocal/pkg.m4", "aclocal"
    system "./bootstrap.sh" if version == 'HEAD'
    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",
                         # again, use gem
                         "--without-ruby",
                         "--without-perl"
    system "make"
    system "make install"
  end

  def caveats; <<-EOS.undent
    Some bindings were not installed. You may like to do the following:

        gem install thrift
        easy_install thrift

    Perl bindings are a mystery someone should solve.
    EOS
  end
end

{'fraction_non_alphanumeric': 0.11907654921020656, 'fraction_numerical': 0.02916160388821385, 'mean_word_length': 2.079800498753117, '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': '3576452', 'n_tokens_mistral': 815, 'n_tokens_neox': 761, 'n_words': 189}