aboutsummaryrefslogtreecommitdiffstats
path: root/Formula/wget.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Formula/wget.rb')
-rw-r--r--Formula/wget.rb17
1 files changed, 9 insertions, 8 deletions
diff --git a/Formula/wget.rb b/Formula/wget.rb
index 0f5a02362..2ba5722e0 100644
--- a/Formula/wget.rb
+++ b/Formula/wget.rb
@@ -1,12 +1,13 @@
-$:.unshift "#{File.dirname __FILE__}/../Cellar/homebrew" #rubysucks
require 'brewkit'
-homepage='http://www.gnu.org/software/wget/'
-url='http://ftp.gnu.org/gnu/wget/wget-1.11.4.tar.bz2'
-md5='f5076a8c2ec2b7f334cb6e3059820f9c'
+class Wget <Formula
+ @homepage='http://www.gnu.org/software/wget/'
+ @url='http://ftp.gnu.org/gnu/wget/wget-1.11.4.tar.bz2'
+ @md5='f5076a8c2ec2b7f334cb6e3059820f9c'
-Formula.new(url, md5).brew do |prefix|
- system "./configure --disable-debug --prefix='#{prefix}'"
- system "make"
- system "make install"
+ def install
+ system "./configure --disable-debug --prefix='#{prefix}'"
+ system "make"
+ system "make install"
+ end
end \ No newline at end of file