homebrew-core/Formula/binutils.rb
Lin Jen-Shin ce860d11ba --default-names for binutils, same as coreutils.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-07-25 22:24:48 -07:00

27 lines
765 B
Ruby

require 'formula'
class Binutils <Formula
url 'http://ftp.gnu.org/gnu/binutils/binutils-2.20.tar.gz'
homepage 'http://www.gnu.org/software/binutils/binutils.html'
md5 'e99487e0c4343d6fa68b7c464ff4a962'
def options
[['--default-names', "Do NOT prepend 'g' to the binary; will override system utils."]]
end
def install
ENV.append 'CPPFLAGS', "-I#{prefix}/include"
args = ["--prefix=#{prefix}",
"--disable-debug",
"--disable-dependency-tracking",
"--infodir=#{prefix}/share/info",
"--mandir=#{man}",
"--disable-werror" ]
args << "--program-prefix=g" unless ARGV.include? '--default-names'
system "./configure", *args
system "make"
system "make install"
end
end