formula_creator: fix meson template

* meson-internal should not be used for new formulas anymore, as the
latest releases of meson have proper support for macOS now.
* make ninja commands verbose
This commit is contained in:
Tom Schoonjans 2019-05-12 09:14:25 +01:00
parent ea0b36f69a
commit b181328ac2

View File

@ -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