Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 1901779363
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (19 sloc) 0.797 kb
require File.join(File.dirname(__FILE__), 'abstract-php-extension')
class Php53Solr < AbstractPhpExtension
homepage 'http://pecl.php.net/package/solr'
url 'http://pecl.php.net/get/solr-1.0.2.tgz'
md5 '1632144b462ab22b91d03e4d59704fab'
head 'https://svn.php.net/repository/pecl/solr/trunk/', :using => :svn
depends_on 'autoconf' => :build
depends_on 'php53' if ARGV.include?('--with-homebrew-php') && !Formula.factory('php53').installed?
def install
Dir.chdir "solr-#{version}" unless ARGV.build_head?
# See https://github.com/mxcl/homebrew/pull/5947
ENV.universal_binary
safe_phpize
system "./configure", "--prefix=#{prefix}"
system "make"
prefix.install "modules/solr.so"
write_config_file unless ARGV.include? "--without-config-file"
end
end
Jump to Line
Something went wrong with that request. Please try again.