<commit_before>require 'formula'

class Qrencode < Formula
  url 'http://megaui.net/fukuchi/works/qrencode/qrencode-3.1.1.tar.gz'
  homepage 'http://megaui.net/fukuchi/works/qrencode/index.en.html'
  md5 'd97f67cbefaf577e6c15923f3cc57b6a'

  depends_on 'pkg-config' => :build
  depends_on 'libpng'

  def install
    system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}"
    system "make install"
  end
end
<commit_msg>qrencode: works fine against system libpng<commit_after>require 'formula'

class Qrencode < Formula
  url 'http://megaui.net/fukuchi/works/qrencode/qrencode-3.1.1.tar.gz'
  homepage 'http://megaui.net/fukuchi/works/qrencode/index.en.html'
  md5 'd97f67cbefaf577e6c15923f3cc57b6a'

  depends_on 'pkg-config' => :build

  def install
    ENV.x11 # For libpng
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make"
    ENV.j1 # Install isn't parallel-safe
    system "make install"
  end
end

{'fraction_non_alphanumeric': 0.14047151277013753, 'fraction_numerical': 0.04420432220039293, 'mean_word_length': 3.5088495575221237, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '1260451', 'n_tokens_mistral': 414, 'n_tokens_neox': 378, 'n_words': 67}