aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/xdebug.rb
diff options
context:
space:
mode:
authorMax Howell2009-10-19 12:45:18 +0100
committerMax Howell2009-10-19 13:48:33 +0100
commit7189bc2ddc1e74d706e5cc86e20eb597b0d4d26f (patch)
tree4bf50f10f415488bb0e1a89bd792cfaacfbdbfb4 /Library/Formula/xdebug.rb
parent9d5e0cea34a32472db2d89a357aadf434a7f0b33 (diff)
downloadhomebrew-7189bc2ddc1e74d706e5cc86e20eb597b0d4d26f.tar.bz2
Build a universal binary on Leopard
Fixes #69
Diffstat (limited to 'Library/Formula/xdebug.rb')
-rw-r--r--Library/Formula/xdebug.rb15
1 files changed, 9 insertions, 6 deletions
diff --git a/Library/Formula/xdebug.rb b/Library/Formula/xdebug.rb
index ec4040c62..fb93308ef 100644
--- a/Library/Formula/xdebug.rb
+++ b/Library/Formula/xdebug.rb
@@ -7,6 +7,9 @@ class Xdebug <Formula
def install
Dir.chdir 'xdebug-2.0.5' do
+ # See http://github.com/mxcl/homebrew/issues/#issue/69
+ ENV.universal_binary unless Hardware.is_64_bit?
+
system "phpize"
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking",
"--enable-xdebug"
@@ -17,14 +20,14 @@ class Xdebug <Formula
def caveats
<<-END_CAVEATS
- Add the following line to php.ini:
- zend_extension="#{prefix}/xdebug.so"
+Add the following line to php.ini:
+
+ zend_extension="#{prefix}/xdebug.so"
- Restart your webserver.
+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!
+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