<commit_before>require 'formula'

class Libgcrypt < Formula
  homepage 'http://gnupg.org/'
  url 'ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.5.0.tar.bz2'
  sha1 '3e776d44375dc1a710560b98ae8437d5da6e32cf'

  depends_on 'libgpg-error'

  def patches
    if ENV.compiler == :clang
      { :p0 => "https://trac.macports.org/export/85232/trunk/dports/devel/libgcrypt/files/clang-asm.patch" }
    end
  end

  def install
    ENV.universal_binary	# build fat so wine can use it

    ENV.append 'CFLAGS', "-fheinous-gnu-extensions -std=gnu89" if ENV.compiler == :clang

    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--disable-asm",
                          "--with-gpg-error-prefix=#{HOMEBREW_PREFIX}"
    # Separate steps, or parallel builds fail
    system "make"
    system "make check"
    system "make install"
  end
end<commit_msg>libgcrypt: break long line<commit_after>require 'formula'

class Libgcrypt < Formula
  homepage 'http://gnupg.org/'
  url 'ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.5.0.tar.bz2'
  sha1 '3e776d44375dc1a710560b98ae8437d5da6e32cf'

  depends_on 'libgpg-error'

  def patches
    if ENV.compiler == :clang
      { :p0 => "https://trac.macports.org/export/85232/trunk/dports/devel/libgcrypt/files/clang-asm.patch" }
    end
  end

  def install
    ENV.universal_binary	# build fat so wine can use it

    if ENV.compiler == :clang
      ENV.append 'CFLAGS', '-std=gnu89'
      ENV.append 'CFLAGS', '-fheinous-gnu-extensions'
    end

    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--disable-asm",
                          "--with-gpg-error-prefix=#{HOMEBREW_PREFIX}"
    # Separate steps, or parallel builds fail
    system "make"
    system "make check"
    system "make install"
  end
end
{'fraction_non_alphanumeric': 0.1316894018887723, 'fraction_numerical': 0.040923399790136414, 'mean_word_length': 2.4422382671480145, 'pattern_counts': {'":': 0, '<': 5, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7445300', 'n_tokens_mistral': 721, 'n_tokens_neox': 653, 'n_words': 127}