<commit_before>require 'formula'

class Librsync < Formula
  homepage 'http://librsync.sourceforge.net/'
  url 'http://downloads.sourceforge.net/project/librsync/librsync/0.9.7/librsync-0.9.7.tar.gz'
  sha1 'd575eb5cae7a815798220c3afeff5649d3e8b4ab'

  option :universal

  depends_on 'popt'

  def install
    ENV.universal_binary if build.universal?

    ENV.append 'CFLAGS', '-std=gnu89'

    system "./configure", "--disable-debug",
                          "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--mandir=#{man}",
                          "--enable-shared"

    inreplace 'libtool' do |s|
      s.gsub! /compiler_flags=$/, "compiler_flags=' #{ENV.cflags}'"<commit_msg>librsync: add 0.9.7 bottle.<commit_after>require 'formula'

class Librsync < Formula
  homepage 'http://librsync.sourceforge.net/'
  url 'http://downloads.sourceforge.net/project/librsync/librsync/0.9.7/librsync-0.9.7.tar.gz'
  sha1 'd575eb5cae7a815798220c3afeff5649d3e8b4ab'

  bottle do
    cellar :any
    sha1 "8353f1b073ccf899a1f1d0e14eac81426efb1443" => :mavericks
    sha1 "078bf45d5ba1f809bfd024db62354330e063f3ff" => :mountain_lion
    sha1 "cb35ddba05801748025b1394bd89c359f0c4f934" => :lion
  end

  option :universal

  depends_on 'popt'

  def install
    ENV.universal_binary if build.universal?

    ENV.append 'CFLAGS', '-std=gnu89'

    system "./configure", "--disable-debug",
                          "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--mandir=#{man}",
                          "--enable-shared"

    inreplace 'libtool' do |s|
      s.gsub! /compiler_flags=$/, "compiler_flags=' #{ENV.cflags}'"
{'fraction_non_alphanumeric': 0.1384083044982699, 'fraction_numerical': 0.08362168396770472, 'mean_word_length': 2.463073852295409, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '1413380', 'n_tokens_mistral': 704, 'n_tokens_neox': 614, 'n_words': 92}