homebrew-core/Formula/ossp-uuid.rb
2012-02-03 22:11:20 -08:00

27 lines
757 B
Ruby

require 'formula'
class OsspUuid < Formula
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'
homepage 'http://www.ossp.org/pkg/lib/uuid/'
md5 '5db0d43a9022a6ebbbc25337ae28942f'
def options
[["--32-bit", "Build 32-bit only."]]
end
def install
if ARGV.include? '--32-bit'
ENV.append 'CFLAGS', '-arch i386'
ENV.append 'LDFLAGS', '-arch i386'
end
system "./configure", "--disable-debug",
"--without-perl",
"--without-php",
"--without-pgsql",
"--prefix=#{prefix}"
system "make"
system "make install"
end
end