diff options
| author | Adam Vandenberg | 2014-02-24 22:11:02 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2014-02-27 08:21:17 -0800 |
| commit | eed55a157e007fbc2c033c473bd39084fad966d1 (patch) | |
| tree | f10c9c10d9a8b06f408955fa236351d243c8e7c1 /Library/Formula | |
| parent | f0bf6a1dbe71bf502a9d706fae0f6e565691a355 (diff) | |
| download | homebrew-eed55a157e007fbc2c033c473bd39084fad966d1.tar.bz2 | |
gfortran: use Formula[]
also remove commented-out line of code
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/gfortran.rb | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Library/Formula/gfortran.rb b/Library/Formula/gfortran.rb index 31032d13a..723cbf0a9 100644 --- a/Library/Formula/gfortran.rb +++ b/Library/Formula/gfortran.rb @@ -44,11 +44,11 @@ class Gfortran < Formula "--enable-languages=fortran", "--with-system-zlib", # ...opt_prefix survives upgrades and works even if `brew unlink gmp` - "--with-gmp=#{Formula.factory('gmp').opt_prefix}", - "--with-mpfr=#{Formula.factory('mpfr').opt_prefix}", - "--with-mpc=#{Formula.factory('libmpc').opt_prefix}", - "--with-cloog=#{Formula.factory('cloog').opt_prefix}", - "--with-isl=#{Formula.factory('isl').opt_prefix}", + "--with-gmp=#{Formula['gmp'].opt_prefix}", + "--with-mpfr=#{Formula['mpfr'].opt_prefix}", + "--with-mpc=#{Formula['libmpc'].opt_prefix}", + "--with-cloog=#{Formula['cloog'].opt_prefix}", + "--with-isl=#{Formula['isl'].opt_prefix}", # ...and disable isl and cloog version checks in case they upgrade "--disable-cloog-version-check", "--disable-isl-version-check", @@ -97,7 +97,6 @@ class Gfortran < Formula info.children.reject{ |p| p.basename.to_s.match(/gfortran/) }.each(&:unlink) man1.children.reject{ |p| p.basename.to_s.match(/gfortran/) }.each(&:unlink) man7.rmtree # dupes: fsf fundraising and gpl - # (share/'locale').rmtree (share/"gcc-#{version}").rmtree # dupes: libstdc++ pretty printer, will be added by gcc* formula end |
