require 'formula' class GfortranPkgDownloadStrategy gfortran-4.2 symlink safe_system "ln -sf #{bin}/gfortran-4.2 #{bin}/gfortran" safe_system "ln -sf #{man1}/gfortran-4.2.1 #{man1}/gfortran.1" when 5659 ohai "Installing gfortran 4.2.4 for XCode 3.2.2 (build 5659)" safe_system "pax --insecure -rz -f Payload.gz -s ',./usr,#{prefix},'" safe_system "ln -sf #{man1}/gfortran-4.2.1 #{man1}/gfortran.1" when 5664 ohai "Installing gfortran 4.2.4 for XCode 3.2.3 (build 5664)" safe_system "pax --insecure -rz -f Payload.gz -s ',./usr,#{prefix},'" safe_system "ln -sf #{man1}/gfortran-4.2.1 #{man1}/gfortran.1" when 5666 ohai "Installing gfortran 4.2.4 for XCode 4.0 (build 5666)" safe_system "pax --insecure -rz -f Payload.gz -s ',./usr,#{prefix},'" safe_system "ln -sf #{man1}/gfortran-4.2.1 #{man1}/gfortran.1" else onoe <<-EOS.undent Currently the gfortran compiler provided by this brew is only supported for XCode 3.1.4 on OS X 10.5.x and XCode 3.2.2/3.2.3 on OS X 10.6.x Software update can help upgrade your copy of XCode. The latest version of XCode is also available from: http://developer.apple.com/technologies/xcode.html EOS end end def caveats; <<-EOS.undent Brews that require a Fortran compiler should not use: depends_on 'gfortran' The preferred method of declaring Fortran support is to use: def install ... ENV.fortran ... end EOS end end