blob: 0c4c9bd1afbbc8fbe5b3cfbc61086110602015f8 (
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
|
require "formula"
class ProtobufC < Formula
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
|