From b027ca3adadfa56cfacff39342baf34e99288a1b Mon Sep 17 00:00:00 2001 From: Josh <36625023+JoshuaBrest@users.noreply.github.com> Date: Fri, 22 Mar 2024 20:22:22 -0700 Subject: [PATCH] fix identation in formula --- Formula/libinotify-kqueue.rb | 82 ++++++++++++++++++------------------ 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/Formula/libinotify-kqueue.rb b/Formula/libinotify-kqueue.rb index 73f29ea..0c32950 100644 --- a/Formula/libinotify-kqueue.rb +++ b/Formula/libinotify-kqueue.rb @@ -1,44 +1,44 @@ class LibinotifyKqueue < Formula - desc "BSD port of Linux's inotify" - homepage "https://github.com/libinotify-kqueue/libinotify-kqueue" - url "https://github.com/libinotify-kqueue/libinotify-kqueue.git", - tag: "20211018", - revision: "ea7835fcafc3cee2a0d6c0e3c8034962c48f6afe" - license "MIT" - head "https://github.com/libinotify-kqueue/libinotify-kqueue.git", - branch: "master" - - depends_on "autoconf" => :build - depends_on "automake" => :build - depends_on "gcc" => :build - depends_on "libtool" => :build - - def install - # Autoconf - system "autoreconf", "-fiv" - # Configure - system "./configure" - # Build - system "make" - # Copy - system "make", "install", "DESTDIR=#{buildpath}" - # Move - lib.install Dir["#{buildpath}/usr/local/lib/*"] - include.install Dir["#{buildpath}/usr/local/include/*"] - man.install Dir["#{buildpath}/usr/local/share/man/*"] - end - - test do - # Check if the library is installed - (testpath/"test.cpp").write <<~EOS - #include - int main() { - inotify_init(); - return 0; - } - EOS - system ENV.cc, "test.cpp", "-L#{lib}", "-linotify", "-o", "test" - system "./test" - end + desc "BSD port of Linux's inotify" + homepage "https://github.com/libinotify-kqueue/libinotify-kqueue" + url "https://github.com/libinotify-kqueue/libinotify-kqueue.git", + tag: "20211018", + revision: "ea7835fcafc3cee2a0d6c0e3c8034962c48f6afe" + license "MIT" + head "https://github.com/libinotify-kqueue/libinotify-kqueue.git", + branch: "master" + + depends_on "autoconf" => :build + depends_on "automake" => :build + depends_on "gcc" => :build + depends_on "libtool" => :build + + def install + # Autoconf + system "autoreconf", "-fiv" + # Configure + system "./configure" + # Build + system "make" + # Copy + system "make", "install", "DESTDIR=#{buildpath}" + # Move + lib.install Dir["#{buildpath}/usr/local/lib/*"] + include.install Dir["#{buildpath}/usr/local/include/*"] + man.install Dir["#{buildpath}/usr/local/share/man/*"] end + + test do + # Check if the library is installed + (testpath/"test.cpp").write <<~EOS + #include + int main() { + inotify_init(); + return 0; + } + EOS + system ENV.cc, "test.cpp", "-L#{lib}", "-linotify", "-o", "test" + system "./test" + end +end \ No newline at end of file