353b795c5c
ossp-uuid-1.6.2 has a flakey main ftp site, and they are no longer hosted on the current `mirror` site. Change the mirror to use the archive at googlecode. Fixes Homebrew/homebrew#14265 Closes Homebrew/homebrew#14288. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
28 lines
779 B
Ruby
28 lines
779 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://gnome-build-stage-1.googlecode.com/files/uuid-1.6.2.tar.gz'
|
|
sha1 '3e22126f0842073f4ea6a50b1f59dcb9d094719f'
|
|
|
|
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
|