Some additional aid for brew create

This commit is contained in:
Max Howell 2012-02-29 02:00:33 +00:00
parent fb9b263bc3
commit 85e05b27dd

View File

@ -98,6 +98,8 @@ class FormulaCreator
def template; <<-EOS.undent def template; <<-EOS.undent
require 'formula' require 'formula'
# REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!
class #{Formula.class_s name} < Formula class #{Formula.class_s name} < Formula
homepage '' homepage ''
url '#{url}' url '#{url}'
@ -120,6 +122,7 @@ class FormulaCreator
"--prefix=\#{prefix}" "--prefix=\#{prefix}"
# system "cmake . \#{std_cmake_parameters}" # system "cmake . \#{std_cmake_parameters}"
<% end %> <% end %>
# if this fails, try separate make/make install steps
system "make install" system "make install"
end end
@ -127,8 +130,7 @@ class FormulaCreator
# This test will fail and we won't accept that! It's enough to just # This test will fail and we won't accept that! It's enough to just
# replace "false" with the main program this formula installs, but # replace "false" with the main program this formula installs, but
# it'd be nice if you were more thorough. Test the test with # it'd be nice if you were more thorough. Test the test with
# `brew test #{name}`. Remove this comment before submitting # `brew test #{name}`.
# your pull request!
system "false" system "false"
end end
end end