2011-08-04 06:38:50 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class SolrPhp < Formula
|
2011-12-07 19:02:35 +00:00
|
|
|
homepage 'http://pecl.php.net/package/solr'
|
2012-02-21 06:04:21 +00:00
|
|
|
url 'http://pecl.php.net/get/solr-1.0.1.tgz'
|
2011-08-04 06:38:50 +00:00
|
|
|
md5 '538adecfd52a79feae777870edcfd5d7'
|
|
|
|
|
|
|
|
def install
|
2012-02-21 06:04:21 +00:00
|
|
|
cd "solr-#{version}" do
|
2011-08-04 06:38:50 +00:00
|
|
|
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
|