<commit_before>require 'formula'

class PltRacket <Formula
  # There are source packages but the OSX package is a .dmg and the Unix
  # tarball doesn't have everything needed for building on OSX
  url 'git://github.com/plt/racket.git', :tag => 'v5.0.1'
  homepage 'http://racket-lang.org/'
  version '5.0.1'

  # executables work fine until clean step calls strip on them
  skip_clean 'bin'

  def install
    Dir.chdir 'src' do

      args = [ "--disable-debug", "--disable-dependency-tracking",
              "--enable-xonx",
              "--prefix=#{prefix}" ]

      if snow_leopard_64?
        args += ["--enable-mac64", "--enable-sgc", "--disable-gracket"]
      end

      system "./configure", *args
      system "make"
      system "make install"
    end
  end
end<commit_msg>plt-racket: enable shared libs<commit_after>require 'formula'

class PltRacket <Formula
  # Use GitHub; tarball doesn't have everything needed for building on OS X
  url 'git://github.com/plt/racket.git', :tag => 'v5.0.1'
  homepage 'http://racket-lang.org/'
  version '5.0.1'

  # Don't sttip symbols; need them for dynamic linking.
  skip_clean 'bin'

  def install
    Dir.chdir 'src' do
      args = ["--disable-debug", "--disable-dependency-tracking",
              "--enable-xonx",
              "--enable-shared",
              "--prefix=#{prefix}" ]

      if snow_leopard_64?
        args += ["--enable-mac64", "--enable-sgc", "--disable-gracket"]
      end

      system "./configure", *args
      system "make"
      ohai   "Installing might take a long time (~40 minutes)"
      system "make install"
    end
  end
end
{'fraction_non_alphanumeric': 0.1417079207920792, 'fraction_numerical': 0.013613861386138614, 'mean_word_length': 2.3970588235294117, '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': '2462475', 'n_tokens_mistral': 539, 'n_tokens_neox': 505, 'n_words': 151}