b66f5ad161
`needs` allows formulae to specify dependencies on cross-compiler dependencies, allowing multiple failures to be specified in a single statement. For instance, `needs :cxx11` adds seven compiler failures. Closes Homebrew/homebrew#22912.
22 lines
552 B
Ruby
22 lines
552 B
Ruby
require 'formula'
|
|
|
|
class Capnp < Formula
|
|
homepage 'http://kentonv.github.io/capnproto/'
|
|
url 'http://capnproto.org/capnproto-c++-0.4.1.tar.gz'
|
|
sha1 '18ce1a404c2bf68e6625e44927bfe6b67186cb15'
|
|
|
|
needs :cxx11
|
|
|
|
def install
|
|
system "./configure", "--disable-debug",
|
|
"--disable-dependency-tracking",
|
|
"--disable-silent-rules",
|
|
"--prefix=#{prefix}"
|
|
system "make", "check"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/capnp", "--version"
|
|
end
|
|
end
|