From c060d1d8177deaa8a7bad4fc81c5084442773015 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 14 Dec 2023 10:50:54 +0000 Subject: [PATCH] yaws: fix MacOS references. Needed after https://github.com/Homebrew/brew/pull/16306. --- Formula/y/yaws.rb | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Formula/y/yaws.rb b/Formula/y/yaws.rb index a4f36914b2bf..2192a97f6bfa 100644 --- a/Formula/y/yaws.rb +++ b/Formula/y/yaws.rb @@ -40,12 +40,13 @@ class Yaws < Formula skip_clean "lib/yaws/examples/include" def install - # Ensure pam headers are found on Xcode-only installs - extra_args = %W[ - --with-extrainclude=#{MacOS.sdk_path}/usr/include/security - ] - if OS.linux? - extra_args = %W[ + extra_args = if OS.mac? + # Ensure pam headers are found on Xcode-only installs + %W[ + --with-extrainclude=#{MacOS.sdk_path}/usr/include/security + ] + else + %W[ --with-extrainclude=#{Formula["linux-pam"].opt_include}/security ] end