<commit_before>require 'formula'

class Icecast < Formula
  homepage 'http://www.icecast.org/'
  url 'http://downloads.xiph.org/releases/icecast/icecast-2.4.1.tar.gz'
  sha1 '0ec1a6470554cccd9ca48488776a26887e9b9a5e'

  bottle do
    sha1 "4d8aa258bc5b436e07344442b24a710edc0cf091" => :yosemite
    sha1 "0d675d07513a25207e78bfa8b08c9767fd93bee2" => :mavericks
    sha1 "e8266c13690455fda50e78e550c74db16eb8b475" => :mountain_lion
  end

  depends_on 'pkg-config' => :build
  depends_on 'libogg' => :optional
  depends_on 'theora' => :optional
  depends_on 'speex'  => :optional
  depends_on 'openssl'
  depends_on 'libvorbis'

  def install<commit_msg>icecast 2.4.1: Requires libxslt curl on Linuxbrew<commit_after>require 'formula'

class Icecast < Formula
  homepage 'http://www.icecast.org/'
  url 'http://downloads.xiph.org/releases/icecast/icecast-2.4.1.tar.gz'
  sha1 '0ec1a6470554cccd9ca48488776a26887e9b9a5e'

  bottle do
    sha1 "4d8aa258bc5b436e07344442b24a710edc0cf091" => :yosemite
    sha1 "0d675d07513a25207e78bfa8b08c9767fd93bee2" => :mavericks
    sha1 "e8266c13690455fda50e78e550c74db16eb8b475" => :mountain_lion
  end

  depends_on 'pkg-config' => :build
  depends_on 'libogg' => :optional
  depends_on 'theora' => :optional
  depends_on 'speex'  => :optional
  depends_on 'openssl'
  depends_on 'libvorbis'
  depends_on "curl" unless OS.mac?
  depends_on "libxslt" unless OS.mac?

  def install
{'fraction_non_alphanumeric': 0.10812720848056537, 'fraction_numerical': 0.16042402826855123, 'mean_word_length': 4.974683544303797, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '4778848', 'n_tokens_mistral': 725, 'n_tokens_neox': 620, 'n_words': 95}