homebrew-core/Formula/capnp.rb

35 lines
894 B
Ruby
Raw Normal View History

2014-10-27 19:02:38 +00:00
require "formula"
class Capnp < Formula
2014-10-27 19:02:38 +00:00
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
2014-10-27 19:02:38 +00:00
option "without-shared", "Disable building shared library variant"
def install
2014-10-27 09:32:50 +00:00
args = ["--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"]
2014-10-27 19:02:38 +00:00
args << "--disable-shared" if build.without? "shared"
2014-10-27 09:32:50 +00:00
system "./configure", *args
system "make", "check"
system "make", "install"
end
test do
system "#{bin}/capnp", "--version"
end
end