<commit_before>require 'formula'

class Smpeg < Formula
  homepage 'http://icculus.org/smpeg/'
  head 'svn://svn.icculus.org/smpeg/trunk'

  depends_on :automake
  depends_on :libtool

  depends_on 'pkg-config' => :build
  depends_on 'sdl'
  depends_on 'gtk+'

  def install
    system "./autogen.sh"
    system "./configure", "--disable-debug", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--disable-gtktest",
                          "--disable-sdltest"
    system "make"
    # Install script is not +x by default for some reason
    system "chmod +x ./install-sh"
    system "make install"
  end
end<commit_msg>smpeg: enable gtk+ test and point to sdl<commit_after>require 'formula'

class Smpeg < Formula
  homepage 'http://icculus.org/smpeg/'
  head 'svn://svn.icculus.org/smpeg/trunk'

  depends_on :automake => :build
  depends_on :libtool => :build

  depends_on 'pkg-config' => :build
  depends_on 'sdl'
  depends_on 'gtk+'

  def install
    sdl = Formula.factory("sdl")
    system "./autogen.sh"
    system "./configure", "--disable-debug", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--disable-sdltest",
                          # For non-/usr/local installs
                          "--with-sdl-prefix=#{sdl.opt_prefix}"
    system "make"
    # Install script is not +x by default for some reason
    system "chmod +x ./install-sh"
    system "make install"
  end
end
{'fraction_non_alphanumeric': 0.13642384105960265, 'fraction_numerical': 0.0, 'mean_word_length': 2.141372141372141, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '6852804', 'n_tokens_mistral': 483, 'n_tokens_neox': 467, 'n_words': 117}