2012-11-21 20:48:27 +00:00
|
|
|
class Dhex < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Ncurses based advanced hex editor featuring diff mode and more"
|
2015-03-20 12:50:05 +00:00
|
|
|
homepage "http://www.dettus.net/dhex/"
|
|
|
|
url "http://www.dettus.net/dhex/dhex_0.68.tar.gz"
|
|
|
|
sha256 "126c34745b48a07448cfe36fe5913d37ec562ad72d3f732b99bd40f761f4da08"
|
2012-11-21 20:48:27 +00:00
|
|
|
|
2015-03-20 21:46:16 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha256 "c6d92d8f4175ecd84be55b071887a97c7924977fbd24509162c956d17d85c84e" => :yosemite
|
|
|
|
sha256 "de8a9b04e49e85b4cca75050375724076c9e496a124b0af49006d60fe44dc81f" => :mavericks
|
|
|
|
sha256 "159aec24f0a7d68d4284344cc140bfe247a7f7d18a01db6308dd45f55de1e90e" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2012-11-21 20:48:27 +00:00
|
|
|
def install
|
2015-03-20 12:50:05 +00:00
|
|
|
inreplace "Makefile", "$(DESTDIR)/man", "$(DESTDIR)/share/man"
|
|
|
|
bin.mkpath
|
|
|
|
man1.mkpath
|
|
|
|
man5.mkpath
|
|
|
|
system "make", "install", "DESTDIR=#{prefix}"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
assert_match("GNU GENERAL PUBLIC LICENSE",
|
|
|
|
pipe_output("#{bin}/dhex -g 2>&1", "", 0))
|
2012-11-21 20:48:27 +00:00
|
|
|
end
|
|
|
|
end
|