homebrew-core/Formula/mongo-php.rb
Adam Vandenberg da3fdbd0cf Use "cd" instead of "Dir.chdir"
* And "mkdir" isntead of "Dir.mkdir"
* And "Dir[]" instead of "Dir.glob"
* Also style fixes and nitpicks
2012-02-24 21:35:50 -08:00

25 lines
596 B
Ruby

require 'formula'
class MongoPhp < Formula
homepage 'http://pecl.php.net/package/mongo'
url 'http://pecl.php.net/get/mongo-1.2.6.tgz'
md5 'b471f3d9309c2caa52ea90122042d3f4'
def install
cd "mongo-#{version}" do
system "phpize"
system "./configure", "--prefix=#{prefix}"
system "make"
prefix.install "modules/mongo.so"
end
end
def caveats; <<-EOS.undent
To finish installing MongoDB extension:
* Add the following lines to #{etc}/php.ini:
[mongo]
extension="#{prefix}/mongo.so"
* Restart your webserver
EOS
end
end