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
455 B
Ruby
19 lines
455 B
Ruby
require 'brewkit'
|
|
|
|
class Yajl <Formula
|
|
@homepage='http://lloyd.github.com/yajl/'
|
|
@url='http://github.com/lloyd/yajl/tarball/1.0.5'
|
|
@md5='f4a3cbc764c43231ed1aedc54438b69b'
|
|
|
|
depends_on 'cmake'
|
|
|
|
def install
|
|
ENV.deparallelize
|
|
|
|
# I have pushed this fix upstream
|
|
inreplace 'configure', 'cmake ..', "cmake #{std_cmake_parameters} .." if @version == "1.0.5"
|
|
|
|
system "./configure --prefix '#{prefix}'"
|
|
system "make install"
|
|
end
|
|
end
|