aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/xdebug.rb
diff options
context:
space:
mode:
authorBoris Gordon2009-09-27 02:56:32 +1000
committerMax Howell2009-09-30 01:24:25 +0100
commit31ee69378b9205ccf14c3fb1658258eb20e70008 (patch)
tree5d1db655dd802d24eeff7022be0f5ed2f8d0f8bc /Library/Formula/xdebug.rb
parent9abbe4317c7fcc1cc562774670e3200afc25facb (diff)
downloadhomebrew-31ee69378b9205ccf14c3fb1658258eb20e70008.tar.bz2
Xdebug formula
The Xdebug extension helps you debugging your script by providing a lot of valuable debug information.
Diffstat (limited to 'Library/Formula/xdebug.rb')
-rw-r--r--Library/Formula/xdebug.rb30
1 files changed, 30 insertions, 0 deletions
diff --git a/Library/Formula/xdebug.rb b/Library/Formula/xdebug.rb
new file mode 100644
index 000000000..b00f4940a
--- /dev/null
+++ b/Library/Formula/xdebug.rb
@@ -0,0 +1,30 @@
+require 'brewkit'
+
+class Xdebug <Formula
+ url 'http://xdebug.org/files/xdebug-2.0.5.tgz'
+ homepage 'http://xdebug.org'
+ md5 '2d87dab7b6c499a80f0961af602d030c'
+
+ def install
+ Dir.chdir 'xdebug-2.0.5' do
+ system "phpize"
+ system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking",
+ "--enable-xdebug"
+ system "make"
+ prefix.install 'modules/xdebug.so'
+ end
+ end
+
+ def caveats
+ <<-END_CAVEATS
+ 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!
+ END_CAVEATS
+ end
+end