| 
									
										
										
										
											2010-11-14 03:52:59 +00:00
										 |  |  | def blacklisted? name | 
					
						
							|  |  |  |   case name.downcase | 
					
						
							|  |  |  |   when 'vim', 'screen', /^rubygems?$/ then <<-EOS.undent
 | 
					
						
							|  |  |  |     Apple distributes #{name} with OS X, you can find it in /usr/bin. | 
					
						
							|  |  |  |     EOS | 
					
						
							| 
									
										
										
										
											2011-05-30 10:48:10 +08:00
										 |  |  |   when 'libarchive', 'libpcap' then <<-EOS.undent
 | 
					
						
							| 
									
										
										
										
											2010-11-14 03:52:59 +00:00
										 |  |  |     Apple distributes #{name} with OS X, you can find it in /usr/lib. | 
					
						
							|  |  |  |     EOS | 
					
						
							| 
									
										
										
										
											2011-05-30 10:48:10 +08:00
										 |  |  |   when 'libxml', 'libxlst' then <<-EOS.undent
 | 
					
						
							|  |  |  |     Apple distributes #{name} with OS X, you can find it in /usr/lib. | 
					
						
							|  |  |  |     However not all build scripts look for these hard enough, so you may need | 
					
						
							|  |  |  |     to call ENV.libxml2 in your formula's install function. | 
					
						
							|  |  |  |     EOS | 
					
						
							|  |  |  |   when 'freetype', 'libpng' then <<-EOS.undent
 | 
					
						
							| 
									
										
										
										
											2010-11-14 03:52:59 +00:00
										 |  |  |     Apple distributes #{name} with OS X, you can find it in /usr/X11/lib. | 
					
						
							| 
									
										
										
										
											2011-05-30 10:48:10 +08:00
										 |  |  |     However not all build scripts look here, so you may need to call ENV.x11 | 
					
						
							|  |  |  |     in your formula's install function. | 
					
						
							| 
									
										
										
										
											2010-11-14 03:52:59 +00:00
										 |  |  |     EOS | 
					
						
							|  |  |  |   when 'wxwidgets' then <<-EOS.undent
 | 
					
						
							|  |  |  |     An old version of wxWidgets can be found in /usr/X11/lib. However, Homebrew | 
					
						
							|  |  |  |     does provide a newer version, 2.8.10: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         brew install wxmac | 
					
						
							|  |  |  |     EOS | 
					
						
							|  |  |  |   when 'tex', 'tex-live', 'texlive' then <<-EOS.undent
 | 
					
						
							|  |  |  |     Installing TeX from source is weird and gross, requires a lot of patches, | 
					
						
							|  |  |  |     and only builds 32-bit (and thus can't use Homebrew deps on Snow Leopard.) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     We recommend using a MacTeX distribution: http://www.tug.org/mactex/ | 
					
						
							|  |  |  |     EOS | 
					
						
							|  |  |  |   when 'mercurial', 'hg' then <<-EOS.undent
 | 
					
						
							|  |  |  |     Install Mercurial with pip: | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-05-01 08:32:38 -07:00
										 |  |  |         easy_install pip && pip install Mercurial | 
					
						
							| 
									
										
										
										
											2010-11-14 03:52:59 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |     Or easy_install: | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-05-01 08:32:38 -07:00
										 |  |  |         easy_install Mercurial | 
					
						
							| 
									
										
										
										
											2010-11-14 03:52:59 +00:00
										 |  |  |     EOS | 
					
						
							| 
									
										
										
										
											2011-04-10 17:15:02 -04:00
										 |  |  |   when 'pip' then <<-EOS.undent
 | 
					
						
							|  |  |  |     Install pip with easy_install: | 
					
						
							| 
									
										
										
										
											2010-11-14 03:52:59 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-04-10 17:15:02 -04:00
										 |  |  |         easy_install pip | 
					
						
							| 
									
										
										
										
											2010-11-14 03:52:59 +00:00
										 |  |  |     EOS | 
					
						
							|  |  |  |   when 'npm' then <<-EOS.undent
 | 
					
						
							|  |  |  |     npm can be installed thusly by following the instructions at | 
					
						
							|  |  |  |       http://npmjs.org/ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     To do it in one line, use this command: | 
					
						
							| 
									
										
										
										
											2011-04-12 15:58:11 -07:00
										 |  |  |       curl http://npmjs.org/install.sh | sh | 
					
						
							| 
									
										
										
										
											2010-11-14 03:52:59 +00:00
										 |  |  |     EOS | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | end |