<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

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

    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"
  end
end<commit_msg>pan: remove ENV.x11<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 'gtk+'
  depends_on 'gmime'
  depends_on 'intltool'
  depends_on 'enchant' => :optional
  depends_on 'd-bus' => :optional
  depends_on 'gnutls' => :optional

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

    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--disable-glibtest",
                          "--disable-gtktest"
    system "make install"
  end
end
{'fraction_non_alphanumeric': 0.13871635610766045, 'fraction_numerical': 0.05521048999309869, 'mean_word_length': 2.877005347593583, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 0, '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': '6908369', 'n_tokens_mistral': 565, 'n_tokens_neox': 514, 'n_words': 98}