diff options
| author | Arnaud Lafon | 2011-10-28 14:06:27 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2011-12-11 17:39:20 -0800 |
| commit | 193f9ebb827c0cfab4fae45003fab86ce78809f4 (patch) | |
| tree | df2d8fcca5e2a17aded975adb6049c37c76218a8 | |
| parent | 36efc01319ad4b4e748d9f4e608ad78fd5ae8ddb (diff) | |
| download | homebrew-193f9ebb827c0cfab4fae45003fab86ce78809f4.tar.bz2 | |
mcrypt-php 5.3.6
Added mcrypt support for php.
Works for php 5.3.6 (which seems to be the default version on Lion)
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
| -rw-r--r-- | Library/Formula/mcrypt-php.rb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Library/Formula/mcrypt-php.rb b/Library/Formula/mcrypt-php.rb new file mode 100644 index 000000000..bc78a2e43 --- /dev/null +++ b/Library/Formula/mcrypt-php.rb @@ -0,0 +1,28 @@ +require 'formula' + +class McryptPhp < Formula + url 'http://us.php.net/get/php-5.3.6.tar.gz/from/fr.php.net/mirror' + homepage 'http://php.net/manual/fr/book.mcrypt.php' + md5 '88a2b00047bc53afbbbdf10ebe28a57e' + version '5.3.6' + + depends_on 'mcrypt' + + def install + Dir.chdir "ext/mcrypt" + system "phpize" + system "./configure", "--disable-dependency-tracking", + "--prefix=#{prefix}" + system "make" + prefix.install 'modules/mcrypt.so' + end + + def caveats; <<-EOS.undent + To finish mcrypt-php installation, you need to add the + following line into php.ini: + extension="#{prefix}/mcrypt.so" + Then, restart your webserver and check in phpinfo if + you're able to see something about mcrypt + EOS + end +end |
