Skip to content

Commit

Permalink
xnvme: migrate to pkgconf
Browse files Browse the repository at this point in the history
  • Loading branch information
cho-m committed Nov 20, 2024
1 parent fa71189 commit 3d994f4
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions Formula/x/xnvme.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,18 @@ class Xnvme < Formula

depends_on "meson" => :build
depends_on "ninja" => :build
depends_on "pkg-config" => [:build, :test]
depends_on "pkgconf" => [:build, :test]

def install
# We do not have SPDK nor libvfn on macOS, thus disabling these
# The examples and tests are also a bit superfluous, so disable those as well
system "meson", "setup", "build",
*std_meson_args,
"-Dwith-spdk=disabled",
"-Dwith-libvfn=disabled",
"-Dtests=false",
"-Dexamples=false"
args = %w[
-Dwith-spdk=disabled
-Dwith-libvfn=disabled
-Dtests=false
-Dexamples=false
]
system "meson", "setup", "build", *args, *std_meson_args
system "meson", "compile", "-C", "build"
system "meson", "install", "-C", "build"
end
Expand Down

0 comments on commit 3d994f4

Please sign in to comment.