-
Notifications
You must be signed in to change notification settings - Fork 0
/
xdebug.rb
34 lines (29 loc) · 989 Bytes
/
xdebug.rb
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
30
31
32
33
34
require 'formula'
class Xdebug < Formula
url 'http://www.xdebug.org/files/xdebug-2.2.0.tgz'
homepage 'http://xdebug.org'
md5 '27d8ad8224ffab04d12eecb5997a4f5d'
depends_on 'autoconf'
def install
Dir.chdir "xdebug-#{version}" do
# See https://github.com/mxcl/homebrew/issues/issue/69
ENV.universal_binary
system "phpize"
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--enable-xdebug"
system "make"
prefix.install 'modules/xdebug.so'
end
end
def caveats; <<-EOS.undent
To finish installing xdebug-php:
* Add the following line to #{etc}/php.ini:
zend_extension="#{prefix}/xdebug.so"
* Restart your webserver.
* Write a PHP page that calls "phpinfo();"
* Load it in a browser and look for the info on the xdebug module.
* If you see it, you have been successful!
EOS
end
end