aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/xcache.rb
diff options
context:
space:
mode:
authorKonstantin Käfer2010-10-20 19:25:02 +0300
committerAdam Vandenberg2010-10-25 21:55:55 -0700
commit35bb5533912454f735aacfaa860d227ec8a7cdad (patch)
tree90f7ef6d1b0fcf97a3137e1e401a89403e7cfaf0 /Library/Formula/xcache.rb
parent9e36868bf43f8657762f478a0ac7054787c59850 (diff)
downloadhomebrew-35bb5533912454f735aacfaa860d227ec8a7cdad.tar.bz2
Formula to install XCache 1.3.0
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/xcache.rb')
-rw-r--r--Library/Formula/xcache.rb29
1 files changed, 29 insertions, 0 deletions
diff --git a/Library/Formula/xcache.rb b/Library/Formula/xcache.rb
new file mode 100644
index 000000000..4fd5b2983
--- /dev/null
+++ b/Library/Formula/xcache.rb
@@ -0,0 +1,29 @@
+require 'formula'
+
+class Xcache <Formula
+ url 'http://xcache.lighttpd.net/pub/Releases/1.3.0/xcache-1.3.0.tar.gz'
+ homepage 'http://xcache.lighttpd.net/'
+ md5 'aa78eec93ce9684dfd99010f62ad6720'
+
+ def install
+ # See http://github.com/mxcl/homebrew/issues/issue/69
+ ENV.universal_binary unless Hardware.is_64_bit?
+
+ system "phpize"
+ system "./configure", "--disable-debug", "--disable-dependency-tracking",
+ "--prefix=#{prefix}"
+ system "make"
+ prefix.install 'modules/xcache.so'
+ end
+
+ def caveats; <<-EOS.undent
+ To use this software:
+ * Add the following line to php.ini:
+ extension="#{prefix}/xcache.so"
+ * Restart your webserver.
+ * Write a PHP page that calls "phpinfo();"
+ * Load it in a browser and look for the info on the xcache module.
+ * If you see it, you have been successful!
+ EOS
+ end
+end