PageRenderTime 54ms CodeModel.GetById 30ms RepoModel.GetById 0ms app.codeStats 0ms

/Library/Formula/mcrypt-php.rb

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