Created
August 14, 2014 21:56
-
-
Save mistydemeo/609c3b439e7b4a489ed1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "formula" | |
class AppleGdb < Formula | |
homepage "http://opensource.apple.com/" | |
url "http://opensource.apple.com/tarballs/gdb/gdb-2831.tar.gz" | |
sha1 "20f5077dd70fe72e08934ade48d85ed070861a88" | |
def install | |
cd "src" do | |
system "./configure", "--prefix=#{prefix}", | |
"--program-suffix=-apple" | |
system "make" | |
system "make", "install" | |
end | |
# Remove conflicting items with binutils | |
rm_rf include | |
rm_rf lib | |
rm_rf share/"locale" | |
rm info/"bfd.info" | |
info.each_child | |
%w[addr2line ar c++filt nm objcopy objdump | |
ranlib readelf size strings strip].each do |name| | |
rm bin/"#{name}-apple" | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment