diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/apple-gcc42.rb | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/Library/Formula/apple-gcc42.rb b/Library/Formula/apple-gcc42.rb index 6934fa87d..cbcc0ad91 100644 --- a/Library/Formula/apple-gcc42.rb +++ b/Library/Formula/apple-gcc42.rb @@ -1,22 +1,8 @@ require 'formula' -class PkgDownloadStrategy < CurlDownloadStrategy - def stage - # The compilers are distributed as a OS X 10.5 package- a single flat xar - # archive instead of a bundle. - safe_system '/usr/bin/xar', '-xf', @tarball_path - chdir - - # Clean up. - safe_system "mv *.pkg/Payload Payload.gz" - safe_system "ls | grep -v Payload | xargs rm -r" - end -end - class AppleGcc42 < Formula homepage 'http://r.research.att.com/tools/' - url 'http://r.research.att.com/tools/gcc-42-5666.3-darwin11.pkg', - :using => PkgDownloadStrategy + url 'http://r.research.att.com/tools/gcc-42-5666.3-darwin11.pkg' mirror 'http://web.archive.org/web/20130512150329/http://r.research.att.com/tools/gcc-42-5666.3-darwin11.pkg' version '4.2.1-5666.3' sha1 '8fadde2a159082d6474fe9e325b6301e3c0bc84f' @@ -34,7 +20,7 @@ class AppleGcc42 < Formula depends_on :macos => :lion def install - safe_system "pax --insecure -rz -f Payload.gz -s ',./usr,#{prefix},'" + system "/bin/pax", "--insecure", "-rz", "-f", "usr.pkg/Payload", "-s", ",./usr,#{prefix}," if build.with? "gfortran-symlink" safe_system "ln -sf #{bin}/gfortran-4.2 #{bin}/gfortran" |
