<commit_before>require 'formula'

class Pth < Formula
  homepage 'http://www.gnu.org/software/pth/'
  url 'http://ftpmirror.gnu.org/pth/pth-2.0.7.tar.gz'
  mirror 'http://ftp.gnu.org/gnu/pth/pth-2.0.7.tar.gz'
  sha1 '9a71915c89ff2414de69fe104ae1016d513afeee'

  def install
    ENV.deparallelize
    # Note: shared library will not be build with --disable-debug, so don't add that flag
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--mandir=#{man}",
                          # these flags are the defaults on most platforms, but for some
                          # reason Leopard/PPC doesn't set them, resulting in test failures
                          # see: https://github.com/mistydemeo/tigerbrew/issues/39
                          "--with-mctx-mth=sjlj",
                          "--with-mctx-dsp=ssjlj",
                          "--with-mctx-stk=sas"
    system "make"
    system "make test"
    system "make install"
  end
end
<commit_msg>pth: needs ld64 on Tiger<commit_after>require 'formula'

class Pth < Formula
  homepage 'http://www.gnu.org/software/pth/'
  url 'http://ftpmirror.gnu.org/pth/pth-2.0.7.tar.gz'
  mirror 'http://ftp.gnu.org/gnu/pth/pth-2.0.7.tar.gz'
  sha1 '9a71915c89ff2414de69fe104ae1016d513afeee'

  # see https://github.com/mistydemeo/tigerbrew/issues/106
  depends_on :ld64

  def install
    ENV.deparallelize
    # Note: shared library will not be build with --disable-debug, so don't add that flag
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--mandir=#{man}",
                          # these flags are the defaults on most platforms, but for some
                          # reason Leopard/PPC doesn't set them, resulting in test failures
                          # see: https://github.com/mistydemeo/tigerbrew/issues/39
                          "--with-mctx-mth=sjlj",
                          "--with-mctx-dsp=ssjlj",
                          "--with-mctx-stk=sas"
    system "make"
    system "make test"
    system "make install"
  end
end

{'fraction_non_alphanumeric': 0.12488479262672811, 'fraction_numerical': 0.033640552995391704, 'mean_word_length': 1.7411616161616161, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 2, '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': '5410672', 'n_tokens_mistral': 740, 'n_tokens_neox': 689, 'n_words': 148}