aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorZak Johnson2011-01-30 23:03:49 -0800
committerAdam Vandenberg2011-03-01 08:19:44 -0800
commitd0b9524d63bc92c6453f75f852197cb0532a9b3d (patch)
tree54b76101a25041e332629270fb752079de21b300 /Library
parent1d052ac362eb15f744843c6c156075fab83e0df7 (diff)
downloadhomebrew-d0b9524d63bc92c6453f75f852197cb0532a9b3d.tar.bz2
Add formula for memcache PHP extension
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/memcache-php.rb24
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