aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/gfortran.rb11
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