Skip to content

Instantly share code, notes, and snippets.

@camspiers
Created January 25, 2014 08:56
Show Gist options
  • Save camspiers/8613649 to your computer and use it in GitHub Desktop.
Save camspiers/8613649 to your computer and use it in GitHub Desktop.
Brew php56 formula
require File.join(File.dirname(__FILE__), 'abstract-php')
class Php56 < AbstractPhp
init
url 'http://downloads.php.net/tyrael/php-5.6.0alpha1.tar.bz2'
sha1 '08dec1cd5ef3acccaafd7ca79f5a8b22643e7d65'
version '5.6.0alpha1'
head 'https://github.com/php/php-src.git', :branch => 'PHP-5.6'
# Leopard requires Hombrew OpenSSL to build correctly
depends_on 'openssl' if MacOS.version == :leopard
def install_args
args = super
args << "--with-homebrew-openssl" if MacOS.version == :leopard
args + [
"--enable-zend-signals",
"--enable-opcache",
]
end
def php_version
5.6
end
def php_version_path
56
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment