Skip to content

Instantly share code, notes, and snippets.

@lashomb
Last active December 24, 2015 22:38
Show Gist options
  • Select an option

  • Save lashomb/6873726 to your computer and use it in GitHub Desktop.

Select an option

Save lashomb/6873726 to your computer and use it in GitHub Desktop.
php54 --with-mssql --with-thread-safety
require File.join(File.dirname(__FILE__), 'abstract-php')
class Php54 < AbstractPhp
init
url 'http://www.php.net/get/php-5.4.20.tar.bz2/from/this/mirror'
sha1 'b468faaf1f88dd4dd5dbeb11283dd9d76c523cd5'
version '5.4.20'
head 'https://github.com/php/php-src.git', :branch => 'PHP-5.4'
# 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-dtrace",
"--with-mssql",
"--with-thread-safety",
]
end
def php_version
5.4
end
def php_version_path
54
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment