<commit_before>require 'formula'

class Openttd < Formula
  url 'http://us.binaries.openttd.org/binaries/releases/1.0.5/openttd-1.0.5-source.tar.bz2'
  homepage 'http://www.openttd.org/'
  md5 'fc79f788e2be140948b972c32b0f1eec'

  depends_on 'lzo'

  def install
    system "./configure", "--without-application-bundle", "--prefix-dir=#{prefix}"
    system "make install"
    bin.install "bin/openttd"
  end

  def caveats; <<-EOS.undent
    Note: This does not install any art assets. You will be prompted
    on first run to download an asset set.
    Having an original TTD CD will help.<commit_msg>Bumping OpenTTD 1.1.0 (added missing dependency xz)<commit_after>require 'formula'

class Openttd < Formula
  url 'http://us.binaries.openttd.org/binaries/releases/1.1.0/openttd-1.1.0-source.tar.gz'
  homepage 'http://www.openttd.org/'
  md5 'd5ca3357e5c7f995aa43414ff4d93cfb'

  depends_on 'lzo'
  depends_on 'xz'

  def install
    system "./configure", "--without-application-bundle", "--prefix-dir=#{prefix}"
    system "make install"
    bin.install "bin/openttd"
  end

  def caveats; <<-EOS.undent
    Note: This does not install any art assets. You will be prompted
    on first run to download an asset set.
    Having an original TTD CD will help.
{'fraction_non_alphanumeric': 0.12231930103256553, 'fraction_numerical': 0.043685464654487687, 'mean_word_length': 3.452296819787986, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, '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': '5493586', 'n_tokens_mistral': 484, 'n_tokens_neox': 452, 'n_words': 117}