-
Notifications
You must be signed in to change notification settings - Fork 130
/
Copy pathapple-gcc42.rb
38 lines (31 loc) · 971 Bytes
/
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
38
require 'formula'
class TigerOnly < Requirement
def message; <<-EOS.undent
gcc-4.2 is only provided for Tiger, as it is officially available
from an Xcode shipped with Leopard.
EOS
end
def satisfied?; MacOS.version == :tiger; end
def fatal?; true; end
end
class AppleGcc42 < Formula
homepage 'http://r.research.att.com/tools/'
url 'https://ia902307.us.archive.org/31/items/tigerbrew/gcc-42-5553-darwin8-all.tar.gz'
mirror 'http://r.research.att.com/gcc-42-5553-darwin8-all.tar.gz'
version '4.2.1-5553'
sha1 '0e529a2e4723e016e3d086d6ca3215d700931503'
depends_on TigerOnly.new
def install
cd 'usr' do
prefix.install Dir['*']
end
end
def caveats
<<-EOS.undent
This formula contains compilers built from Apple's GCC sources, build
5553, available from:
http://opensource.apple.com/tarballs/gcc
All compilers have a `-4.2` suffix. A GFortran compiler is also included.
EOS
end
end