diff options
| author | Adam Vandenberg | 2014-02-25 20:50:00 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2014-02-27 08:21:20 -0800 |
| commit | cb054ecdd4c26cccd6eb74be833848c93d9ffccc (patch) | |
| tree | 6be8cdcf4fb9475ca42299bcc608b5bae437eee7 /Library/Formula | |
| parent | 697127a7ecb06d10ea90b83c48c0291a69c57759 (diff) | |
| download | homebrew-cb054ecdd4c26cccd6eb74be833848c93d9ffccc.tar.bz2 | |
libmemcached: use Formula[]
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/libmemcached.rb | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/Library/Formula/libmemcached.rb b/Library/Formula/libmemcached.rb index 8976f4d58..34601ba44 100644 --- a/Library/Formula/libmemcached.rb +++ b/Library/Formula/libmemcached.rb @@ -20,24 +20,23 @@ class Libmemcached < Formula depends_on "memcached" end + def patches + # https://bugs.launchpad.net/libmemcached/+bug/1284765 + DATA + end + def install ENV.append_to_cflags "-undefined dynamic_lookup" if MacOS.version <= :leopard args = ["--prefix=#{prefix}"] if build.with? "sasl" - args << "--with-memcached-sasl=#{Formula.factory("memcached").bin}/memcached" + args << "--with-memcached-sasl=#{Formula["memcached"].bin}/memcached" end system "./configure", *args system "make install" end - - def patches - # https://bugs.launchpad.net/libmemcached/+bug/1284765 - DATA - end - end __END__ |
