lcov: remove unnecessary loop

master
Jack Nagel 2014-04-17 10:26:34 -05:00
parent d4177280cb
commit c7a63a4ac0
1 changed files with 4 additions and 5 deletions

View File

@ -5,14 +5,13 @@ class Lcov < Formula
url 'https://downloads.sourceforge.net/ltp/lcov-1.10.tar.gz'
sha1 '70fb361bcfd7dd81ea30731d6fe532ddea56f283'
patch :DATA
def install
%w(bin/genhtml bin/geninfo bin/lcov).each do |file|
inreplace file, '/etc/lcovrc', "#{prefix}/etc/lcovrc"
end
inreplace %w[bin/genhtml bin/geninfo bin/lcov],
"/etc/lcovrc", "#{prefix}/etc/lcovrc"
system "make", "PREFIX=#{prefix}", "install"
end
patch :DATA
end
__END__