homebrew-core/Formula/xdebug.rb
Wes Baker 8f334470f3 xdebug 2.1.3
Closes Homebrew/homebrew#10179.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-14 17:53:35 -06:00

32 lines
946 B
Ruby

require 'formula'
class Xdebug < Formula
homepage 'http://xdebug.org'
url 'http://www.xdebug.org/files/xdebug-2.1.3.tgz'
md5 '779f4a66acdccd673553769e403674c4'
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 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