homebrew-core/Formula/inotify-tools.rb

34 lines
1.1 KiB
Ruby

class InotifyTools < Formula
desc "C library and command-line programs providing a simple interface to inotify"
homepage "https://github.com/inotify-tools/inotify-tools"
url "https://github.com/inotify-tools/inotify-tools/archive/refs/tags/3.22.1.0.tar.gz"
sha256 "da81010756866966e6dfb1521c2be2f0946e7626fa29122e1672dc654fc89ff3"
license "GPL-2.0-or-later"
bottle do
sha256 cellar: :any_skip_relocation, x86_64_linux: "97eb76c31505fcb014fabe62cdd25edf17a15bcea48d594dcd0d6cf232fa1317"
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on :linux
def install
system "./autogen.sh"
system "./configure", "--prefix=#{prefix}",
"--mandir=#{man}",
"--disable-dependency-tracking"
system "make", "install"
end
test do
touch "test.txt"
stdin, stdout, stderr, = Open3.popen3("#{bin}/inotifywatch test.txt --timeout 2")
stdin.close
assert_match "Establishing watches", stderr.read
stdout.close
stderr.close
end
end