Add "require hardware" to formula.rb

Now individual formulae don't need to require this if they want to use
Hardware methods outside of `def install`.
This commit is contained in:
Adam Vandenberg 2012-02-25 15:22:32 -08:00
parent be00d38ce0
commit fb5977f181
7 changed files with 2 additions and 8 deletions

View file

@ -1,5 +1,4 @@
require 'formula'
require 'hardware'
class Dosbox < Formula
url 'http://downloads.sourceforge.net/project/dosbox/dosbox/0.74/dosbox-0.74.tar.gz'

View file

@ -1,5 +1,4 @@
require 'formula'
require 'hardware'
class Mongodb < Formula
homepage 'http://www.mongodb.org/'

View file

@ -1,5 +1,4 @@
require 'formula'
require 'hardware'
def no_magick?
ARGV.include? '--without-graphicsmagick'

View file

@ -1,5 +1,4 @@
require 'formula'
require 'hardware'
class Postgresql < Formula
homepage 'http://www.postgresql.org/'

View file

@ -1,7 +1,8 @@
require 'formula'
require 'hardware'
class Pypy < Formula
homepage 'http://pypy.org/'
if MacOS.prefer_64_bit?
url 'https://bitbucket.org/pypy/pypy/downloads/pypy-1.8-osx64.tar.bz2'
md5 '1c293253e8e4df411c3dd59dff82a663'
@ -11,7 +12,6 @@ class Pypy < Formula
md5 '8584c4e8c042f5b661fcfffa0d9b8a25'
version '1.4.1'
end
homepage 'http://pypy.org/'
def install
prefix.install Dir['*']

View file

@ -1,5 +1,4 @@
require 'formula'
require 'hardware'
class Qt < Formula
homepage 'http://qt.nokia.com/'

View file

@ -1,5 +1,4 @@
require 'formula'
require 'hardware'
class Riak < Formula
homepage 'http://wiki.basho.com/Riak.html'