Skip to content

Commit

Permalink
Merge pull request Homebrew#171988 from Homebrew/abook-linux-deps
Browse files Browse the repository at this point in the history
abook: make `gettext` build-only on Linux
  • Loading branch information
p-linnane authored May 17, 2024
2 parents 37275d0 + 3a5846a commit c0ce798
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions Formula/a/abook.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,21 @@ class Abook < Formula

depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "gettext"
depends_on "gettext" => :build
depends_on "readline"

uses_from_macos "ncurses"

on_macos do
depends_on "gettext"
end

def install
# fix "undefined symbols" error caused by C89 inline behaviour
inreplace "database.c", "inline int", "int"

system "autoreconf", "-ivf"
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}"
system "autoreconf", "--force", "--install", "--verbose"
system "./configure", "--disable-silent-rules", *std_configure_args
system "make", "install"
end

Expand Down

0 comments on commit c0ce798

Please sign in to comment.