<commit_before>require 'formula'

class Vice < Formula
  homepage 'http://vice-emu.sourceforge.net/'
  url "http://www.zimmers.net/anonftp/pub/cbm/crossplatform/emulators/VICE/vice-2.3.tar.gz"
  sha1 '5e7e1a375a4ca8c4895dc1552162955fdffce296'

  depends_on 'pkg-config' => :build
  depends_on 'jpeg'
  depends_on :libpng
  depends_on 'giflib' => :optional
  depends_on 'lame' => :optional

  fails_with :llvm do
    build 2335
  end

  def install
    # Use Cocoa instead of X
    # Use a static lame, otherwise Vice is hard-coded to look in
    # /opt for the library.
    system "./configure", "--disable-debug", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--with-cocoa",
                          "--without-x",
                          "--enable-static-lame"
    system "make"
    system "make bindist"
    prefix.install Dir['vice-macosx-*/*']
  end

  def caveats
    "Cocoa apps for these emulators have been installed to #{prefix}."
  end
end
<commit_msg>vice 2.4<commit_after>require 'formula'

class Vice < Formula
  homepage 'http://vice-emu.sourceforge.net/'
  url 'http://www.zimmers.net/anonftp/pub/cbm/crossplatform/emulators/VICE/vice-2.4.tar.gz'
  sha1 '719aa96cc72e7578983fadea1a31c21898362bc7'

  depends_on 'pkg-config' => :build
  depends_on 'jpeg'
  depends_on :libpng
  depends_on 'giflib' => :optional
  depends_on 'lame' => :optional

  fails_with :llvm do
    build 2335
  end

  def install
    # Use Cocoa instead of X
    # Use a static lame, otherwise Vice is hard-coded to look in
    # /opt for the library.
    system "./configure", "--disable-debug", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--with-cocoa",
                          "--without-x",
                          "--enable-static-lame"
    system "make"
    system "make bindist"
    prefix.install Dir['vice-macosx-*/*']
  end

  def caveats
    "Cocoa apps for these emulators have been installed to #{prefix}."
  end
end

{'fraction_non_alphanumeric': 0.12432959531935642, 'fraction_numerical': 0.03266699171136031, 'mean_word_length': 2.262321144674086, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '1966539', 'n_tokens_mistral': 732, 'n_tokens_neox': 679, 'n_words': 165}