53473b6bf5
The MacOS.version? family of methods (other than "leopard?") are poorly defined and lead to confusing code. Replace them in formulae with more explicit comparisons. "MacOS.version" is a special version object that can be compared to numerics, symbols, and strings using the standard Ruby comparison methods. The old methods were moved to compat when the version comparison code was merged, and they must remain there "forever", but they should not be used in new code. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
16 lines
430 B
Ruby
16 lines
430 B
Ruby
require 'formula'
|
|
|
|
class Libmemcached < Formula
|
|
homepage 'http://libmemcached.org'
|
|
url 'http://launchpad.net/libmemcached/1.0/1.0.8/+download/libmemcached-1.0.8.tar.gz'
|
|
sha1 'ac1925aea002d8ad28d709aa374d057c73e322af'
|
|
|
|
depends_on 'memcached'
|
|
|
|
def install
|
|
ENV.append_to_cflags "-undefined dynamic_lookup" if MacOS.version == :leopard
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
system "make install"
|
|
end
|
|
end
|