Created
February 5, 2011 21:23
-
-
Save vlemaire/812799 to your computer and use it in GitHub Desktop.
Homebrew Formula for xhprof
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Xhprof <Formula | |
url 'http://pecl.php.net/get/xhprof-0.9.2.tgz' | |
homepage 'http://pecl.php.net/package/xhprof' | |
md5 'ae40b153d157e6369a32e2c1a59a61ec' | |
depends_on 'pcre' | |
def install | |
Dir.chdir "xhprof-#{version}/extension" do | |
system "phpize" | |
system "./configure", "--prefix=#{prefix}" | |
system "make" | |
prefix.install %w(modules/xhprof.so) | |
end | |
end | |
def caveats; <<-EOS.undent | |
To finish installing xhprof: | |
* Add the following lines to php.ini: | |
[xhprof] | |
extension="#{prefix}/xhprof.so" | |
xhprof.output_dir = /tmp/xhprof | |
* Restart your webserver | |
EOS | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment