2013-10-28 07:03:12 +00:00
|
|
|
class Capnp < Formula
|
2015-02-06 00:21:23 +00:00
|
|
|
homepage "https://capnproto.org/"
|
2015-04-22 06:35:59 +00:00
|
|
|
url "https://capnproto.org/capnproto-c++-0.5.2.tar.gz"
|
|
|
|
sha256 "23145a0127c2b1629c4b72e6000e04991640e551947fa39fd06710d64bd942a8"
|
2013-10-28 07:03:12 +00:00
|
|
|
|
2014-10-27 18:56:09 +00:00
|
|
|
bottle do
|
2015-04-22 06:57:17 +00:00
|
|
|
sha256 "df70e870b12a65442ced879e21418554e1594de20e86691f68c6a1ec17e60bf4" => :yosemite
|
|
|
|
sha256 "26b92dca28761c408adfdfcc44d39baa7b0adfcccdc6d03a57377e14750ab3d0" => :mavericks
|
|
|
|
sha256 "d6ffe25d6652a0dd63bd035889f08202ceb40e39413e2e64adea1af5cc2cb2bd" => :mountain_lion
|
2014-10-27 18:56:09 +00:00
|
|
|
end
|
|
|
|
|
2014-04-05 04:16:09 +00:00
|
|
|
needs :cxx11
|
2014-10-27 19:02:38 +00:00
|
|
|
option "without-shared", "Disable building shared library variant"
|
2013-10-28 07:03:12 +00:00
|
|
|
|
|
|
|
def install
|
2015-02-06 00:21:23 +00:00
|
|
|
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
|
2013-10-28 07:03:12 +00:00
|
|
|
system "make", "check"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/capnp", "--version"
|
|
|
|
end
|
|
|
|
end
|