2010-10-20 16:25:02 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Xcache < Formula
|
2011-04-28 14:00:14 +00:00
|
|
|
url 'http://xcache.lighttpd.net/pub/Releases/1.3.1/xcache-1.3.1.tar.gz'
|
2010-10-20 16:25:02 +00:00
|
|
|
homepage 'http://xcache.lighttpd.net/'
|
2011-04-28 14:00:14 +00:00
|
|
|
md5 'aff79b19c7623ba923233ae193e9537a'
|
2010-10-20 16:25:02 +00:00
|
|
|
|
|
|
|
def install
|
2010-11-07 19:03:31 +00:00
|
|
|
# See https://github.com/mxcl/homebrew/issues/issue/69
|
2010-10-20 16:25:02 +00:00
|
|
|
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:
|
2011-04-28 14:00:14 +00:00
|
|
|
zend_extension="#{prefix}/xcache.so"
|
2010-10-20 16:25:02 +00:00
|
|
|
* 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
|