homebrew-core/Formula/xdebug.rb
Chris Faulkner 3c96ac58c9 Updated Xdebug to 2.1.1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-04-06 18:23:06 -07:00

33 lines
936 B
Ruby

require 'formula'
class Xdebug < Formula
url 'http://xdebug.org/files/xdebug-2.1.1.tgz'
homepage 'http://xdebug.org'
md5 'fcdf078e715f44b77f13bac721ad63ce'
def install
Dir.chdir "xdebug-#{version}" do
# 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}",
"--enable-xdebug"
system "make"
prefix.install 'modules/xdebug.so'
end
end
def caveats
<<-EOS
To use this software:
* Add the following line to 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