PageRenderTime 56ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/Formula/php54-ev.rb

https://bitbucket.org/mkalkbrenner/homebrew-php
Ruby | 25 lines | 20 code | 5 blank | 0 comment | 1 complexity | a39c8ff3e359044f86a679a514ce7318 MD5 | raw file
  1. require File.join(File.dirname(__FILE__), 'abstract-php-extension')
  2. class Php54Ev < AbstractPhp54Extension
  3. init
  4. homepage 'http://pecl.php.net/package/ev'
  5. url 'http://pecl.php.net/get/ev-0.2.3.tgz'
  6. sha1 '9b818ac6f23994f8b53cc164f65bf649d4562c9c'
  7. head 'https://bitbucket.org/osmanov/pecl-ev.git'
  8. depends_on 'libev'
  9. def install
  10. Dir.chdir "ev-#{version}" unless build.head?
  11. ENV.universal_binary if build.universal?
  12. safe_phpize
  13. system "./configure", "--prefix=#{prefix}",
  14. phpconfig,
  15. "--with-libev=#{Formula.factory('libev').opt_prefix}"
  16. system "make"
  17. prefix.install "modules/ev.so"
  18. write_config_file unless build.include? "without-config-file"
  19. end
  20. end