Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (22 sloc) 815 Bytes
require File.join(File.dirname(__FILE__), 'abstract-php-extension')
class Php53Intl < AbstractPhp53Extension
homepage 'http://php.net/manual/en/book.intl.php'
url 'http://www.php.net/get/php-5.3.17.tar.bz2/from/this/mirror'
sha1 'd6f0192d2c1dae2921923762bde5ae356ceda5b5'
version '5.3.17'
depends_on 'autoconf' => :build
depends_on 'icu4c'
depends_on 'php53' unless build.include?('without-homebrew-php')
def install
Dir.chdir "ext/intl"
# See https://github.com/mxcl/homebrew/pull/5947
ENV.universal_binary
safe_phpize
system "./configure", "--prefix=#{prefix}",
phpconfig,
"--enable-intl"
system "make"
prefix.install "modules/intl.so"
write_config_file unless build.include? "without-config-file"
end
end
Jump to Line
Something went wrong with that request. Please try again.