homebrew-core/Formula/cfengine.rb
Jacob Rothstein 27a47270a2 cfengine 3.6.0
Closes Homebrew/homebrew#30270.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-06-18 20:12:18 -05:00

26 lines
805 B
Ruby

require 'formula'
class Cfengine < Formula
homepage 'http://cfengine.com/'
url 'http://s3.amazonaws.com/cfengine.package-repos/tarballs/cfengine-3.6.0.tar.gz'
sha1 '6358981f836c8e09da154290b1f4285d3dc9562c'
depends_on 'pcre'
depends_on 'tokyo-cabinet'
depends_on 'libxml2' if MacOS.version < :mountain_lion
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-workdir=#{var}/cfengine",
"--with-tokyocabinet",
"--with-pcre=#{Formula['pcre'].opt_prefix}",
"--without-mysql",
"--without-postgresql"
system "make install"
end
test do
system "#{bin}/cf-agent", "-V"
end
end