homebrew-core/Formula/x86_64-elf-gdb.rb

47 lines
1.5 KiB
Ruby

class X8664ElfGdb < Formula
desc "GNU debugger for i386-elf cross development"
homepage "https://www.gnu.org/software/gdb/"
url "https://ftp.gnu.org/gnu/gdb/gdb-10.1.tar.xz"
mirror "https://ftpmirror.gnu.org/gdb/gdb-10.1.tar.xz"
sha256 "f82f1eceeec14a3afa2de8d9b0d3c91d5a3820e23e0a01bbb70ef9f0276b62c0"
license "GPL-3.0-or-later"
head "https://sourceware.org/git/binutils-gdb.git"
bottle do
sha256 arm64_big_sur: "922a0ed485b4ff144fcf876db7c50465e1a60566b9ea1ee25b57bd356f159a59"
sha256 big_sur: "d9c893cd48502f675e5ccfbf139c70dc811683ff8427ee12053af00d63800d4b"
sha256 catalina: "fc5398cdb8a918f3e0153c3467074145e69112fd42866c3dc8fee5a66869e8da"
sha256 mojave: "7f6d20cc6f1d7f23834614f2f159d8438732e31bb3375c380d64e8dd010232c1"
sha256 high_sierra: "bc725f791779a9400ab2b11d485ebba7e71aced9e6cef3365db614dbb273205c"
end
depends_on "python@3.9"
depends_on "xz"
conflicts_with "gdb", because: "both install include/gdb, share/gdb and share/info"
conflicts_with "i386-elf-gdb", because: "both install include/gdb, share/gdb and share/info"
def install
args = %W[
--target=x86_64-elf
--prefix=#{prefix}
--disable-debug
--disable-dependency-tracking
--with-lzma
--with-python=#{Formula["python@3.9"].opt_bin}/python3
--disable-binutils
]
mkdir "build" do
system "../configure", *args
system "make"
system "make", "install-gdb"
end
end
test do
system "#{bin}/x86_64-elf-gdb", "#{bin}/x86_64-elf-gdb", "-configuration"
end
end