homebrew-core/Formula/capnp.rb

34 lines
936 B
Ruby
Raw Normal View History

class Capnp < Formula
homepage "https://capnproto.org/"
url "https://capnproto.org/capnproto-c++-0.5.2.tar.gz"
sha256 "23145a0127c2b1629c4b72e6000e04991640e551947fa39fd06710d64bd942a8"
bottle do
2015-04-22 06:57:17 +00:00
sha256 "df70e870b12a65442ced879e21418554e1594de20e86691f68c6a1ec17e60bf4" => :yosemite
sha256 "26b92dca28761c408adfdfcc44d39baa7b0adfcccdc6d03a57377e14750ab3d0" => :mavericks
sha256 "d6ffe25d6652a0dd63bd035889f08202ceb40e39413e2e64adea1af5cc2cb2bd" => :mountain_lion
end
needs :cxx11
2014-10-27 19:02:38 +00:00
option "without-shared", "Disable building shared library variant"
def install
args = %W[
--disable-debug
--disable-dependency-tracking
--disable-silent-rules
--prefix=#{prefix}
]
2014-10-27 09:32:50 +00:00
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