homebrew-core/Formula/serf.rb

35 lines
1.1 KiB
Ruby
Raw Normal View History

require 'formula'
class Serf < Formula
homepage 'http://code.google.com/p/serf/'
url 'http://serf.googlecode.com/files/serf-1.3.2.tar.bz2'
sha1 '90478cd60d4349c07326cb9c5b720438cf9a1b5d'
2013-09-18 09:57:18 +00:00
bottle do
2013-10-19 08:20:46 +00:00
sha1 '2a34148f2f914963cdedd4c04858c9b85b09fbb6' => :mountain_lion
sha1 '9b44078ef53c14852dbe0d7a2e8eded64c24d4bd' => :lion
sha1 '63442a59487dba7c1e81c99bec80653e7f0ae91d' => :snow_leopard
2013-09-18 09:57:18 +00:00
end
2012-08-10 05:17:14 +00:00
option :universal
depends_on :libtool
depends_on 'sqlite'
depends_on 'scons' => :build
def install
# SConstruct merges in gssapi linkflags using scons's MergeFlags,
# but that discards duplicate values - including the duplicate
# values we want, like multiple -arch values for a universal build.
# Passing 0 as the `unique` kwarg turns this behaviour off.
inreplace 'SConstruct', 'unique=1', 'unique=0'
2012-08-10 05:17:14 +00:00
ENV.universal_binary if build.universal?
# scons ignores our compiler and flags unless explicitly passed
args = %W[PREFIX=#{prefix} GSSAPI=/usr CC=#{ENV.cc}
CFLAGS=#{ENV.cflags} LINKFLAGS=#{ENV.ldflags}]
system "scons", *args
system "scons install"
end
end