2011-06-15 20:53:37 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-06-17 03:05:21 +00:00
|
|
|
class MemcachedPhp < Formula
|
2011-06-15 20:53:37 +00:00
|
|
|
url 'http://pecl.php.net/get/memcached-1.0.2.tgz'
|
|
|
|
homepage 'http://pecl.php.net/package/memcached'
|
|
|
|
md5 'b91f815ad59086d0c3564cce022b5c4f'
|
|
|
|
|
2011-08-19 06:24:54 +00:00
|
|
|
depends_on 'libmemcached'
|
|
|
|
|
2011-06-15 20:53:37 +00:00
|
|
|
def install
|
|
|
|
Dir.chdir "memcached-#{version}" do
|
|
|
|
system "phpize"
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
|
|
system "make"
|
|
|
|
prefix.install 'modules/memcached.so'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
To finish installing memcached:
|
|
|
|
* Add the following line to php.ini:
|
|
|
|
extension="#{prefix}/memcached.so"
|
|
|
|
* Restart your webserver
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|