<commit_before>require 'formula'

class ArgpStandalone < Formula
  homepage 'http://www.lysator.liu.se/~nisse/misc/'
  url 'http://www.lysator.liu.se/~nisse/misc/argp-standalone-1.3.tar.gz'
  sha1 '815c560680ebdc11694b88de2f8ec15133e0bfa0'

  bottle do
    cellar :any
    sha1 "3e781159b73d2fbbb22ea626e568904d6f72bd2d" => :mavericks
    sha1 "51228d446622730ba12dfa33e83d41ad79678fef" => :mountain_lion
    sha1 "58936047ba691811df5aa11dbbb4ed2304ef3b8b" => :lion
  end

  def patches
    # This patch fixes compilation with Clang.
    {:p0 =>
      "https://trac.macports.org/export/86556/trunk/dports/devel/argp-standalone/files/patch-argp-fmtstream.h"
    }
  end

  def install
    system "./configure", "--prefix=#{prefix}"
    system "make install"
    lib.install 'libargp.a'
    include.install 'argp.h'
  end
end<commit_msg>argp-standalone: use checksummed patches<commit_after>require 'formula'

class ArgpStandalone < Formula
  homepage 'http://www.lysator.liu.se/~nisse/misc/'
  url 'http://www.lysator.liu.se/~nisse/misc/argp-standalone-1.3.tar.gz'
  sha1 '815c560680ebdc11694b88de2f8ec15133e0bfa0'

  bottle do
    cellar :any
    sha1 "3e781159b73d2fbbb22ea626e568904d6f72bd2d" => :mavericks
    sha1 "51228d446622730ba12dfa33e83d41ad79678fef" => :mountain_lion
    sha1 "58936047ba691811df5aa11dbbb4ed2304ef3b8b" => :lion
  end

  # This patch fixes compilation with Clang.
  patch :p0 do
    url "https://trac.macports.org/export/86556/trunk/dports/devel/argp-standalone/files/patch-argp-fmtstream.h"
    sha1 "61b2d1f416869666cf3f81e3961a82fcbfa84837"
  end

  def install
    system "./configure", "--prefix=#{prefix}"
    system "make install"
    lib.install 'libargp.a'
    include.install 'argp.h'
  end
end
{'fraction_non_alphanumeric': 0.11778290993071594, 'fraction_numerical': 0.14665127020785218, 'mean_word_length': 4.008670520231214, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3595168', 'n_tokens_mistral': 870, 'n_tokens_neox': 735, 'n_words': 105}