21 lines
714 B
Ruby
21 lines
714 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 install
|
||
|
ENV['CPPFLAGS']="#{ENV['CPPFLAGS']} -I${prefix}/include"
|
||
|
system "./configure", "--prefix=#{prefix}", \
|
||
|
"--disable-debug", \
|
||
|
"--disable-dependency-tracking", \
|
||
|
"--infodir=#{prefix}/share/info", \
|
||
|
"--mandir=#{prefix}/share/man", \
|
||
|
"--disable-werror", \
|
||
|
"--program-prefix=g"
|
||
|
system "make"
|
||
|
system "make install"
|
||
|
end
|
||
|
end
|