homebrew-core/Formula/binutils.rb
2016-08-03 15:56:03 -07:00

35 lines
1.4 KiB
Ruby

class Binutils < Formula
desc "FSF Binutils for native development"
homepage "https://www.gnu.org/software/binutils/binutils.html"
url "https://ftpmirror.gnu.org/binutils/binutils-2.27.tar.gz"
mirror "https://ftp.gnu.org/gnu/binutils/binutils-2.27.tar.gz"
sha256 "26253bf0f360ceeba1d9ab6965c57c6a48a01a8343382130d1ed47c468a3094f"
bottle do
sha256 "094dab865dacf4c365a85b0f17e46c8e22621bd36d1e0fbebe42c9c44c66d822" => :el_capitan
sha256 "18ca38f5b11315bdc250cb684a7f964af58dc8927b4fa1fb83dbc69a7e965060" => :yosemite
sha256 "f439d283e39ec5ea5f24bd801ad1dbb03df109e8290d75714551dbe034785e7a" => :mavericks
end
# No --default-names option as it interferes with Homebrew builds.
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--program-prefix=g",
"--prefix=#{prefix}",
"--infodir=#{info}",
"--mandir=#{man}",
"--disable-werror",
"--enable-interwork",
"--enable-multilib",
"--enable-64-bit-bfd",
"--enable-targets=all"
system "make"
system "make", "install"
end
test do
assert_match "main", shell_output("#{bin}/gnm #{bin}/gnm")
end
end