Skip to content

Commit

Permalink
ossp-uuid: sandbox headers and remove keg-only limitation
Browse files Browse the repository at this point in the history
  • Loading branch information
jacknagel committed Sep 12, 2014
1 parent 5391256 commit fdb81d8
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions Formula/ossp-uuid.rb
Original file line number Diff line number Diff line change
@@ -1,25 +1,18 @@
require 'formula'
require "formula"

class OsspUuid < Formula
homepage 'http://www.ossp.org/pkg/lib/uuid/'
url 'http://ftp.de.debian.org/debian/pool/main/o/ossp-uuid/ossp-uuid_1.6.2.orig.tar.gz'
mirror 'ftp://ftp.ossp.org/pkg/lib/uuid/uuid-1.6.2.tar.gz'
sha1 '3e22126f0842073f4ea6a50b1f59dcb9d094719f'
homepage "http://www.ossp.org/pkg/lib/uuid/"
url "http://ftp.de.debian.org/debian/pool/main/o/ossp-uuid/ossp-uuid_1.6.2.orig.tar.gz"
mirror "ftp://ftp.ossp.org/pkg/lib/uuid/uuid-1.6.2.tar.gz"
sha1 "3e22126f0842073f4ea6a50b1f59dcb9d094719f"
revision 1

bottle do
cellar :any
revision 1
sha1 'be005cdd4b3b2bb684a2c67458b241189fb234e2' => :mavericks
sha1 'fbed4a708210f9c2fcf2ee70f8e82e4c92db3ac3' => :mountain_lion
sha1 '853ec550d13e6cd48f2ff43605a6ae17b43f4565' => :lion
end

option :universal
option "32-bit"

# see https://github.com/Homebrew/homebrew/issues/16077
keg_only "OS X provides a uuid.h which conflicts with ossp-uuid's header."

def install
if build.universal?
ENV.universal_binary
Expand All @@ -28,6 +21,7 @@ def install
end

system "./configure", "--prefix=#{prefix}",
"--includedir=#{include}/ossp",
"--without-perl",
"--without-php",
"--without-pgsql"
Expand Down

0 comments on commit fdb81d8

Please sign in to comment.