Skip to content

Commit

Permalink
libfido2: Fix build for Linuxbrew
Browse files Browse the repository at this point in the history
We introduced libfido2 in Homebrew/homebrew-core#50326, but it has different dependencies on Linux.

Additionally, the upstream CMake code uses share/man/ on Linux but man/ on macOS.
  • Loading branch information
xanderlent committed Feb 22, 2020
1 parent 514cf05 commit 7d0badf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Formula/libfido2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ class Libfido2 < Formula
depends_on "pkg-config" => :build
depends_on "libcbor"
depends_on "[email protected]"

depends_on "systemd" if OS.linux? # libfido2 uses libudev on Linux but IOKit on macOS

def install
mkdir "build" do
Expand All @@ -24,7 +26,7 @@ def install
system "make", "man_symlink"
system "make", "install"
end
mv prefix/"man", share/"man"
mv prefix/"man", share/"man" if OS.mac? # Path bug on macOS might be upstream
end

test do
Expand Down

0 comments on commit 7d0badf

Please sign in to comment.