diff options
Diffstat (limited to 'Library/Formula/memcache-php.rb')
| -rw-r--r-- | Library/Formula/memcache-php.rb | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Library/Formula/memcache-php.rb b/Library/Formula/memcache-php.rb new file mode 100644 index 000000000..012e4872c --- /dev/null +++ b/Library/Formula/memcache-php.rb @@ -0,0 +1,24 @@ +require 'formula' + +class MemcachePhp <Formula + url 'http://pecl.php.net/get/memcache-2.2.6.tgz' + homepage 'http://pecl.php.net/package/memcache' + md5 '9542f1886b72ffbcb039a5c21796fe8a' + + def install + Dir.chdir "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 |
