blob: 631aa14ce77dd2f3ceac3a7cade8b29f42ac7b76 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
require "formula"
class Capnp < Formula
homepage "http://kentonv.github.io/capnproto/"
url "http://capnproto.org/capnproto-c++-0.4.1.tar.gz"
sha1 "18ce1a404c2bf68e6625e44927bfe6b67186cb15"
bottle do
cellar :any
sha1 "e980920f619a0682b1335550844b065894ed43ac" => :yosemite
sha1 "37a57c4a451723d7aa63dce453d35c65dce38a6e" => :mavericks
sha1 "8d7cc81fe1e7356eea9b422cc59ecbb1cef8f808" => :mountain_lion
end
needs :cxx11
option "without-shared", "Disable building shared library variant"
def install
args = ["--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"]
args << "--disable-shared" if build.without? "shared"
system "./configure", *args
system "make", "check"
system "make", "install"
end
test do
system "#{bin}/capnp", "--version"
end
end
|