2014-10-27 19:02:38 +00:00
|
|
|
require "formula"
|
2013-10-28 07:03:12 +00:00
|
|
|
|
|
|
|
class Capnp < Formula
|
2014-10-27 19:02:38 +00:00
|
|
|
homepage "http://kentonv.github.io/capnproto/"
|
2014-12-17 01:46:04 +00:00
|
|
|
url "http://capnproto.org/capnproto-c++-0.5.0.tar.gz"
|
|
|
|
sha1 "5eec5929d9b64628b2e7b6646369f112079a1f61"
|
2013-10-28 07:03:12 +00:00
|
|
|
|
2014-10-27 18:56:09 +00:00
|
|
|
bottle do
|
2014-12-17 02:39:33 +00:00
|
|
|
sha1 "c73a3d2118d22e1741cea71b5557a98f1f9123d3" => :yosemite
|
|
|
|
sha1 "25029d69b65d8cb98dc5015a9c215e5109e889ba" => :mavericks
|
|
|
|
sha1 "06576d9fbc1ee122828bf7f41ceb5cb12bc41a32" => :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
|
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
|
2013-10-28 07:03:12 +00:00
|
|
|
system "make", "check"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/capnp", "--version"
|
|
|
|
end
|
|
|
|
end
|