diff options
| author | phySi0 | 2013-10-28 07:03:12 +0000 |
|---|---|---|
| committer | Misty De Meo | 2013-12-18 09:05:17 -0800 |
| commit | df228ff29ed681c7cac743f1d8ab9879562cdbe1 (patch) | |
| tree | 03a6508e6455424cfdd79a48c344f08038603eb8 /Library/Formula | |
| parent | 076fac13e976ca62ebda632e059f670f9b2ee00b (diff) | |
| download | homebrew-df228ff29ed681c7cac743f1d8ab9879562cdbe1.tar.bz2 | |
capnp 0.3.0
Closes #23688.
Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/capnp.rb | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Library/Formula/capnp.rb b/Library/Formula/capnp.rb new file mode 100644 index 000000000..1c3508b48 --- /dev/null +++ b/Library/Formula/capnp.rb @@ -0,0 +1,37 @@ +require 'formula' + +class Capnp < Formula + homepage 'http://kentonv.github.io/capnproto/' + url 'http://capnproto.org/capnproto-c++-0.3.0.tar.gz' + sha1 '26152010298db40687bf1b18ff6a438986289a44' + + fails_with :gcc do + cause "Cap'n Proto requires C++11 support" + end + + fails_with :gcc_4_0 do + cause "Cap'n Proto requires C++11 support" + end + + fails_with :clang do + build 425 + cause "Clang 3.2 or newer is required to build Cap'n Proto" + end + + fails_with :llvm do + cause "Cap'n Proto requires C++11 support" + end + + 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 |
