homebrew-core/Formula/solr-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
586 B
Ruby

require 'formula'
class SolrPhp < Formula
homepage 'http://pecl.php.net/package/solr'
url 'http://pecl.php.net/get/solr-1.0.1.tgz'
md5 '538adecfd52a79feae777870edcfd5d7'
def install
cd "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