homebrew-core/Formula/joe.rb

35 lines
1.5 KiB
Ruby

class Joe < Formula
desc "Full featured terminal-based screen editor"
homepage "https://joe-editor.sourceforge.io/"
url "https://downloads.sourceforge.net/project/joe-editor/JOE%20sources/joe-4.6/joe-4.6.tar.gz"
sha256 "495a0a61f26404070fe8a719d80406dc7f337623788e445b92a9f6de512ab9de"
license "GPL-2.0"
livecheck do
url :stable
regex(%r{url=.*?/joe[._-]v?(\d+(?:\.\d+)+)\.t}i)
end
bottle do
sha256 arm64_monterey: "a48cae1bf977da6b5c4edbab2798bf7122bcb94cc7d101bdc5a69807e3d9f4c7"
sha256 arm64_big_sur: "16c9ea41f6aa7626b8d3f86a22a48c77106cc498254c27e5c1650671237270f8"
sha256 monterey: "deb806e4c1690b9ad19bdadfb807c7b533b530dd20c1158b5418f654408d26fd"
sha256 big_sur: "b9f6d2b449738072a5b9daae73af1dfddfa307d41ca78aaf3c7486d0c5253bfc"
sha256 catalina: "71f2361108e6227cffff406825e8b96e6ce85a4e1a688ecf397eb00ca3d25357"
sha256 mojave: "aa448106d8769cf8d1b9adc8154dc420c94dbdc434be45b27e6a8a3268d2740b"
sha256 high_sierra: "02c1d1372565747bc21abe3b28ea7b3f2461068041e2d67037a9c1cbce12779d"
sha256 sierra: "f97df02a316a9e137e3391f42ff1118f67cd051008ef92c030fe54b5948a29bb"
sha256 el_capitan: "1d02a0b1f7df9846b0472bb3a5ea69aece88007fed4b32843318caa41cae3f9d"
sha256 x86_64_linux: "1aa552f5f7cd405c1658145c7c8ef7c73ba8ceec8b24dc85d2a27cab53c93cea"
end
def install
system "./configure", "--prefix=#{prefix}"
system "make", "install"
end
test do
assert_match "Joe's Own Editor v#{version}", shell_output("TERM=tty #{bin}/joe -help")
end
end