<commit_before>require 'formula'

class Libgfortran < Formula
  homepage 'http://gcc.gnu.org/wiki/GFortran'
  url 'http://ftpmirror.gnu.org/gcc/gcc-4.8.1/gcc-4.8.1.tar.bz2'
  mirror 'http://ftp.gnu.org/gnu/gcc/gcc-4.8.1/gcc-4.8.1.tar.bz2'
  sha1 '4e655032cda30e1928fcc3f00962f4238b502169'

  bottle do
    root_url 'http://archive.org/download/julialang/bottles'
    cellar :any
    sha1 '9577f77038188a4f4245dded282670e868994cef' => :mountain_lion
    sha1 '9577f77038188a4f4245dded282670e868994cef' => :lion
    sha1 '9577f77038188a4f4245dded282670e868994cef' => :snow_leopard
  end

  def install
    opoo "This formula is bottle-only!  If you actually want to install gfortran, use the gfortran formula included by brew!"
  end
end
<commit_msg>Do post_install to get libraries in the necessary place<commit_after>require 'formula'

class Libgfortran < Formula
  homepage 'http://gcc.gnu.org/wiki/GFortran'
  url 'http://ftpmirror.gnu.org/gcc/gcc-4.8.1/gcc-4.8.1.tar.bz2'
  mirror 'http://ftp.gnu.org/gnu/gcc/gcc-4.8.1/gcc-4.8.1.tar.bz2'
  sha1 '4e655032cda30e1928fcc3f00962f4238b502169'

  bottle do
    root_url 'http://archive.org/download/julialang/bottles'
    cellar :any
    sha1 '9577f77038188a4f4245dded282670e868994cef' => :mountain_lion
    sha1 '9577f77038188a4f4245dded282670e868994cef' => :lion
    sha1 '9577f77038188a4f4245dded282670e868994cef' => :snow_leopard
  end

  def post_install
    # This is here to symlink the libs to alternate locations where they could be installed
    mkdir prefix+'gfortran/lib'
    for lib in ['quadmath.0', 'gcc_s.1', 'gfortran.3']
      quiet_system 'ln', '-fs', prefix+"gfortran/lib/lib#{lib}.dylib", lib+"lib#{lib}.dylib"
      quiet_system 'ln', '-fs', prefix+"gfortran/lib/lib#{lib[0..-3]}.dylib", lib+"lib#{lib}.dylib"
      quiet_system 'ln', '-fs', lib+"lib#{lib[0..-3]}.dylib", lib+"lib#{lib}.dylib"
    end
  end

  def install
    opoo "This formula is bottle-only!  If you actually want to install gfortran, use the gfortran formula included by brew!"
  end
end

{'fraction_non_alphanumeric': 0.13214990138067062, 'fraction_numerical': 0.13560157790927022, 'mean_word_length': 4.04726368159204, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '1946525', 'n_tokens_mistral': 997, 'n_tokens_neox': 857, 'n_words': 154}