forked from keitheis/homebrew-dupes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
apple-gcc42.rb
37 lines (29 loc) · 1.23 KB
/
apple-gcc42.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
class AppleGcc42 < Formula
desc "GNU compiler collection"
homepage "https://r.research.att.com/tools/"
url "https://r.research.att.com/tools/gcc-42-5666.3-darwin11.pkg"
mirror "https://web.archive.org/web/20130512150329/http://r.research.att.com/tools/gcc-42-5666.3-darwin11.pkg"
version "4.2.1-5666.3"
sha256 "2f3893b411f578bfa98a99646ecfea0ba14e1bff4e4f311d7e595936d0da065d"
option "with-gfortran-symlink", "Provide gfortran symlinks"
depends_on :macos => :lion
def install
system "/bin/pax", "--insecure", "-rz", "-f", "usr.pkg/Payload", "-s", ",./usr,#{prefix},"
if build.with? "gfortran-symlink"
bin.install_symlink "gfortran-4.2" => "gfortran"
man1.install_symlink "gfortran-4.2.1" => "gfortran.1"
end
end
def caveats
<<-EOS.undent
NOTE:
This formula provides components that were removed from XCode in the 4.2
release. There is no reason to install this formula if you are using a
version of XCode prior to 4.2.
This formula contains compilers built from Apple's GCC sources, build
5666.3, available from:
https://opensource.apple.com/tarballs/gcc
All compilers have a `-4.2` suffix. A GFortran compiler is also included.
EOS
end
end