<commit_before>require 'formula'

class Guile < Formula
  homepage 'http://www.gnu.org/software/guile/'
  url 'http://ftpmirror.gnu.org/guile/guile-1.8.7.tar.gz'
  mirror 'http://ftp.gnu.org/gnu/guile/guile-1.8.7.tar.gz'
  sha1 '24cd2f06439c76d41d982a7384fe8a0fe5313b54'

  devel do
    url 'http://ftpmirror.gnu.org/guile/guile-2.0.2.tar.gz'
    mirror 'http://ftp.gnu.org/gnu/guile/guile-2.0.2.tar.gz'
    sha1 '1943fd22417ce1e51babbdcd7681e66a794a8da3'
  end

  depends_on 'pkg-config' => :build
  depends_on 'libffi'
  depends_on 'libunistring'
  depends_on 'bdw-gc'
  depends_on 'gmp'

  # GNU Readline is required; libedit won't work.
  depends_on 'readline'

  fails_with :llvm do
    build 2336
    cause "Segfaults during compilation"
  end

  def install
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--with-libreadline-prefix=#{Formula.factory('readline').prefix}"
    system "make install"

    # A really messed up workaround required on OS X --mkhl<commit_msg>guile devel 2.0.5<commit_after>require 'formula'

class Guile < Formula
  homepage 'http://www.gnu.org/software/guile/'
  url 'http://ftpmirror.gnu.org/guile/guile-1.8.7.tar.gz'
  mirror 'http://ftp.gnu.org/gnu/guile/guile-1.8.7.tar.gz'
  sha1 '24cd2f06439c76d41d982a7384fe8a0fe5313b54'

  devel do
    url 'http://ftpmirror.gnu.org/guile/guile-2.0.5.tar.gz'
    mirror 'http://ftp.gnu.org/gnu/guile/guile-2.0.5.tar.gz'
    sha1 '0cf94962ab637975bf2ad00afa15638dcc67408f'
  end

  depends_on 'pkg-config' => :build
  depends_on 'libffi'
  depends_on 'libunistring'
  depends_on 'bdw-gc'
  depends_on 'gmp'

  # GNU Readline is required; libedit won't work.
  depends_on 'readline'

  fails_with :llvm do
    build 2336
    cause "Segfaults during compilation"
  end

  def install
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--with-libreadline-prefix=#{Formula.factory('readline').prefix}"
    system "make install"

    # A really messed up workaround required on OS X --mkhl
{'fraction_non_alphanumeric': 0.1362781954887218, 'fraction_numerical': 0.0662593984962406, 'mean_word_length': 2.906422018348624, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '3463413', 'n_tokens_mistral': 898, 'n_tokens_neox': 825, 'n_words': 145}