class MipselNoneElfBinutils < Formula desc "FSF Binutils for mipsel cross development" homepage "https://www.gnu.org/software/binutils/" url "https://ftp.gnu.org/gnu/binutils/binutils-2.40.tar.gz" sha256 "d7f82c4047decf43a6f769ac32456a92ddb6932409a585c633cdd4e9df23d956" depends_on "texinfo" => :build def install system "./configure", "--target=mipsel-none-elf", "--disable-multilib", "--disable-nls", "--disable-werror", "--prefix=#{prefix}" system "make" system "make", "install-strip" end test do assert_match "f()", shell_output("#{bin}/mipsel-none-elf-c++filt _Z1fv") end end