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
14 lines
316 B
Ruby
14 lines
316 B
Ruby
require 'brewkit'
|
|
|
|
class Nginx <Formula
|
|
@url='http://sysoev.ru/nginx/nginx-0.7.61.tar.gz'
|
|
@homepage='http://nginx.net/'
|
|
@md5='6ebf89b9b00a3b82734e93c32da7df07'
|
|
|
|
depends_on 'pcre'
|
|
|
|
def install
|
|
system "./configure", "--prefix=#{prefix}", "--with-http_ssl_module"
|
|
system "make install"
|
|
end
|
|
end
|