2013-10-28 07:03:12 +00:00
|
|
|
class Capnp < Formula
|
2015-02-06 00:21:23 +00:00
|
|
|
homepage "https://capnproto.org/"
|
2015-03-17 13:41:32 +00:00
|
|
|
url "https://capnproto.org/capnproto-c++-0.5.1.2.tar.gz"
|
|
|
|
sha256 "a23f462bb863ee867783ff33e4c2c9e3ece684c6b33410e34ed2eb17b5d90929"
|
2013-10-28 07:03:12 +00:00
|
|
|
|
2014-10-27 18:56:09 +00:00
|
|
|
bottle do
|
2015-02-06 00:35:17 +00:00
|
|
|
sha1 "8efac5284bcf2f16378c93d5384c5459cc0aa684" => :yosemite
|
|
|
|
sha1 "c469a616d9d94e0cfcce9e93f8a0623511055fd1" => :mavericks
|
|
|
|
sha1 "23ed9c4e64f5b3b08774731d23a0c2cd041bb647" => :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
|