blob: 912f8633bd3a78564cb006fdd2824a0287352b4f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
require 'formula'
class Xcache < Formula
url 'http://xcache.lighttpd.net/pub/Releases/1.3.1/xcache-1.3.1.tar.gz'
homepage 'http://xcache.lighttpd.net/'
md5 'aff79b19c7623ba923233ae193e9537a'
def install
# See https://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:
zend_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
|