homebrew-core/Formula/capnp.rb
2014-10-27 19:02:38 +00:00

34 lines
894 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"
bottle do
cellar :any
sha1 "e980920f619a0682b1335550844b065894ed43ac" => :yosemite
sha1 "37a57c4a451723d7aa63dce453d35c65dce38a6e" => :mavericks
sha1 "8d7cc81fe1e7356eea9b422cc59ecbb1cef8f808" => :mountain_lion
end
needs :cxx11
option "without-shared", "Disable building shared library variant"
def install
args = ["--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