homebrew-core/Formula/ired.rb

32 lines
1,002 B
Ruby
Raw Normal View History

class Ired < Formula
desc "Minimalistic hexadecimal editor designed to be used in scripts."
homepage "https://github.com/radare/ired"
url "http://www.radare.org/get/ired-0.5.0.tar.gz"
sha256 "dce25f6b9402b78f183ecf4d94a2d44db1a6946546217d6c60c3f179bfbfff84"
2016-03-28 13:28:53 +00:00
bottle do
cellar :any_skip_relocation
2016-09-29 17:55:58 +00:00
sha256 "07b729be0f1b5218111d26df84352e1985a0a558a44f32724055953a7fe8e4bd" => :sierra
2016-03-28 13:28:53 +00:00
sha256 "7d02292ccb5d3f0cf283c732428259be1d1a12c934cae9e20b1a5d64f7ca473a" => :el_capitan
sha256 "8f3ea6c227b0a939a3c9cd65528439d59bbd8cb493c5d5f87de64f54173fa926" => :yosemite
sha256 "17661990a22e84dce84fa684d096f0082925bb5e05d04807704bc6403904a558" => :mavericks
end
def install
system "make"
system "make", "install", "PREFIX=#{prefix}"
end
test do
input = <<-EOS.undent
w"hello wurld"
s+7
r-4
w"orld"
q
EOS
pipe_output("#{bin}/ired test.text", input)
assert_equal "hello world", (testpath/"test.text").read.chomp
end
end