mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-27 19:39:48 -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
14 lines
375 B
Ruby
14 lines
375 B
Ruby
require 'brewkit'
|
|
|
|
class Libvorbis <Formula
|
|
@url='http://downloads.xiph.org/releases/vorbis/libvorbis-1.2.2rc1.tar.bz2'
|
|
@md5='6a7086ee666b8c62e122d29d107f7bec'
|
|
@homepage='http://vorbis.com'
|
|
|
|
depends_on 'libogg'
|
|
|
|
def install
|
|
system "./configure --enable-docs --disable-debug --disable-dependency-tracking --prefix='#{prefix}'"
|
|
system "make install"
|
|
end
|
|
end |