Sha256: 64427be6262f20d136a5c99e7f3a4f165d278fcd359628bd2e573b62fa7b38cb
Contents?: true
Size: 964 Bytes
Versions: 1
Compression:
Stored size: 964 Bytes
Contents
require 'rbconfig' c = Config::CONFIG def system!(cmd) puts cmd system(cmd) or raise end ver = '1.2.7' core = "xapian-core-#{ver}" bindings = "xapian-bindings-#{ver}" xapian_config = "#{Dir.pwd}/#{core}/xapian-config" task :default do [core,bindings].each do |x| system! "tar -xzvf #{x}.tar.gz" end prefix = File.dirname(Dir.pwd) puts "prefix = #{prefix}" ENV['LDFLAGS'] = "-R#{prefix}/lib" Dir.chdir core do system! "./configure --prefix=#{prefix} --exec-prefix=#{prefix}" system! "make clean all install" # Alternatively to only install libraries # system! "cp -r .libs/* ../lib/" end Dir.chdir bindings do ENV['RUBY'] ||= "#{c['bindir']}/#{c['RUBY_INSTALL_NAME']}" ENV['XAPIAN_CONFIG'] = xapian_config system! "./configure --prefix=#{prefix} --exec-prefix=#{prefix} --with-ruby" system! "make clean all" system! "cp -LR ./ruby/.libs/_xapian.* #{prefix}/lib" system! "cp ./ruby/xapian.rb #{prefix}/lib" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
xapian-core-1.2.7.1 | ext/Rakefile |