blob: a8fac5b1a76e96814447b56a98ea9eb3551f2945 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
require 'formula'
class MongoPhp < Formula
url 'http://pecl.php.net/get/mongo-1.2.4.tgz'
homepage 'http://pecl.php.net/package/mongo'
md5 '307b9e5863873e49079910906470d950'
def install
Dir.chdir "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
|