Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Carlo Cabrera <[email protected]>
  • Loading branch information
rdmark and carlocab authored Dec 30, 2024
1 parent 24662de commit 2b31ec1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Formula/n/netatalk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class Netatalk < Formula
def install
args = [
"-Dwith-afpstats=false",
"-Dwith-appletalk=#{OS.linux?}",
"-Dwith-bdb-path=#{Formula["berkeley-db"].opt_prefix}",
"-Dwith-docbook-path=#{Formula["docbook-xsl"].opt_prefix}/docbook-xsl",
"-Dwith-init-style=none",
Expand All @@ -39,8 +40,6 @@ def install
"-Dwith-spotlight=false",
]

args << "-Dwith-appletalk=#{OS.linux?}"

system "meson", "setup", "build", *args, *std_meson_args
system "meson", "compile", "-C", "build", "--verbose"
system "meson", "install", "-C", "build"
Expand All @@ -49,6 +48,6 @@ def install
test do
system sbin/"netatalk", "-V"
system sbin/"afpd", "-V"
assert_equal 0, shell_output("#{sbin}/netatalk").strip.length
assert_empty shell_output(sbin/"netatalk")
end
end

0 comments on commit 2b31ec1

Please sign in to comment.