30 lines
1.2 KiB
Ruby
30 lines
1.2 KiB
Ruby
class Hexedit < Formula
|
|
desc "View and edit files in hexadecimal or ASCII"
|
|
homepage "http://rigaux.org/hexedit.html"
|
|
url "https://github.com/pixel/hexedit/archive/1.5.tar.gz"
|
|
sha256 "27a2349f659e995d7731ad672450f61a2e950330049a6fb59b77490c5e0015ac"
|
|
license "GPL-2.0-or-later"
|
|
head "https://github.com/pixel/hexedit.git"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "aa0a6863d00bbfb757bb8f4a98404b4654658034def4e7464de03e1b1fc74151"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "1c7110e508b3df9cc7b2db354003b96cfed9d8a1fe1449b7df3dd9fde7fb6629"
|
|
sha256 cellar: :any_skip_relocation, catalina: "b292c19f7f562a6d062f834395f4add815855ae4c9bfb9192a967af7c135da06"
|
|
sha256 cellar: :any_skip_relocation, mojave: "17eb067bc169a802ebdfe9a4af927cb70f2b2230337a78ee4ef00dc5cef1c7ba"
|
|
sha256 cellar: :any_skip_relocation, high_sierra: "cd9b838e99eafc11ab15415f46073e549273b6f461e37adb9e6eaead2e93021d"
|
|
end
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
|
|
def install
|
|
system "./autogen.sh"
|
|
system "./configure", "--prefix=#{prefix}"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
shell_output("#{bin}/hexedit -h 2>&1", 1)
|
|
end
|
|
end
|