PageRenderTime 55ms CodeModel.GetById 29ms RepoModel.GetById 0ms app.codeStats 0ms

/Library/Formula/pcntl-php.rb

http://github.com/mxcl/homebrew
Ruby | 25 lines | 22 code | 3 blank | 0 comment | 0 complexity | 6b06490b9d0ccc395418bfc2b77399e2 MD5 | raw file
  1. require 'formula'
  2. class PcntlPhp < Formula
  3. url 'http://museum.php.net/php5/php-5.3.6.tar.gz'
  4. homepage 'http://php.net/manual/en/book.pcntl.php'
  5. md5 '88a2b00047bc53afbbbdf10ebe28a57e'
  6. def install
  7. Dir.chdir "ext/pcntl"
  8. system "phpize"
  9. system "./configure", "--disable-dependency-tracking",
  10. "--prefix=#{prefix}"
  11. system "make"
  12. prefix.install "modules/pcntl.so"
  13. end
  14. def caveats; <<-EOS.undent
  15. To finish pcntl-php installation, you need to add the
  16. following line into php.ini:
  17. extension="#{prefix}/pcntl.so"
  18. Then, restart your webserver and check in phpinfo if
  19. you're able to see something about pcntl.
  20. EOS
  21. end
  22. end