homebrew-core/Formula/xdebug.rb

33 lines
942 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Xdebug < Formula
url 'http://xdebug.org/files/xdebug-2.1.2.tgz'
homepage 'http://xdebug.org'
md5 '3a9c3402063c8163de6e419ddc8d96e7'
def install
2010-04-30 03:21:50 +00:00
Dir.chdir "xdebug-#{version}" do
2010-11-07 19:03:31 +00:00
# See https://github.com/mxcl/homebrew/issues/issue/69
2011-06-08 21:48:46 +00:00
ENV.universal_binary
system "phpize"
2010-04-30 03:21:50 +00:00
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--enable-xdebug"
system "make"
prefix.install 'modules/xdebug.so'
end
end
2011-06-08 21:48:46 +00:00
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