<commit_before>require "formula"

class Bind < Formula
  homepage "http://www.isc.org/software/bind/"
  url "http://ftp.isc.org/isc/bind9/9.10.2/bind-9.10.2.tar.gz"
  sha1 "4ddb2670976c06af7e86352616383958d82c51ce"

  bottle do
    sha1 "901a4706d23607927fadb78d5495d49f715fdde4" => :yosemite
    sha1 "ce2cfdc2ebaab7cccc001f9fdefd2d55d6b9fa11" => :mavericks
    sha1 "b9f513f74bb0ec23af29057fc0eb1e2c410c9769" => :mountain_lion
  end

  head "https://source.isc.org/git/bind9.git"

  depends_on "openssl"

  def install
    ENV.libxml2
    # libxml2 appends one inc dir to CPPFLAGS but bind ignores CPPFLAGS
    ENV.append "CFLAGS", ENV.cppflags

    system "./configure", "--prefix=#{prefix}",
                          "--enable-threads",
                          "--enable-ipv6",
                          "--with-openssl=#{Formula["openssl"].opt_prefix}"

    # From the bind9 README: "Do not use a parallel "make"."<commit_msg>bind: use https url and homepage<commit_after>require "formula"

class Bind < Formula
  homepage "https://www.isc.org/software/bind/"
  url "https://www.isc.org/isc/bind9/9.10.2/bind-9.10.2.tar.gz"
  sha1 "4ddb2670976c06af7e86352616383958d82c51ce"

  bottle do
    sha1 "901a4706d23607927fadb78d5495d49f715fdde4" => :yosemite
    sha1 "ce2cfdc2ebaab7cccc001f9fdefd2d55d6b9fa11" => :mavericks
    sha1 "b9f513f74bb0ec23af29057fc0eb1e2c410c9769" => :mountain_lion
  end

  head "https://source.isc.org/git/bind9.git"

  depends_on "openssl"

  def install
    ENV.libxml2
    # libxml2 appends one inc dir to CPPFLAGS but bind ignores CPPFLAGS
    ENV.append "CFLAGS", ENV.cppflags

    system "./configure", "--prefix=#{prefix}",
                          "--enable-threads",
                          "--enable-ipv6",
                          "--with-openssl=#{Formula["openssl"].opt_prefix}"

    # From the bind9 README: "Do not use a parallel "make"."
{'fraction_non_alphanumeric': 0.12440444679724721, 'fraction_numerical': 0.11858125992588671, 'mean_word_length': 2.810483870967742, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 4, 'lorem ipsum': 0, 'www.': 3, 'xml': 4}, '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': '3478450', 'n_tokens_mistral': 839, 'n_tokens_neox': 718, 'n_words': 124}