diff options
| author | Montana Harkin | 2011-06-15 16:53:37 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2011-06-16 08:43:01 -0700 |
| commit | f7370cd587c1a88cd9978293ffa5ed19e7669b8f (patch) | |
| tree | 1744851592bbe4815d215a0558d6f16f17dfe3f4 /Library/Formula/memcached-php.rb | |
| parent | 3720b6308db629ccaf79f7dd2d7d69d7f93bb5d4 (diff) | |
| download | homebrew-f7370cd587c1a88cd9978293ffa5ed19e7669b8f.tar.bz2 | |
memcached-php 1.0.2
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/memcached-php.rb')
| -rw-r--r-- | Library/Formula/memcached-php.rb | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Library/Formula/memcached-php.rb b/Library/Formula/memcached-php.rb new file mode 100644 index 000000000..f25b2d543 --- /dev/null +++ b/Library/Formula/memcached-php.rb @@ -0,0 +1,24 @@ +require 'formula' + +class MemcachedPhp <Formula + url 'http://pecl.php.net/get/memcached-1.0.2.tgz' + homepage 'http://pecl.php.net/package/memcached' + md5 'b91f815ad59086d0c3564cce022b5c4f' + + 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 |
