homebrew-core/Formula/memcached-php.rb
Adam Vandenberg da3fdbd0cf Use "cd" instead of "Dir.chdir"
* And "mkdir" isntead of "Dir.mkdir"
* And "Dir[]" instead of "Dir.glob"
* Also style fixes and nitpicks
2012-02-24 21:35:50 -08:00

27 lines
716 B
Ruby

require 'formula'
class MemcachedPhp < Formula
homepage 'http://pecl.php.net/package/memcached'
url 'http://pecl.php.net/get/memcached-1.0.2.tgz'
md5 'b91f815ad59086d0c3564cce022b5c4f'
depends_on 'libmemcached'
def install
cd "memcached-#{version}" do
system "phpize"
system "./configure", "--prefix=#{prefix}",
"--with-libmemcached-dir=#{Formula.factory('libmemcached').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