homebrew-core/Formula/ossp-uuid.rb

29 lines
779 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://gnome-build-stage-1.googlecode.com/files/uuid-1.6.2.tar.gz'
sha1 '3e22126f0842073f4ea6a50b1f59dcb9d094719f'
2010-05-26 18:49:40 +00:00
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