<commit_before>require 'formula'

class Dc3dd < Formula
  homepage 'http://sourceforge.net/projects/dc3dd/'
  url 'http://downloads.sourceforge.net/project/dc3dd/dc3dd/7.1.0/dc3dd-7.1.614.tar.gz'
  md5 'b6c4ec16e7f539b17224d7f334f8396e'

  # remove explicit dependency on automake 1.10.1
  def patches
    'https://raw.github.com/gist/1159050/611c91779ba90edc77b8489e006c96a8e0078462/dc3dd-automake.patch'
  end

  def install
    system "./configure", "--disable-debug", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--infodir=#{info}"
    system "make"
    system "make install"
    rm (lib+'charset.alias')
    prefix.install %w[README Options_Reference.txt Sample_Commands.txt]
  end
end<commit_msg>dc3dd: move patch inline<commit_after>require 'formula'

class Dc3dd < Formula
  homepage 'http://sourceforge.net/projects/dc3dd/'
  url 'http://downloads.sourceforge.net/project/dc3dd/dc3dd/7.1.0/dc3dd-7.1.614.tar.gz'
  md5 'b6c4ec16e7f539b17224d7f334f8396e'

  # Remove explicit dependency on automake 1.10.1
  def patches; DATA; end

  def install
    system "./configure", "--disable-debug",
                          "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--infodir=#{info}"
    system "make"
    system "make install"
    rm (lib+'charset.alias')
    prefix.install %w[README Options_Reference.txt Sample_Commands.txt]
  end
end

__END__
diff --git a/configure.ac b/configure.ac
index 5d1870a..b32639c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -32,7 +32,7 @@ AC_CONFIG_SRCDIR(src/dc3dd.c)
 AC_CONFIG_AUX_DIR(build-aux)
 AC_CONFIG_HEADERS([lib/config.h:lib/config.hin])
 
-AM_INIT_AUTOMAKE([1.10.1])
+AM_INIT_AUTOMAKE
 
 AC_PROG_CC_STDC
 AM_PROG_CC_C_O
{'fraction_non_alphanumeric': 0.13689482470784642, 'fraction_numerical': 0.07957707289927657, 'mean_word_length': 2.9955555555555557, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '5126565', 'n_tokens_mistral': 742, 'n_tokens_neox': 664, 'n_words': 105}