Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: add4f05db1
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (23 sloc) 0.88 kb
require File.join(File.dirname(__FILE__), 'abstract-php-extension')
class Php53Xhprof < AbstractPhpExtension
homepage 'http://mirror.facebook.net/facebook/xhprof/doc.html'
url 'http://pecl.php.net/get/xhprof-0.9.2.tgz'
sha1 'cef6bfb3374e05c7b7445249a304e066d4fd8574'
depends_on 'autoconf' => :build
depends_on 'pcre'
depends_on 'php53' if build.include?('with-homebrew-php') && !Formula.factory('php53').installed?
def install
Dir.chdir "xhprof-#{version}/extension" do
# See https://github.com/mxcl/homebrew/pull/5947
ENV.universal_binary
safe_phpize
system "./configure", "--prefix=#{prefix}"
system "make"
prefix.install "modules/xhprof.so"
end
Dir.chdir "xhprof-#{version}" do
prefix.install %w(xhprof_html xhprof_lib)
end
write_config_file unless build.include? "without-config-file"
end
end
Jump to Line
Something went wrong with that request. Please try again.