diff options
| author | Max Howell | 2012-03-01 13:25:10 +0000 |
|---|---|---|
| committer | Max Howell | 2012-03-01 13:25:10 +0000 |
| commit | 57c8539ee2bde1b7eca078564fc0dc4cae8f823d (patch) | |
| tree | f6e07e85ab6d332b648f8ac0afc08eeff27f4f90 /Library/Homebrew/cmd | |
| parent | 8ba811d30423994d7300b0f33d616e1d8854af8a (diff) | |
| download | homebrew-57c8539ee2bde1b7eca078564fc0dc4cae8f823d.tar.bz2 | |
Assist more in the template from `brew create`
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/create.rb | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/Library/Homebrew/cmd/create.rb b/Library/Homebrew/cmd/create.rb index ecdb9e031..0e3e39a10 100644 --- a/Library/Homebrew/cmd/create.rb +++ b/Library/Homebrew/cmd/create.rb @@ -98,7 +98,8 @@ class FormulaCreator def template; <<-EOS.undent require 'formula' - # REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST! + # Documentation: https://github.com/mxcl/homebrew/wiki/Formula-Cookbook + # PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST! class #{Formula.class_s name} < Formula homepage '' @@ -112,6 +113,9 @@ class FormulaCreator <% end %> def install + # ENV.x11 # if your formula requires any X11 headers + # ENV.j1 # if your formula's build system can't parallelize + <% if mode == :cmake %> system "cmake . \#{std_cmake_parameters}" <% elsif mode == :autotools %> @@ -122,15 +126,13 @@ class FormulaCreator "--prefix=\#{prefix}" # system "cmake . \#{std_cmake_parameters}" <% end %> - # if this fails, try separate make/make install steps - system "make install" + system "make install" # if this fails, try separate make/make install steps end def test - # 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 - # it'd be nice if you were more thorough. Test the test with - # `brew test #{name}`. + # 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 it'd be nice if you + # were more thorough. Run the test with `brew test #{name}`. system "false" end end |
