erlang: add --no-docs option

master
Adam Vandenberg 2011-05-27 10:02:11 -07:00
parent e93ee9c30b
commit 97309e91d2
1 changed files with 8 additions and 5 deletions

View File

@ -38,7 +38,8 @@ class Erlang < Formula
def options
[
['--disable-hipe', "Disable building hipe; fails on various OS X systems."],
['--time', '"brew test --time" to include a time-consuming test.']
['--time', '"brew test --time" to include a time-consuming test.'],
['--no-docs', 'Do not install documentation.']
]
end
@ -71,11 +72,13 @@ class Erlang < Formula
system "make"
system "make install"
manuals = ARGV.build_head? ? ErlangHeadManuals : ErlangManuals
manuals.new.brew { man.install Dir['man/*'] }
unless ARGV.include? '--no-docs'
manuals = ARGV.build_head? ? ErlangHeadManuals : ErlangManuals
manuals.new.brew { man.install Dir['man/*'] }
htmls = ARGV.build_head? ? ErlangHeadHtmls : ErlangHtmls
htmls.new.brew { doc.install Dir['*'] }
htmls = ARGV.build_head? ? ErlangHeadHtmls : ErlangHtmls
htmls.new.brew { doc.install Dir['*'] }
end
end
def test