homebrew-core/Formula/cfengine.rb
Steven Peters a649d9b4ec Use .diff instead of .patch for github commit sourced patches
This modifies multiple formulae in a single commit, replacing
the patch suffix with diff per Homebrew/homebrew#28315. I used the following
command:
~~~
sed -i -e 's@patch"$@diff"@' `grep -rlI 'commit.*patch"$' .`
~~~
The patch shasums are then computed using:
~~~
brew fetch --build-from-source `git st | sed -e 's@^ M@@'`
~~~
and manually updated.

Fixes Homebrew/homebrew#28315.
Fixes Homebrew/homebrew#28335.
Closes Homebrew/homebrew#28339.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-04-11 20:53:22 -05:00

34 lines
1.1 KiB
Ruby

require 'formula'
# https version doesn't download with system curl on Snow Leopard
# https://github.com/Homebrew/homebrew/issues/20339
class Cfengine < Formula
homepage 'http://cfengine.com/'
url 'http://cfengine.com/source-code/download?file=cfengine-3.5.3.tar.gz'
sha1 '95a03e7bc9e31704d6aac4b3023b9c5037fc33f6'
depends_on 'pcre'
depends_on 'tokyo-cabinet'
depends_on 'libxml2' if MacOS.version < :mountain_lion
# Upstream patches for OS X compilation
patch do
url "https://github.com/cfengine/core/commit/d03fcc2d38a4db0c79386aaef30597102bf45853.diff"
sha1 "1050a7f1719b8ad0e04868319324cc38637a3725"
end
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