Rakefile in xapian-ruby-1.2.17 vs Rakefile in xapian-ruby-1.2.19
- old
+ new
@@ -1,26 +1,25 @@
# encoding: utf-8
# Install the xapian binaries into the lib folder of the gem
-
require 'rbconfig'
-c = Config::CONFIG
+c = RbConfig::CONFIG
def system!(cmd)
puts cmd
system(cmd) or raise
end
-ver = '1.2.17'
+ver = '1.2.19'
source_dir = 'xapian_source'
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 #{source_dir}/#{x}.tar.gz"
+ system! "tar -xzvf #{source_dir}/#{x}.tar.xz"
end
prefix = Dir.pwd
ENV['LDFLAGS'] = "-L#{prefix}/lib"
@@ -47,7 +46,6 @@
system! "rm lib/*.lai"
system! "rm -R #{bindings}"
system! "rm -R #{core}"
system! "rm -R #{source_dir}"
-
end