diff options
Diffstat (limited to 'Formula/liblastfm.rb')
| -rw-r--r-- | Formula/liblastfm.rb | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/Formula/liblastfm.rb b/Formula/liblastfm.rb index fe0d67ba3..5d1999172 100644 --- a/Formula/liblastfm.rb +++ b/Formula/liblastfm.rb @@ -1,14 +1,19 @@ -$:.unshift "#{File.dirname __FILE__}/../Cellar/homebrew" #rubysucks require 'brewkit' -homepage='http://github.com/mxcl/liblastfm/' -url='http://github.com/mxcl/liblastfm/tarball/0.3.0' -md5='b348917689b90f3f40125d0968f0b643' +class Liblastfm <Formula + @homepage='http://github.com/mxcl/liblastfm/' + @url='http://github.com/mxcl/liblastfm/tarball/0.3.0' + @md5='08e90275ccd06476426a5002d1dad762' -external_deps=['qmake'] + def deps + dep_test_bin 'qmake' or 'qt' + dep_test_lib 'fftw3f' or 'fftw' + dep_test_lib 'samplerate' or 'libsamplerate' + end -Formula.new(url, md5).brew do |prefix| - system "./configure --release --prefix '#{prefix}'" - system "make" - system "make install" + def install + system "./configure --release --prefix '#{prefix}'" + system "make" + system "make install" + end end
\ No newline at end of file |
