PageRenderTime 41ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/Library/Formula/mcrypt-php.rb

https://github.com/mszarski/homebrew
Ruby | 28 lines | 24 code | 4 blank | 0 comment | 0 complexity | ddcbc0b44fd1b203a968e04e3ccf96cc 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. system "make"
  14. prefix.install 'modules/mcrypt.so'
  15. end
  16. def caveats; <<-EOS.undent
  17. To finish mcrypt-php installation, you need to add the
  18. following line into php.ini:
  19. extension="#{prefix}/mcrypt.so"
  20. Then, restart your webserver and check in phpinfo if
  21. you're able to see something about mcrypt
  22. EOS
  23. end
  24. end