| 
									
										
										
										
											2009-05-22 00:24:53 +01:00
										 |  |  | $:.unshift "#{File.dirname __FILE__}/../Cellar/homebrew" #rubysucks | 
					
						
							|  |  |  | require 'brewkit' | 
					
						
							|  |  |  | require 'fileutils' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | homepage='http://betterthangrep.com/' | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-05-23 12:31:32 +01:00
										 |  |  | class AckFormula < UncompressedScriptFormula | 
					
						
							| 
									
										
										
										
											2009-05-22 00:24:53 +01:00
										 |  |  |   def initialize | 
					
						
							| 
									
										
										
										
											2009-05-23 12:31:32 +01:00
										 |  |  |     super('http://ack.googlecode.com/svn/tags/1.88/ack') | 
					
						
							| 
									
										
										
										
											2009-05-22 00:24:53 +01:00
										 |  |  |     @version='1.88' | 
					
						
							|  |  |  |     @md5='8009a13ab0fc66047bea0ea2ad89419c' | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | end | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-05-23 12:31:32 +01:00
										 |  |  | ack=AckFormula.new | 
					
						
							|  |  |  | ack.brew do |prefix| | 
					
						
							| 
									
										
										
										
											2009-05-22 00:24:53 +01:00
										 |  |  |   bin=prefix+'bin' | 
					
						
							| 
									
										
										
										
											2009-05-23 12:31:32 +01:00
										 |  |  |   bin.mkpath | 
					
						
							|  |  |  |   FileUtils.cp ack.name, bin | 
					
						
							|  |  |  |   (bin+ack.name).chmod 0544
 | 
					
						
							|  |  |  |   nil | 
					
						
							| 
									
										
										
										
											2009-05-22 00:24:53 +01:00
										 |  |  | end |