Skip to content

Instantly share code, notes, and snippets.

@vlemaire
Created February 5, 2011 21:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save vlemaire/812799 to your computer and use it in GitHub Desktop.
Save vlemaire/812799 to your computer and use it in GitHub Desktop.
Homebrew Formula for xhprof
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