homebrew-core/Formula/cfengine.rb

27 lines
805 B
Ruby
Raw Normal View History

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'
2013-06-08 00:18:50 +00:00
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",
2014-02-25 04:42:31 +00:00
"--with-pcre=#{Formula['pcre'].opt_prefix}",
"--without-mysql",
"--without-postgresql"
2012-04-18 04:51:58 +00:00
system "make install"
end
test do
system "#{bin}/cf-agent", "-V"
end
end