diff options
| author | Max Howell | 2009-06-02 13:39:39 +0100 |
|---|---|---|
| committer | Max Howell | 2009-06-03 15:57:19 +0100 |
| commit | d6141137f22fed0f3721b93ac09a719236850d83 (patch) | |
| tree | 4e7fc654f44732ae0e956eb2e71f46b2ae44dd78 /Formula/boost.rb | |
| parent | d2c7fcac29b1a2725f52e66a8147ccbc66e9666e (diff) | |
| download | brew-d6141137f22fed0f3721b93ac09a719236850d83.tar.bz2 | |
Refactor Formulae
Basically Formulae are now classes that get dynamically loaded by the
brew script. This gives me more flexability.
Diffstat (limited to 'Formula/boost.rb')
| -rw-r--r-- | Formula/boost.rb | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/Formula/boost.rb b/Formula/boost.rb index 91a875a9b..2022ef952 100644 --- a/Formula/boost.rb +++ b/Formula/boost.rb @@ -1,17 +1,16 @@ -$:.unshift "#{File.dirname __FILE__}/../Cellar/homebrew" #rubysucks require 'brewkit' -homepage='http://www.boost.org' -url='http://kent.dl.sourceforge.net/sourceforge/boost/boost_1_39_0.tar.bz2' -md5='a17281fd88c48e0d866e1a12deecbcc0' +class Boost <Formula + @homepage='http://www.boost.org' + @url='http://kent.dl.sourceforge.net/sourceforge/boost/boost_1_39_0.tar.bz2' + @md5='a17281fd88c48e0d866e1a12deecbcc0' -Formula.new(url, md5).brew do |prefix| - lib=prefix+'lib' - # we specify libdir too because the script is apparently broken - - #TODO we can save 6300 links if we just had the intelligence to symlink the - # include/boost dir and not more - - system "./bootstrap.sh --prefix='#{prefix}' --libdir='#{lib}'" - system "./bjam --layout=system --prefix='#{prefix}' --libdir='#{lib}' install" + def install + #TODO we can save 6300 links if we just had the intelligence to symlink + #the include/boost dir and not more + + # we specify libdir too because the script is apparently broken + system "./bootstrap.sh --prefix='#{prefix}' --libdir='#{lib}'" + system "./bjam --layout=system --prefix='#{prefix}' --libdir='#{lib}' install" + end end
\ No newline at end of file |
