<commit_before>require 'formula'

class TomcatNative < Formula
  homepage 'http://tomcat.apache.org/native-doc/'
  url 'http://www.apache.org/dyn/closer.cgi?path=tomcat/tomcat-connectors/native/1.1.32/source/tomcat-native-1.1.32-src.tar.gz'
  sha1 'a4bfb7f79316c49cfed3a0c5c71ba11b51fe0922'

  bottle do
    cellar :any
    sha1 "2294b2ecde5a96eb38e28223d622d5c443c9a04b" => :yosemite
    sha1 "04e8e6d8de9064eeacbf06101a029a2463de4649" => :mavericks
    sha1 "03d417ff8af69aba03c872e3bf7b3de9ca43d44b" => :mountain_lion
  end

  option "with-apr", "Include APR support via Homebrew"

  depends_on "libtool" => :build
  depends_on "tomcat" => :recommended
  depends_on :java => "1.7"
  depends_on "openssl"
  depends_on "apr" => :optional

  def install
    cd "jni/native" do
      if build.with? 'apr'
        apr_path = "#{Formula['apr'].prefix}"
      else
        apr_path = "#{MacOS.sdk_path}/usr"
      end
      system "./configure", "--prefix=#{prefix}",
                            "--with-apr=#{apr_path}",
                            "--with-java-home=#{`/usr/libexec/java_home`.chomp}",
                            "--with-ssl=#{Formula["openssl"].prefix}"

      # fixes occasional compiling issue: glibtool: compile: specify a tag with `--tag'<commit_msg>tomcat-native 1.1.33<commit_after>require 'formula'

class TomcatNative < Formula
  homepage 'https://tomcat.apache.org/native-doc/'
  url 'https://www.apache.org/dyn/closer.cgi?path=tomcat/tomcat-connectors/native/1.1.33/source/tomcat-native-1.1.33-src.tar.gz'
  sha1 'c7626c8e5144ee8e958175c4cd034cef90eab1ed'

  bottle do
    cellar :any
    sha1 "2294b2ecde5a96eb38e28223d622d5c443c9a04b" => :yosemite
    sha1 "04e8e6d8de9064eeacbf06101a029a2463de4649" => :mavericks
    sha1 "03d417ff8af69aba03c872e3bf7b3de9ca43d44b" => :mountain_lion
  end

  option "with-apr", "Include APR support via Homebrew"

  depends_on "libtool" => :build
  depends_on "tomcat" => :recommended
  depends_on :java => "1.7"
  depends_on "openssl"
  depends_on "apr" => :optional

  def install
    cd "jni/native" do
      if build.with? 'apr'
        apr_path = "#{Formula['apr'].prefix}"
      else
        apr_path = "#{MacOS.sdk_path}/usr"
      end
      system "./configure", "--prefix=#{prefix}",
                            "--with-apr=#{apr_path}",
                            "--with-java-home=#{`/usr/libexec/java_home`.chomp}",
                            "--with-ssl=#{Formula["openssl"].prefix}"

      # fixes occasional compiling issue: glibtool: compile: specify a tag with `--tag'
{'fraction_non_alphanumeric': 0.14162416633974106, 'fraction_numerical': 0.08591604550804237, 'mean_word_length': 2.9050535987748853, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '5503003', 'n_tokens_mistral': 1079, 'n_tokens_neox': 976, 'n_words': 154}