aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2009-10-01 15:42:36 +0100
committerMax Howell2009-10-01 15:48:54 +0100
commit43bd334ae563516cb83d86d1b2215973da026436 (patch)
treef3dda6c552217838202aa4469eba675e1fc09a2f /Library
parent99b018121443c9a510c5d55cfb019b0deed3dd88 (diff)
downloadhomebrew-43bd334ae563516cb83d86d1b2215973da026436.tar.bz2
Blacklist creation for some formula
We don't duplicate, so libxml and that are already provided by OS X. Mercurial is provided by easy_install. I'm adding this to save people contributing stuff that we won;t accept. I hate disappointing people :(
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/brew.h.rb15
1 files changed, 13 insertions, 2 deletions
diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb
index a67e8c84d..83cb79c50 100644
--- a/Library/Homebrew/brew.h.rb
+++ b/Library/Homebrew/brew.h.rb
@@ -85,7 +85,6 @@ def __make url, name
return path
end
-
def make url
path = Pathname.new url
@@ -102,7 +101,19 @@ def make url
name = gots
end
end
-
+
+ case name
+ 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.
+ EOS
+ when 'mercurial'
+ raise "Mercurial is blacklisted for creation because it is provided by easy_install"
+ end
+
__make url, name
end