<commit_before>require 'formula'

class Pan < Formula
  homepage 'http://pan.rebelbase.com/'
  url 'http://pan.rebelbase.com/download/releases/0.139/source/pan-0.139.tar.bz2'
  sha1 '01ea0361a6d81489888e6abb075fd552999c3c60'

  depends_on 'pkg-config' => :build
  depends_on 'gtk+'
  depends_on 'gmime'
  depends_on 'intltool'
  depends_on 'enchant' => :optional
  depends_on 'd-bus' => :optional
  depends_on 'gnutls' => :optional

  # Fix compilation on 64-bit; see https://bugzilla.gnome.org/show_bug.cgi?id=673813
  def patches; DATA end

  def install
    ENV.append 'LDFLAGS', ' -liconv ' # iconv detection is broken.

    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",<commit_msg>pan: intltool is a build-time dep<commit_after>require 'formula'

class Pan < Formula
  homepage 'http://pan.rebelbase.com/'
  url 'http://pan.rebelbase.com/download/releases/0.139/source/pan-0.139.tar.bz2'
  sha1 '01ea0361a6d81489888e6abb075fd552999c3c60'

  depends_on 'pkg-config' => :build
  depends_on 'intltool' => :build
  depends_on 'gtk+'
  depends_on 'gmime'
  depends_on 'enchant' => :optional
  depends_on 'd-bus' => :optional
  depends_on 'gnutls' => :optional

  # Fix compilation on 64-bit; see https://bugzilla.gnome.org/show_bug.cgi?id=673813
  def patches; DATA end

  def install
    ENV.append 'LDFLAGS', ' -liconv ' # iconv detection is broken.

    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
{'fraction_non_alphanumeric': 0.14182058047493404, 'fraction_numerical': 0.06068601583113457, 'mean_word_length': 3.5014836795252227, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 12, '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': '2917325', 'n_tokens_mistral': 612, 'n_tokens_neox': 547, 'n_words': 109}