Sha256: c24e604cedf37999126a93f0ff0b4d10737590c717ecdbcd7ae20ac92135c6ba
Contents?: true
Size: 846 Bytes
Versions: 2
Compression:
Stored size: 846 Bytes
Contents
require 'formula' class Xhprof <Formula url 'http://pecl.php.net/get/xhprof-0.9.2.tgz' homepage 'http://mirror.facebook.net/facebook/xhprof/doc.html' md5 'ae40b153d157e6369a32e2c1a59a61ec' depends_on 'pcre' depends_on 'autoconf' => :build def install extensions = lib + %x[php-config --extension-dir].split('lib/')[1].strip Dir.chdir "xhprof-#{version}/extension" do system "phpize" system "./configure", "--prefix=#{prefix}" system "make" extensions.install 'modules/xhprof.so' end Dir.chdir "xhprof-#{version}" do prefix.install %w(xhprof_html xhprof_lib) end 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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
megalodon-0.1.1 | formulas/xhprof.rb |
megalodon-0.1.0 | formulas/xhprof.rb |