Fix style in brew create-generated formulae
- Fix indentation oddities - Add empty lines where we expect them in submitted formulae
This commit is contained in:
parent
254ce8bb64
commit
69b9c11ae8
@ -170,7 +170,7 @@ class FormulaCreator
|
|||||||
# Documentation: https://docs.brew.sh/Formula-Cookbook
|
# Documentation: https://docs.brew.sh/Formula-Cookbook
|
||||||
# http://www.rubydoc.info/github/Homebrew/brew/master/Formula
|
# http://www.rubydoc.info/github/Homebrew/brew/master/Formula
|
||||||
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!
|
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!
|
||||||
class #{Formulary.class_s(name)} < Formula
|
class #{Formulary.class_s(name)} < Formula
|
||||||
desc "#{desc}"
|
desc "#{desc}"
|
||||||
homepage "#{homepage}"
|
homepage "#{homepage}"
|
||||||
<% if head? %>
|
<% if head? %>
|
||||||
@ -182,7 +182,7 @@ class FormulaCreator
|
|||||||
<% end %>
|
<% end %>
|
||||||
sha256 "#{sha256}"
|
sha256 "#{sha256}"
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if mode == :cmake %>
|
<% if mode == :cmake %>
|
||||||
depends_on "cmake" => :build
|
depends_on "cmake" => :build
|
||||||
<% elsif mode == :meson %>
|
<% elsif mode == :meson %>
|
||||||
depends_on "meson" => :build
|
depends_on "meson" => :build
|
||||||
@ -190,9 +190,10 @@ class FormulaCreator
|
|||||||
<% elsif mode.nil? %>
|
<% elsif mode.nil? %>
|
||||||
# depends_on "cmake" => :build
|
# depends_on "cmake" => :build
|
||||||
<% end %>
|
<% end %>
|
||||||
def install
|
|
||||||
|
def install
|
||||||
# ENV.deparallelize # if your formula fails when building in parallel
|
# ENV.deparallelize # if your formula fails when building in parallel
|
||||||
<% if mode == :cmake %>
|
<% if mode == :cmake %>
|
||||||
system "cmake", ".", *std_cmake_args
|
system "cmake", ".", *std_cmake_args
|
||||||
<% elsif mode == :autotools %>
|
<% elsif mode == :autotools %>
|
||||||
# Remove unrecognized options if warned by configure
|
# Remove unrecognized options if warned by configure
|
||||||
@ -219,7 +220,8 @@ class FormulaCreator
|
|||||||
system "make", "install" # if this fails, try separate make/make install steps
|
system "make", "install" # if this fails, try separate make/make install steps
|
||||||
<% end %>
|
<% end %>
|
||||||
end
|
end
|
||||||
test do
|
|
||||||
|
test do
|
||||||
# `test do` will create, run in and delete a temporary directory.
|
# `test do` will create, run in and delete a temporary directory.
|
||||||
#
|
#
|
||||||
# This test will fail and we won't accept that! For Homebrew/homebrew-core
|
# This test will fail and we won't accept that! For Homebrew/homebrew-core
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user