blob: 134481bb0a49d61598aa68b82f1f93a713ad8c55 (
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
|
require 'formula'
class OsspUuid < Formula
homepage 'http://www.ossp.org/pkg/lib/uuid/'
url 'ftp://ftp.ossp.org/pkg/lib/uuid/uuid-1.6.2.tar.gz'
mirror 'http://www.mirrorservice.org/sites/ftp.ossp.org/pkg/lib/uuid/uuid-1.6.2.tar.gz'
md5 '5db0d43a9022a6ebbbc25337ae28942f'
option :universal
option "32-bit"
def install
if build.universal?
ENV.universal_binary
elsif build.build_32_bit?
ENV.append 'CFLAGS', '-arch i386'
ENV.append 'LDFLAGS', '-arch i386'
end
system "./configure", "--disable-debug",
"--prefix=#{prefix}",
"--without-perl",
"--without-php",
"--without-pgsql"
system "make"
system "make install"
end
end
|