homebrew-core/Formula/ossp-uuid.rb

29 lines
783 B
Ruby
Raw Normal View History

2010-05-26 18:49:40 +00:00
require 'formula'
2011-03-10 05:11:03 +00:00
class OsspUuid < Formula
2012-08-10 16:04:59 +00:00
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'
2010-05-26 18:49:40 +00:00
md5 '5db0d43a9022a6ebbbc25337ae28942f'
2012-08-10 16:04:59 +00:00
option :universal
option "32-bit"
2012-02-04 06:04:45 +00:00
2010-05-26 18:49:40 +00:00
def install
2012-08-10 16:04:59 +00:00
if build.universal?
ENV.universal_binary
2012-08-10 16:04:59 +00:00
elsif build.build_32_bit?
2012-02-04 06:04:45 +00:00
ENV.append 'CFLAGS', '-arch i386'
ENV.append 'LDFLAGS', '-arch i386'
end
system "./configure", "--disable-debug",
2012-08-10 16:04:59 +00:00
"--prefix=#{prefix}",
2010-05-26 18:49:40 +00:00
"--without-perl",
"--without-php",
2012-08-10 16:04:59 +00:00
"--without-pgsql"
2010-05-26 18:49:40 +00:00
system "make"
system "make install"
end
end