homebrew-core/Formula/mongo-php.rb

26 lines
603 B
Ruby
Raw Normal View History

require 'formula'
class MongoPhp < Formula
url 'http://pecl.php.net/get/mongo-1.2.6.tgz'
homepage 'http://pecl.php.net/package/mongo'
md5 'b471f3d9309c2caa52ea90122042d3f4'
def install
Dir.chdir "mongo-#{version}" do
system "phpize"
system "./configure", "--prefix=#{prefix}"
system "make"
2011-06-17 03:16:58 +00:00
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