File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ class MipselNoneElfGdb < Formula
2
+ desc "GDB: The GNU Project Debugger compiled for Mips"
3
+ homepage "https://sourceware.org/gdb/"
4
+ url "https://ftp.gnu.org/gnu/gdb/gdb-14.2.tar.xz"
5
+ sha256 "2d4dd8061d8ded12b6c63f55e45344881e8226105f4d2a9b234040efa5ce7772"
6
+
7
+ # inspired by https://github.com/orgs/Homebrew/discussions/1114#discussioncomment-8863715
8
+
9
+ depends_on "texinfo" => :build
10
+ depends_on "gmp"
11
+ depends_on "mpfr"
12
+ depends_on "python@3.10"
13
+
14
+ def install
15
+ mkdir "mipsel-none-elf-gdb-build" do
16
+ system "../configure" , "--target=mipsel-none-elf" ,
17
+ "--prefix=#{ prefix } " ,
18
+ "--enable-tui=yes" ,
19
+ "--without-isl" ,
20
+ "--disable-werror"
21
+ system "make"
22
+ system "make" , "install"
23
+ end
24
+ end
25
+
26
+ # not sure what to test...
27
+ # test do
28
+ # assert_match "f()", shell_output("#{bin}/mipsel-none-elf-c++filt _Z1fv")
29
+ # end
30
+
31
+ end
You can’t perform that action at this time.
0 commit comments