require "formula" class ProtobufC < Formula desc "Protocol buffers library" homepage "https://github.com/protobuf-c/protobuf-c" url "https://github.com/protobuf-c/protobuf-c/releases/download/v1.0.2/protobuf-c-1.0.2.tar.gz" sha1 "f831f98a1142fdd3072b329fdc3b30533be67f48" bottle do sha1 "e850a4947ec7189154845bfb60ff8b69197c45e4" => :mavericks sha1 "fd96052b5ac98180f0679fdb6d62fce8d2c576ac" => :mountain_lion sha1 "b3990ecc09a996fef5a976f59a16ffb7e8d87ecb" => :lion end option :universal depends_on "pkg-config" => :build depends_on "protobuf" def install ENV.universal_binary if build.universal? system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}" system "make install" end end