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/"
|
|
|
|
url "http://capnproto.org/capnproto-c++-0.4.1.tar.gz"
|
|
|
|
sha1 "18ce1a404c2bf68e6625e44927bfe6b67186cb15"
|
2013-10-28 07:03:12 +00:00
|
|
|
|
2014-10-27 18:56:09 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "e980920f619a0682b1335550844b065894ed43ac" => :yosemite
|
|
|
|
sha1 "37a57c4a451723d7aa63dce453d35c65dce38a6e" => :mavericks
|
|
|
|
sha1 "8d7cc81fe1e7356eea9b422cc59ecbb1cef8f808" => :mountain_lion
|
|
|
|
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
|