From fdb81d8b7277f87769f0f5223e497e2769f14385 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 11 Sep 2014 21:02:00 -0500 Subject: [PATCH] ossp-uuid: sandbox headers and remove keg-only limitation --- Formula/ossp-uuid.rb | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/Formula/ossp-uuid.rb b/Formula/ossp-uuid.rb index 22cd1ef30a57f..12506e9cd5fa8 100644 --- a/Formula/ossp-uuid.rb +++ b/Formula/ossp-uuid.rb @@ -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 @@ -28,6 +21,7 @@ def install end system "./configure", "--prefix=#{prefix}", + "--includedir=#{include}/ossp", "--without-perl", "--without-php", "--without-pgsql"