aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/memcached-php.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/memcached-php.rb')
-rw-r--r--Library/Formula/memcached-php.rb24
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