commit 492091ad4d544da7fce650b70347a151f5edb053
parent d996908a2c56e305bd21d18d5dcd16a5a0a93c02
Author: Dan Callaghan <djc@djc.id.au>
Date: Sat, 13 Apr 2024 17:37:21 +1000
conditionally install xapian-ruby gem based on an environment variable
... instead of checking if the host is OpenBSD. There are other
situations where the xapian-ruby gem may be broken and the user may
prefer to install it themselves, such as on recent MacOS.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ext/mkrf_conf_xapian.rb b/ext/mkrf_conf_xapian.rb
@@ -14,7 +14,7 @@ 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 =
@@ -37,7 +37,7 @@ begin
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