solr-php 1.0.1

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Osman Üngür 2011-08-04 09:38:50 +03:00 committed by Adam Vandenberg
parent 37bacf37a8
commit 12632c4f6b
1 changed files with 25 additions and 0 deletions

25
Formula/solr-php.rb Normal file
View File

@ -0,0 +1,25 @@
require 'formula'
class SolrPhp < Formula
url 'http://pecl.php.net/get/solr-1.0.1.tgz'
homepage 'http://pecl.php.net/package/mongo'
md5 '538adecfd52a79feae777870edcfd5d7'
def install
Dir.chdir "solr-#{version}" do
system "phpize"
system "./configure", "--prefix=#{prefix}"
system "make"
prefix.install "modules/solr.so"
end
end
def caveats; <<-EOS.undent
To finish installing Solr extension:
* Add the following lines to #{etc}/php.ini:
[solr]
extension="#{prefix}/solr.so"
* Restart your webserver
EOS
end
end