2011-03-10 05:11:03 +00:00
|
|
|
class Binutils < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "FSF Binutils for native development"
|
2015-07-10 20:54:51 +00:00
|
|
|
homepage "https://www.gnu.org/software/binutils/binutils.html"
|
2015-08-14 03:50:30 +00:00
|
|
|
url "http://ftpmirror.gnu.org/binutils/binutils-2.25.1.tar.gz"
|
|
|
|
mirror "https://ftp.gnu.org/gnu/binutils/binutils-2.25.1.tar.gz"
|
|
|
|
sha256 "82a40a37b13a12facb36ac7e87846475a1d80f2e63467b1b8d63ec8b6a2b63fc"
|
2013-07-10 20:41:47 +00:00
|
|
|
|
2014-08-25 08:18:52 +00:00
|
|
|
# No --default-names option as it interferes with Homebrew builds.
|
|
|
|
|
2014-08-07 17:19:06 +00:00
|
|
|
bottle do
|
2015-08-14 06:37:53 +00:00
|
|
|
sha256 "299f9bbdf522b68b803ce6cdb109a34b018459f3815771b3530ba95e06ee19f7" => :yosemite
|
|
|
|
sha256 "30b13f1b4ddfe09f5140c2f00d0d34d42ed471ed2ab241405d8f5b7d3fb8eb41" => :mavericks
|
|
|
|
sha256 "689d5c651fba64a18fed5f8f66ba9d156af7f3b8787e383afe8979f535432d64" => :mountain_lion
|
2014-08-07 17:19:06 +00:00
|
|
|
end
|
|
|
|
|
2009-10-27 23:02:05 +00:00
|
|
|
def install
|
2012-01-24 21:22:13 +00:00
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--program-prefix=g",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--infodir=#{info}",
|
|
|
|
"--mandir=#{man}",
|
|
|
|
"--disable-werror",
|
|
|
|
"--enable-interwork",
|
|
|
|
"--enable-multilib",
|
2013-07-10 20:41:47 +00:00
|
|
|
"--enable-64-bit-bfd",
|
|
|
|
"--enable-targets=all"
|
2009-10-27 23:02:05 +00:00
|
|
|
system "make"
|
2014-08-28 07:25:39 +00:00
|
|
|
system "make", "install"
|
2009-10-27 23:02:05 +00:00
|
|
|
end
|
2014-08-28 07:24:45 +00:00
|
|
|
|
|
|
|
test do
|
2015-07-16 03:40:16 +00:00
|
|
|
assert_match /main/, shell_output("#{bin}/gnm #{bin}/gnm")
|
2014-08-28 07:24:45 +00:00
|
|
|
end
|
2009-10-27 23:02:05 +00:00
|
|
|
end
|