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/'
|
2011-10-17 19:58:00 +00:00
|
|
|
url 'ftp://ftp.ossp.org/pkg/lib/uuid/uuid-1.6.2.tar.gz'
|
2012-08-19 16:12:40 +00:00
|
|
|
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
|
|
|
|
2012-11-16 15:26:47 +00:00
|
|
|
# see https://github.com/mxcl/homebrew/issues/16077
|
|
|
|
keg_only "OS X provides a uuid.h which conflicts with ossp-uuid's header."
|
|
|
|
|
2010-05-26 18:49:40 +00:00
|
|
|
def install
|
2012-08-10 16:04:59 +00:00
|
|
|
if build.universal?
|
2012-08-10 15:09:28 +00:00
|
|
|
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
|
|
|
|
|
2010-04-07 05:58:35 +00:00
|
|
|
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
|