homebrew-core/Formula/solr-php.rb
David Olinsky a7e628320f solr-php: fix homepage url
Closes Homebrew/homebrew#9028.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-15 21:27:32 -06:00

25 lines
593 B
Ruby

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