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
23 lines
759 B
Ruby
23 lines
759 B
Ruby
require 'brewkit'
|
|
|
|
class Subversion <Formula
|
|
@url='http://subversion.tigris.org/downloads/subversion-1.6.5.tar.bz2'
|
|
@homepage='http://subversion.tigris.org/'
|
|
@md5='1a53a0e72bee0bf814f4da83a9b6a636'
|
|
|
|
depends_on 'neon'
|
|
|
|
def install
|
|
# Use existing system zlib, dep-provided other libraries
|
|
# Don't mess with Apache modules (since we're not sudo)
|
|
system "./configure", "--disable-debug",
|
|
"--prefix=#{prefix}",
|
|
"--with-ssl",
|
|
"--with-zlib=/usr/lib",
|
|
"--disable-mod-activation",
|
|
"--without-apache-libexecdir",
|
|
"--without-berkeley-db"
|
|
system "make"
|
|
system "make install"
|
|
end
|
|
end
|