2009-10-27 23:02:05 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Binutils < Formula
|
2009-10-27 23:02:05 +00:00
|
|
|
homepage 'http://www.gnu.org/software/binutils/binutils.html'
|
2013-12-02 23:21:38 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/binutils/binutils-2.24.tar.gz'
|
|
|
|
mirror 'http://ftp.gnu.org/gnu/binutils/binutils-2.24.tar.gz'
|
|
|
|
sha1 '1b2bc33003f4997d38fadaa276c1f0321329ec56'
|
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
|
|
|
|
sha1 "b411f528adb58ccdf068832b84f35da97e510ec9" => :mavericks
|
|
|
|
sha1 "506dcb201baa8cf6ffed975c993335f7a48389a1" => :mountain_lion
|
|
|
|
sha1 "2726d3a479491570b01fd707e14fabf97185271e" => :lion
|
|
|
|
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
|
|
|
|
assert `#{bin}/gnm #{bin}/gnm`.include? 'main'
|
|
|
|
assert_equal 0, $?.exitstatus
|
|
|
|
end
|
2009-10-27 23:02:05 +00:00
|
|
|
end
|