homebrew-core/Formula/capnp.rb
2015-02-06 08:34:59 +00:00

33 lines
832 B
Ruby

class Capnp < Formula
homepage "https://capnproto.org/"
url "https://capnproto.org/capnproto-c++-0.5.1.tar.gz"
sha1 "98565b2a79f4748f0f9e02fbff80fbb8803ac9fc"
bottle do
sha1 "8efac5284bcf2f16378c93d5384c5459cc0aa684" => :yosemite
sha1 "c469a616d9d94e0cfcce9e93f8a0623511055fd1" => :mavericks
sha1 "23ed9c4e64f5b3b08774731d23a0c2cd041bb647" => :mountain_lion
end
needs :cxx11
option "without-shared", "Disable building shared library variant"
def install
args = %W[
--disable-debug
--disable-dependency-tracking
--disable-silent-rules
--prefix=#{prefix}
]
args << "--disable-shared" if build.without? "shared"
system "./configure", *args
system "make", "check"
system "make", "install"
end
test do
system "#{bin}/capnp", "--version"
end
end