<commit_before>require 'formula'
require 'hardware'

# Install script heavily borrowed from Fink package:
#  http://pdb.finkproject.org/pdb/package.php/dosbox
class Dosbox <Formula
  url 'http://downloads.sourceforge.net/project/dosbox/dosbox/0.73/dosbox-0.73.tar.gz'
  homepage 'http://www.dosbox.com/'
  md5 '0823a11242db711ac3d6ebfff6aff572'
  
  depends_on 'sdl'
  depends_on 'sdl_net'
  depends_on 'sdl_sound'
  
  def install
    ENV.libpng
    ENV.fast
    
    which_darwin=`uname -r|cut -f1 -d.`
    
    # 64-bit CPU detection is broken in ./configure
    if MACOS_VERSION >= 10.6 and Hardware.is_64_bit?
      which_cpu = 'x86_64'
    else
      which_cpu = 'i386'
    end
    
    system "./configure", "--disable-debug", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--mandir=#{man}",
                          "--disable-sdltest",
                          "--enable-core-inline",
                          "--build=#{which_cpu}-apple-darwin#{which_darwin}"
    
    # This should be a patch - add missing header.
    inreplace "src/gui/midi_coreaudio.h",
      "#include <AudioToolbox/AUGraph.h>",
      "#include <AudioToolbox/AUGraph.h>\n#include <CoreServices/CoreServices.h>"
    
    system "make"
    
    bin.install 'src/dosbox'
    man1.install gzip('docs/dosbox.1')
  end
end<commit_msg>dosbox: version update to 0.74<commit_after>require 'formula'
require 'hardware'

class Dosbox <Formula
  url 'http://downloads.sourceforge.net/project/dosbox/dosbox/0.74/dosbox-0.74.tar.gz'
  homepage 'http://www.dosbox.com/'
  md5 'b9b240fa87104421962d14eee71351e8'
  
  depends_on 'sdl'
  depends_on 'sdl_net'
  depends_on 'sdl_sound'
  
  def install
    ENV.libpng
    ENV.fast
    
    system "./configure", "--disable-debug", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--mandir=#{man}",
                          "--disable-sdltest",
                          "--enable-core-inline"
    system "make"
    
    bin.install 'src/dosbox'
    man1.install gzip('docs/dosbox.1')
  end
end
{'fraction_non_alphanumeric': 0.1357444809769845, 'fraction_numerical': 0.03616721465476749, 'mean_word_length': 2.12316715542522, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7273433', 'n_tokens_mistral': 788, 'n_tokens_neox': 724, 'n_words': 127}