38 lines
1.3 KiB
Ruby
38 lines
1.3 KiB
Ruby
class Tin < Formula
|
|
desc "Threaded, NNTP-, and spool-based UseNet newsreader"
|
|
homepage "http://www.tin.org"
|
|
url "https://www.nic.funet.fi/pub/unix/news/tin/v2.6/tin-2.6.1.tar.xz"
|
|
sha256 "9da27203e9f9066a76bcb76e94ad67d4f2384a2e9aaccacf518e91d03b9f1853"
|
|
license "BSD-3-Clause"
|
|
|
|
livecheck do
|
|
url :homepage
|
|
regex(%r{tin-current\.t.*?>TIN v?(\d+(?:\.\d+)+)</A>.*?stable}i)
|
|
end
|
|
|
|
bottle do
|
|
sha256 arm64_monterey: "3da6ca54a9306da6d17e1c6248c37081ef3930a0d1f116990a50a091f1565d37"
|
|
sha256 arm64_big_sur: "de118ef2c4532cfa71dc80c1e2205074818e0ba57c48bc9f2e63487caf8e26f6"
|
|
sha256 monterey: "8897ee5f24a4004476bc93f15960c7f66d678e3f1e1636cbd8ab4c062c36053b"
|
|
sha256 big_sur: "12a0c54fd7adf50bf9e495045bf63deb70c640d9a93614fd36679821d4ad4343"
|
|
sha256 catalina: "5da812d0f63586b3e8f29b87d13eb143833d807034acef91eab05802700aa394"
|
|
end
|
|
|
|
depends_on "gettext"
|
|
|
|
conflicts_with "mutt", because: "both install mmdf.5 and mbox.5 man pages"
|
|
|
|
def install
|
|
system "./configure", "--disable-debug",
|
|
"--disable-dependency-tracking",
|
|
"--prefix=#{prefix}",
|
|
"--mandir=#{man}"
|
|
system "make", "build"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/tin", "-H"
|
|
end
|
|
end
|