homebrew-core/Formula/radare2.rb
2019-05-22 23:58:39 +08:00

23 lines
786 B
Ruby

class Radare2 < Formula
desc "Reverse engineering framework"
homepage "https://radare.org"
url "https://radare.mikelloc.com/get/3.5.1/radare2-3.5.1.tar.gz"
sha256 "bc927aec4d29fa647fdc56afc2d7b04bf47c2234a43d0080f356705748299d9c"
head "https://github.com/radare/radare2.git"
bottle do
sha256 "0ef7a91ce4b25b3b5eaced6755e41b73cccb4a8aace4f2a6e0ca86faf4e8d0ce" => :mojave
sha256 "864612e414d3aaf8c77e2f0f63abb2b3517fc46a2d5b5c947429252cef24a12b" => :high_sierra
sha256 "f097dca460f7578ffeeb16055bc432b67c8d9fb9e8b5c2f802d9134ba6947622" => :sierra
end
def install
system "./configure", "--prefix=#{prefix}"
system "make"
system "make", "install"
end
test do
assert_match "radare2 #{version}", shell_output("#{bin}/r2 -version")
end
end