homebrew-core/Formula/since.rb

43 lines
2.1 KiB
Ruby

class Since < Formula
desc "Stateful tail: show changes to files since last check"
homepage "http://welz.org.za/projects/since"
url "http://welz.org.za/projects/since/since-1.1.tar.gz"
sha256 "739b7f161f8a045c1dff184e0fc319417c5e2deb3c7339d323d4065f7a3d0f45"
license "GPL-3.0"
livecheck do
url :homepage
regex(/href=.*?since[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
sha256 cellar: :any_skip_relocation, arm64_ventura: "70fe591dc225eb74e0f27c8d8f913771f6873665fd9441498ffeba1c277358ba"
sha256 cellar: :any_skip_relocation, arm64_monterey: "be177eae27c7bc16dcabf649437a4b99dc2bcba9b4771d2038844785a3150b7a"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "95b9b96522d9cdb0ac317550daf1c9ee102d1a4df7736cd2072d896adf05fc04"
sha256 cellar: :any_skip_relocation, ventura: "75b5ed6525afee018674228668bf45b282016187f09dd42dd95fb474e0e1a232"
sha256 cellar: :any_skip_relocation, monterey: "3db05c5b4e33cc28cf9dd8352dbc6038b139cb6bf8056bc9c5a85bd0db7ee9c2"
sha256 cellar: :any_skip_relocation, big_sur: "60c3738e71c6455fa5a7445a21a79695d4644a34de06cbc05743a52c4f5b40f8"
sha256 cellar: :any_skip_relocation, catalina: "20b3f4888282ed47021562eb24efe9c37ef3a652ad64164460a5f368260e75d8"
sha256 cellar: :any_skip_relocation, mojave: "6c0290f3500966bb4155352bf277ae127eb341796729dfcc2b9ca968df20b9c4"
sha256 cellar: :any_skip_relocation, high_sierra: "a5b4f42858c41ad5d60850a3a01b8658fb4e58d2473fe2d36938f4ab66eb05c6"
sha256 cellar: :any_skip_relocation, sierra: "ff4ba4b7cad5fa4211bff04d5868521bc21b60995cf40f15bd507abb7c4cbaab"
sha256 cellar: :any_skip_relocation, el_capitan: "ec4898462899cb632329f71dc0b4dd9a13a051aafd6da7dfd22e940e9d1ce01a"
sha256 cellar: :any_skip_relocation, x86_64_linux: "db033c09d09fa627dd0d98d52a4b32231a6f696f925c77b0c91d7b8f057ea3f4"
end
def install
bin.mkpath
man1.mkpath
system "make", "install", "prefix=#{prefix}", "INSTALL=install"
end
test do
(testpath/"test").write <<~EOS
foo
bar
EOS
system "#{bin}/since", "-z", "test"
assert_predicate testpath/".since", :exist?
end
end