Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
gfortran: use Formula[]
Browse files Browse the repository at this point in the history
also remove commented-out line of code
  • Loading branch information
adamv committed Feb 27, 2014
1 parent f0bf6a1 commit eed55a1
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Library/Formula/gfortran.rb
Expand Up @@ -44,11 +44,11 @@ def install
"--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",
Expand Down Expand Up @@ -97,7 +97,6 @@ def install
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

Expand Down

0 comments on commit eed55a1

Please sign in to comment.