aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/mcrypt-php.rb
diff options
context:
space:
mode:
authorMisty De Meo2011-12-12 09:10:52 -0600
committerMisty De Meo2011-12-12 09:10:52 -0600
commitd29184867bfd829b0ce84d7b533caf545c6e3f6e (patch)
tree3e49bed3dafdfb7369545b905328e048c469a911 /Library/Formula/mcrypt-php.rb
parent101a1679256f002b9deef5bfe1278e80e8484d7a (diff)
parentfbd51c114613c8b8b65039c37545dd9bf008f06c (diff)
downloadhomebrew-d29184867bfd829b0ce84d7b533caf545c6e3f6e.tar.bz2
Merge branch 'master' of git://github.com/mxcl/homebrew
Diffstat (limited to 'Library/Formula/mcrypt-php.rb')
-rw-r--r--Library/Formula/mcrypt-php.rb28
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