<commit_before>require 'formula'

class Libagg < Formula
  homepage 'http://www.antigrain.com'
  url 'http://www.antigrain.com/agg-2.5.tar.gz'
  sha1 '08f23da64da40b90184a0414369f450115cdb328'

  option 'with-freetype', 'Build with FreeType support'

  depends_on :automake
  depends_on 'pkg-config' => :build
  depends_on 'sdl'
  depends_on :freetype if build.include? "with-freetype"
  depends_on :libtool unless MacOS.version >= :mountain_lion

  fails_with :clang do
    build 421
    cause <<-EOS.undent
      AGG tries to return a const reference as a non-const reference, which is
      rejected by clang 3.1 but accepted by gcc
    EOS
  end<commit_msg>libagg: make libtool dep consistent<commit_after>require 'formula'

class Libagg < Formula
  homepage 'http://www.antigrain.com'
  url 'http://www.antigrain.com/agg-2.5.tar.gz'
  sha1 '08f23da64da40b90184a0414369f450115cdb328'

  option 'with-freetype', 'Build with FreeType support'

  depends_on :automake
  depends_on :libtool
  depends_on 'pkg-config' => :build
  depends_on 'sdl'
  depends_on :freetype if build.include? "with-freetype"

  fails_with :clang do
    build 421
    cause <<-EOS.undent
      AGG tries to return a const reference as a non-const reference, which is
      rejected by clang 3.1 but accepted by gcc
    EOS
  end
{'fraction_non_alphanumeric': 0.09118773946360154, 'fraction_numerical': 0.056704980842911874, 'mean_word_length': 3.7318840579710146, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '5076834', 'n_tokens_mistral': 516, 'n_tokens_neox': 474, 'n_words': 128}