Created
February 13, 2014 12:28
-
-
Save hannesl/8974243 to your computer and use it in GitHub Desktop.
A Homebrew formula for installing the latest Xhprof from Github.
This file contains hidden or 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 'https://github.com/facebook/xhprof.git' | |
| homepage 'http://mirror.facebook.net/facebook/xhprof/doc.html' | |
| version 'master' | |
| depends_on 'pcre' | |
| def install | |
| Dir.chdir "extension" do | |
| system "phpize" | |
| system "./configure", "--prefix=#{prefix}" | |
| system "make" | |
| prefix.install %w(modules/xhprof.so) | |
| end | |
| prefix.install %w(xhprof_html xhprof_lib) | |
| end | |
| def caveats; <<-EOS.undent | |
| To finish installing XHProf: | |
| * Add the following lines to php.ini: | |
| [xhprof] | |
| extension="#{prefix}/xhprof.so" | |
| * Restart your webserver | |
| EOS | |
| end | |
| end |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Like this: