<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'
  sha1 '808abb6472861a88efd94fd22ffea7021007d769'

  depends_on :autoconf
  depends_on :automake

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

  def install
    args = %W[--disable-debug
              --disable-dependency-tracking
              --prefix=#{prefix}
              --infodir=#{info}]

    # Check for stpncpy is broken, and the replacement fails to compile
    # on Lion and newer; see https://github.com/mxcl/homebrew/issues/21510
    args << "gl_cv_func_stpncpy=yes" if MacOS.version >= :lion
    system "./configure", *args
    system "make"
    system "make install"
    prefix.install %w[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<commit_msg>dc3dd: remove unnecessary autotools deps<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'
  sha1 '808abb6472861a88efd94fd22ffea7021007d769'

  def install
    args = %W[--disable-debug
              --disable-dependency-tracking
              --prefix=#{prefix}
              --infodir=#{info}]

    # Check for stpncpy is broken, and the replacement fails to compile
    # on Lion and newer; see https://github.com/mxcl/homebrew/issues/21510
    args << "gl_cv_func_stpncpy=yes" if MacOS.version >= :lion
    system "./configure", *args
    system "make"
    system "make install"
    prefix.install %w[Options_Reference.txt Sample_Commands.txt]
  end
end
{'fraction_non_alphanumeric': 0.123334977799704, 'fraction_numerical': 0.06018746916625555, 'mean_word_length': 3.2966101694915255, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '5583149', 'n_tokens_mistral': 805, 'n_tokens_neox': 736, 'n_words': 142}