Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 3d1a1d3639
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (20 sloc) 0.875 kB
require File.join(File.dirname(__FILE__), 'abstract-php-extension')
class Php54Xcache < AbstractPhpExtension
homepage 'http://xcache.lighttpd.net'
url 'http://xcache.lighttpd.net/pub/Releases/2.0.0/xcache-2.0.0.tar.bz2'
md5 '0e30cdff075c635e475d70a5c37d0252'
depends_on 'autoconf' => :build
depends_on 'php54' if ARGV.include?('--with-homebrew-php') && !Formula.factory('php54').installed?
def extension_type; "zend_extension"; end
def install
# See https://github.com/mxcl/homebrew/issues/issue/69
ENV.universal_binary unless Hardware.is_64_bit?
safe_phpize
system "./configure", "--prefix=#{prefix}",
"--disable-debug",
"--disable-dependency-tracking"
system "make"
prefix.install "modules/xcache.so"
write_config_file unless ARGV.include? "--without-config-file"
end
end
Jump to Line
Something went wrong with that request. Please try again.