aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2014-04-06 12:34:42 -0500
committerJack Nagel2014-04-06 12:35:54 -0500
commit3164a22ddf46047e56ebf9df0c4d308fa0162cfc (patch)
tree736acebb300d9d45408f1ce42f555cefff601706 /Library/Formula
parentd460fa3f01bd7dbac0df050d267dba2f06a37e72 (diff)
downloadhomebrew-3164a22ddf46047e56ebf9df0c4d308fa0162cfc.tar.bz2
apple-gcc42: remove custom download strategy
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/apple-gcc42.rb18
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"