Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 720fd569ac
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (23 sloc) 0.944 kb
require File.join(File.dirname(__FILE__), 'abstract-php-extension')
class Php54Mcrypt < AbstractPhp54Extension
homepage 'http://php.net/manual/en/book.mcrypt.php'
url 'http://www.php.net/get/php-5.4.7.tar.bz2/from/this/mirror'
sha1 'e634fbbb63818438636bf83a5f6ea887d4569943'
version '5.4.7'
depends_on 'autoconf' => :build
depends_on 'mcrypt'
depends_on 'php54' unless build.include?('without-homebrew-php')
def install
Dir.chdir "ext/mcrypt"
# See https://github.com/mxcl/homebrew/pull/5947
ENV.universal_binary unless Hardware.is_64_bit?
safe_phpize
system "./configure", "--prefix=#{prefix}",
phpconfig,
"--disable-dependency-tracking",
"--with-mcrypt=#{Formula.factory('mcrypt').prefix}"
system "make"
prefix.install "modules/mcrypt.so"
write_config_file unless build.include? "without-config-file"
end
end
Jump to Line
Something went wrong with that request. Please try again.