Skip to content

Commit

Permalink
Merge pull request #8007 from SeekingMeaning/head-after-license
Browse files Browse the repository at this point in the history
formula_creator: generate `head` stanza after `license`
  • Loading branch information
jonchang authored Jul 15, 2020
2 parents 20e3d74 + 29650fd commit 474c1ab
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Library/Homebrew/formula_creator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,17 @@ class #{Formulary.class_s(name)} < Formula
<% end %>
desc "#{desc}"
homepage "#{homepage}"
<% if head? %>
head "#{url}"
<% else %>
<% unless head? %>
url "#{url}"
<% unless version.nil? or version.detected_from_url? %>
version "#{version}"
<% end %>
sha256 "#{sha256}"
<% end %>
license "#{license}"
<% if head? %>
head "#{url}"
<% end %>
<% if mode == :cmake %>
depends_on "cmake" => :build
Expand Down

0 comments on commit 474c1ab

Please sign in to comment.