Sha256: 56eaf50bea995fc058bfa7302fdd68837db2ed84af6642bc5ee07606bddb9335
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.3' 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.3.1 | ext/Rakefile |