PageRenderTime 39ms CodeModel.GetById 15ms RepoModel.GetById 1ms app.codeStats 0ms

/Library/Formula/php-apc.rb

https://github.com/justinrainbow/homebrew
Ruby | 32 lines | 24 code | 7 blank | 1 comment | 0 complexity | 70582f19c62959b8fed4a9d110cb7483 MD5 | raw file
  1. require 'formula'
  2. class PhpApc <Formula
  3. url 'http://pecl.php.net/get/APC-3.1.4.tgz'
  4. homepage 'http://php.net/manual/en/book.apc.php'
  5. md5 '1f7a58f850e795b0958a3f99ae8c2cc4'
  6. version '3.1.4'
  7. def install
  8. Dir.chdir "APC-#{version}" do
  9. # See http://github.com/mxcl/homebrew/issues/#issue/69
  10. ENV.universal_binary unless Hardware.is_64_bit?
  11. system "phpize"
  12. system "./configure", "--disable-debug", "--disable-dependency-tracking",
  13. "--with-php-config=#{Formula.factory('php').prefix}/bin/php-config",
  14. "--prefix=#{prefix}"
  15. system "make install"
  16. prefix.install 'modules/apc.so'
  17. end
  18. end
  19. def caveats; <<-EOS
  20. To enable, add the following to your php.ini file:
  21. [apc]
  22. extension=apc.so
  23. EOS
  24. end
  25. end