Merge pull request #6121 from tschoonj/meson-template-fixes
formula_creator: fix meson template
This commit is contained in:
commit
297e2225a8
@ -99,7 +99,7 @@ module Homebrew
|
||||
<% if mode == :cmake %>
|
||||
depends_on "cmake" => :build
|
||||
<% elsif mode == :meson %>
|
||||
depends_on "meson-internal" => :build
|
||||
depends_on "meson" => :build
|
||||
depends_on "ninja" => :build
|
||||
depends_on "python" => :build
|
||||
<% elsif mode.nil? %>
|
||||
@ -117,12 +117,10 @@ module Homebrew
|
||||
"--disable-silent-rules",
|
||||
"--prefix=\#{prefix}"
|
||||
<% elsif mode == :meson %>
|
||||
ENV.refurbish_args
|
||||
|
||||
mkdir "build" do
|
||||
system "meson", "--prefix=\#{prefix}", ".."
|
||||
system "ninja"
|
||||
system "ninja", "install"
|
||||
system "ninja", "-v"
|
||||
system "ninja", "install", "-v"
|
||||
end
|
||||
<% else %>
|
||||
# Remove unrecognized options if warned by configure
|
||||
|
Loading…
x
Reference in New Issue
Block a user