blob: 80440637d700c4a532f3994b52341aa0542abb83 (
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
35
36
 | require "formula"
class OsspUuid < Formula
  homepage "http://www.ossp.org/pkg/lib/uuid/"
  url "http://ftp.de.debian.org/debian/pool/main/o/ossp-uuid/ossp-uuid_1.6.2.orig.tar.gz"
  mirror "ftp://ftp.ossp.org/pkg/lib/uuid/uuid-1.6.2.tar.gz"
  sha1 "3e22126f0842073f4ea6a50b1f59dcb9d094719f"
  revision 1
  bottle do
    cellar :any
    sha1 "bc8c6f93dd36442dfc24199062a73d1b4c47701f" => :yosemite
    sha1 "93c3c44dc456e49bed9cb8b3672144fc348298dc" => :mavericks
    sha1 "8a922934644663915eedc97f1a7da83725c646d2" => :mountain_lion
    sha1 "3fbf704b60a660becfba68753285ec70ee47cdeb" => :lion
  end
  option :universal
  option "32-bit"
  def install
    if build.universal?
      ENV.universal_binary
    elsif build.build_32_bit?
      ENV.append %w[CFLAGS LDFLAGS], "-arch #{Hardware::CPU.arch_32_bit}"
    end
    system "./configure", "--prefix=#{prefix}",
                          "--includedir=#{include}/ossp",
                          "--without-perl",
                          "--without-php",
                          "--without-pgsql"
    system "make"
    system "make install"
  end
end
 |