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.42.tar.gz" sha256 "5d2a6c1d49686a557869caae08b6c2e83699775efd27505e01b2f4db1a024ffc" 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