create: include license field automatically
This commit is contained in:
parent
52c6e5de76
commit
51fb414517
@ -5,7 +5,7 @@ require "erb"
|
|||||||
|
|
||||||
module Homebrew
|
module Homebrew
|
||||||
class FormulaCreator
|
class FormulaCreator
|
||||||
attr_reader :url, :sha256, :desc, :homepage
|
attr_reader :url, :sha256, :desc, :homepage, :license
|
||||||
attr_accessor :name, :version, :tap, :path, :mode
|
attr_accessor :name, :version, :tap, :path, :mode
|
||||||
|
|
||||||
def url=(url)
|
def url=(url)
|
||||||
@ -100,6 +100,7 @@ module Homebrew
|
|||||||
<% end %>
|
<% end %>
|
||||||
sha256 "#{sha256}"
|
sha256 "#{sha256}"
|
||||||
<% end %>
|
<% end %>
|
||||||
|
license "#{license}"
|
||||||
|
|
||||||
<% if mode == :cmake %>
|
<% if mode == :cmake %>
|
||||||
depends_on "cmake" => :build
|
depends_on "cmake" => :build
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user