c665eac117
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
19 lines
No EOL
550 B
Ruby
19 lines
No EOL
550 B
Ruby
require 'brewkit'
|
|
|
|
class VorbisTools <Formula
|
|
@url='http://downloads.xiph.org/releases/vorbis/vorbis-tools-1.2.0.tar.gz'
|
|
@md5='df976d24e51ef3d87cd462edf747bf9a'
|
|
@homepage='http://vorbis.com'
|
|
|
|
depends_on 'ogg'
|
|
depends_on 'vorbis'
|
|
depends_on 'ao' => :optional
|
|
depends_on 'ogg123' => :optional
|
|
|
|
def install
|
|
system "./configure --disable-debug --disable-nls --disable-dependency-tracking --prefix='#{prefix}'"
|
|
# wtf?!
|
|
inreplace 'ogg123/Makefile', '-arch ppc ppc64 i386 x86_64', '-arch i386'
|
|
system "make install"
|
|
end
|
|
end |