blob: f8e0700e7a3c8b44821b29fe07bdd34dd6c02a7c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  | 
require 'formula'
class Capnp < Formula
  homepage 'http://kentonv.github.io/capnproto/'
  url 'http://capnproto.org/capnproto-c++-0.4.1.tar.gz'
  sha1 '18ce1a404c2bf68e6625e44927bfe6b67186cb15'
  needs :cxx11
  def install
    system "./configure", "--disable-debug",
                          "--disable-dependency-tracking",
                          "--disable-silent-rules",
                          "--prefix=#{prefix}"
    system "make", "check"
    system "make", "install"
  end
  test do
    system "#{bin}/capnp", "--version"
  end
end
  |