Skip to content
This repository
Browse code

Use new instance var syntax in example formula

  • Loading branch information...
commit 8d405a04bf5c1bd90149e3ef8843f77d34a9de30 1 parent 51dcb8c
Max Howell authored September 24, 2009
12  Library/Formula/git.rb
... ...
@@ -1,14 +1,14 @@
1 1
 require 'brewkit'
2 2
 
3 3
 class GitManuals <Formula
4  
-  @url='http://kernel.org/pub/software/scm/git/git-manpages-1.6.4.4.tar.bz2'
5  
-  @md5='5ee880f408f1299d541c273fb7e3c1db'
  4
+  url 'http://kernel.org/pub/software/scm/git/git-manpages-1.6.4.4.tar.bz2'
  5
+  md5 '5ee880f408f1299d541c273fb7e3c1db'
6 6
 end
7 7
 
8 8
 class Git <Formula
9  
-  @url='http://kernel.org/pub/software/scm/git/git-1.6.4.4.tar.bz2'
10  
-  @md5='b150352782998ca1f84185e6af53ec26'
11  
-  @homepage='http://git-scm.com'
  9
+  url 'http://kernel.org/pub/software/scm/git/git-1.6.4.4.tar.bz2'
  10
+  md5 'b150352782998ca1f84185e6af53ec26'
  11
+  homepage 'http://git-scm.com'
12 12
 
13 13
   def install
14 14
     # if these things are installed, tell git build system to not use them
@@ -31,4 +31,4 @@ def install
31 31
     # on many other packages, and is somewhat crazy, this way is easier
32 32
     GitManuals.new.brew { man.install Dir['*'] }
33 33
   end
34  
-end
  34
+end
6  Library/Formula/logrotate.rb
... ...
@@ -1,9 +1,9 @@
1 1
 require 'brewkit'
2 2
 
3 3
 class Logrotate <Formula
4  
-  @url='http://ftp.de.debian.org/debian/pool/main/l/logrotate/logrotate_3.7.8.orig.tar.gz'
5  
-  @homepage='http://packages.debian.org/testing/admin/logrotate'
6  
-  @md5='b3589bea6d8d5afc8a84134fddaae973'
  4
+  url 'http://ftp.de.debian.org/debian/pool/main/l/logrotate/logrotate_3.7.8.orig.tar.gz'
  5
+  homepage 'http://packages.debian.org/testing/admin/logrotate'
  6
+  md5 'b3589bea6d8d5afc8a84134fddaae973'
7 7
 
8 8
   depends_on 'popt'
9 9
 
10  Library/Formula/wget.rb
... ...
@@ -1,12 +1,12 @@
1 1
 require 'brewkit'
2 2
 
3 3
 class Wget <Formula
4  
-  @homepage='http://www.gnu.org/software/wget/'
5  
-  @url='http://ftp.gnu.org/gnu/wget/wget-1.11.4.tar.bz2'
6  
-  @md5='f5076a8c2ec2b7f334cb6e3059820f9c'
  4
+  homepage 'http://www.gnu.org/software/wget/'
  5
+  url 'http://ftp.gnu.org/gnu/wget/wget-1.11.4.tar.bz2'
  6
+  md5 'f5076a8c2ec2b7f334cb6e3059820f9c'
7 7
 
8 8
   def install
9  
-    system "./configure --disable-debug --prefix='#{prefix}'"
  9
+    system "./configure", "--disable-debug", "--prefix='#{prefix}'"
10 10
     system "make install"
11 11
   end
12  
-end
  12
+end

0 notes on commit 8d405a0

Please sign in to comment.
Something went wrong with that request. Please try again.