28 lines
783 B
Ruby
28 lines
783 B
Ruby
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
|