diff options
| author | Max Howell | 2009-10-15 16:34:23 +0100 |
|---|---|---|
| committer | Max Howell | 2009-10-15 16:51:59 +0100 |
| commit | 83185f7b69a331b71f5e87da7925f058bb360cb1 (patch) | |
| tree | 00a601c55b40c8ffe2aee312814d1f4be501c793 /Library | |
| parent | ecf4d95ac7be8ed9f827326e0dfe1b0c6e192d26 (diff) | |
| download | homebrew-83185f7b69a331b71f5e87da7925f058bb360cb1.tar.bz2 | |
Allow --force for blacklisted formula names
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/brew.h.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb index 92e29b48f..2689f3c09 100644 --- a/Library/Homebrew/brew.h.rb +++ b/Library/Homebrew/brew.h.rb @@ -102,17 +102,21 @@ def make url end end - case name + force_text = "If you really want to make this formula use --force." + + case name.downcase when /libxml/, /libxlst/, /freetype/, /libpng/ raise <<-EOS #{name} is blacklisted for creation Apple distributes this library with OS X, you can find it in /usr/X11/lib. However not all build scripts look here, so you may need to call ENV.x11 or ENV.libxml2 in your formula's install function. + +#{force_text} EOS when 'mercurial', 'scons' - raise "#{name} is blacklisted for creation because it is provided by easy_install" - end + raise "#{name} is blacklisted for creation because it is provided by easy_install.\n\n#{force_text}" + end unless ARGV.force? __make url, name end |
