From eed55a157e007fbc2c033c473bd39084fad966d1 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Mon, 24 Feb 2014 22:11:02 -0800 Subject: gfortran: use Formula[] also remove commented-out line of code --- Library/Formula/gfortran.rb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3