aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2009-09-24 18:49:32 +0100
committerMax Howell2009-09-24 18:49:32 +0100
commit8d405a04bf5c1bd90149e3ef8843f77d34a9de30 (patch)
tree87ebb1a1ad9a81f31ec1678617bd9cc6ea00d310
parent51dcb8c9e754223cc7fd1c605b160f23b996fe81 (diff)
downloadhomebrew-8d405a04bf5c1bd90149e3ef8843f77d34a9de30.tar.bz2
Use new instance var syntax in example formula
-rw-r--r--Library/Formula/git.rb12
-rw-r--r--Library/Formula/logrotate.rb6
-rw-r--r--Library/Formula/wget.rb10
3 files changed, 14 insertions, 14 deletions
diff --git a/Library/Formula/git.rb b/Library/Formula/git.rb
index 1a09e452c..bb7fb630d 100644
--- a/Library/Formula/git.rb
+++ b/Library/Formula/git.rb
@@ -1,14 +1,14 @@
require 'brewkit'
class GitManuals <Formula
- @url='http://kernel.org/pub/software/scm/git/git-manpages-1.6.4.4.tar.bz2'
- @md5='5ee880f408f1299d541c273fb7e3c1db'
+ url 'http://kernel.org/pub/software/scm/git/git-manpages-1.6.4.4.tar.bz2'
+ md5 '5ee880f408f1299d541c273fb7e3c1db'
end
class Git <Formula
- @url='http://kernel.org/pub/software/scm/git/git-1.6.4.4.tar.bz2'
- @md5='b150352782998ca1f84185e6af53ec26'
- @homepage='http://git-scm.com'
+ url 'http://kernel.org/pub/software/scm/git/git-1.6.4.4.tar.bz2'
+ md5 'b150352782998ca1f84185e6af53ec26'
+ homepage 'http://git-scm.com'
def install
# if these things are installed, tell git build system to not use them
@@ -31,4 +31,4 @@ class Git <Formula
# on many other packages, and is somewhat crazy, this way is easier
GitManuals.new.brew { man.install Dir['*'] }
end
-end \ No newline at end of file
+end
diff --git a/Library/Formula/logrotate.rb b/Library/Formula/logrotate.rb
index fdf30ab23..aa9c09339 100644
--- a/Library/Formula/logrotate.rb
+++ b/Library/Formula/logrotate.rb
@@ -1,9 +1,9 @@
require 'brewkit'
class Logrotate <Formula
- @url='http://ftp.de.debian.org/debian/pool/main/l/logrotate/logrotate_3.7.8.orig.tar.gz'
- @homepage='http://packages.debian.org/testing/admin/logrotate'
- @md5='b3589bea6d8d5afc8a84134fddaae973'
+ url 'http://ftp.de.debian.org/debian/pool/main/l/logrotate/logrotate_3.7.8.orig.tar.gz'
+ homepage 'http://packages.debian.org/testing/admin/logrotate'
+ md5 'b3589bea6d8d5afc8a84134fddaae973'
depends_on 'popt'
diff --git a/Library/Formula/wget.rb b/Library/Formula/wget.rb
index 99288b295..c20ba9a32 100644
--- a/Library/Formula/wget.rb
+++ b/Library/Formula/wget.rb
@@ -1,12 +1,12 @@
require 'brewkit'
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'
+ homepage 'http://www.gnu.org/software/wget/'
+ url 'http://ftp.gnu.org/gnu/wget/wget-1.11.4.tar.bz2'
+ md5 'f5076a8c2ec2b7f334cb6e3059820f9c'
def install
- system "./configure --disable-debug --prefix='#{prefix}'"
+ system "./configure", "--disable-debug", "--prefix='#{prefix}'"
system "make install"
end
-end \ No newline at end of file
+end