mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-29 20:29:40 -05:00
Is it a DSL? No. But people call it that apparently. To add a dependency: class Doe <Formula depends_on 'ray' depends_on 'mee' => :optional depends_on 'far' => :recommended depends_on Sew.new end Sew would be a formula you have defined in this Formula file. This is useful, eg. see Python's formula. Formula specified in this fashion cannot be linked into the HOMEBREW_PREFIX, they are considered private libraries. This allows you to create custom installations that are very specific to your formula. More features to come, like specifying versions
17 lines
382 B
Ruby
17 lines
382 B
Ruby
require 'brewkit'
|
|
|
|
class Liblastfm <Formula
|
|
@homepage='http://github.com/mxcl/liblastfm/'
|
|
@url='http://static.last.fm/src/liblastfm-0.3.0.tar.bz2'
|
|
@md5='3f73222ebc31635941832b01e7a494b6'
|
|
|
|
depends_on 'qt'
|
|
depends_on 'fftw'
|
|
depends_on 'samplerate'
|
|
|
|
def install
|
|
system "./configure --release --prefix '#{prefix}'"
|
|
system "make"
|
|
system "make install"
|
|
end
|
|
end |