homebrew-core/Formula/memcache-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

24 lines
583 B
Ruby

require 'formula'
class MemcachePhp < Formula
homepage 'http://pecl.php.net/package/memcache'
url 'http://pecl.php.net/get/memcache-2.2.6.tgz'
md5 '9542f1886b72ffbcb039a5c21796fe8a'
def install
cd "memcache-#{version}" do
system "phpize"
system "./configure", "--prefix=#{prefix}"
system "make"
prefix.install 'modules/memcache.so'
end
end
def caveats; <<-EOS.undent
To finish installing memcache:
* Add the following line to php.ini:
extension="#{prefix}/memcache.so"
* Restart your webserver
EOS
end
end