ext/mkrf_conf_xapian.rb in sup-1.1 vs ext/mkrf_conf_xapian.rb in sup-1.2
- old
+ new
@@ -12,11 +12,11 @@
destination = File.writable?(Gem.dir) ? Gem.dir : Gem.user_dir
inst = Gem::DependencyInstaller.new(:install_dir => destination)
begin
- if !RbConfig::CONFIG['arch'].include?('openbsd')
+ if not ENV.include? "SUP_SKIP_XAPIAN_GEM_INSTALL"
# update version in Gemfile as well
name = "xapian-ruby"
version =
if /^2\.0\./ =~ RUBY_VERSION
["~> 1.2", "< 1.3.6"]
@@ -35,10 +35,10 @@
STDERR.puts "xapian: installing xapian-ruby.."
inst.install name, version
end
else
- STDERR.puts "xapian: openbsd: you have to install xapian-core and xapian-bindings manually, have a look at: https://github.com/sup-heliotrope/sup/wiki/Installation%3A-OpenBSD"
+ STDERR.puts "xapian: you have to install xapian-core and xapian-bindings manually"
end
rescue StandardError => e
STDERR.puts "Unable to install #{name} gem: #{e.inspect}"
exit(1)