Skip to content

Commit

Permalink
Merge pull request Homebrew#178419 from Homebrew/aide-linkage
Browse files Browse the repository at this point in the history
aide: declare indirect deps with linkage
  • Loading branch information
p-linnane authored Jul 25, 2024
2 parents 5976ee8 + e66dfc9 commit 48e6ed9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Formula/a/aide.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@ class Aide < Formula
end

depends_on "pkg-config" => :build

depends_on "libgcrypt"
depends_on "libgpg-error"
depends_on "pcre2"

uses_from_macos "bison" => :build
uses_from_macos "flex" => :build
uses_from_macos "curl"
uses_from_macos "zlib"

def install
# use sdk's strnstr instead
Expand All @@ -39,11 +41,9 @@ def install
system "sh", "./autogen.sh" if build.head?

args = %W[
--disable-lfs
--disable-static
--with-zlib
--sysconfdir=#{etc}
--prefix=#{prefix}
]

args << if OS.mac?
Expand All @@ -52,7 +52,7 @@ def install
"--with-curl=#{Formula["curl"].prefix}"
end

system "./configure", *args
system "./configure", *args, *std_configure_args.reject { |s| s["--disable-debug"] }

system "make", "install"
end
Expand All @@ -69,6 +69,6 @@ def install
database_attrs = sha256
/etc p+i+u+g+sha256
EOS
system "#{bin}/aide", "--config-check", "-c", "aide.conf"
system bin/"aide", "--config-check", "-c", "aide.conf"
end
end

0 comments on commit 48e6ed9

Please sign in to comment.