sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 31393dc61f6381b08b78a1b73e03d595ab72a577
parent b37f506cfa194cae0e619711000a804b562cff19
Author: Scott Bonds <scott@ggr.com>
Date:   Sun, 14 Sep 2014 15:59:29 -0700

add explanation for extension used for OpenBSD conditional dependency

expand comment on OpenBSD installation

remove note about adding OpenBSD installation steps

Diffstat:
M ext/mkrf_conf.rb | 5 +----
M sup.gemspec | 5 +++++
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/ext/mkrf_conf.rb b/ext/mkrf_conf.rb
@@ -10,10 +10,7 @@ end
 
 inst = Gem::DependencyInstaller.new
 begin
-  if RbConfig::CONFIG['arch'].include?('openbsd')
-    # TODO: in theory, we could put the OpenBSD install steps here
-    # see https://github.com/sup-heliotrope/sup/wiki/Installation%3A-OpenBSD
-  else
+  if !RbConfig::CONFIG['arch'].include?('openbsd')
     inst.install "xapian-ruby", "~> 1.2.15"
  end
 rescue
diff --git a/sup.gemspec b/sup.gemspec
@@ -35,6 +35,11 @@ SUP: please note that our old mailing lists have been shut down,
 
   s.required_ruby_version = '>= 1.9.3'
 
+  # this is here to support skipping the xapian-ruby installation on OpenBSD
+  # because the xapian-ruby gem doesn't install on OpenBSD, you must install
+  # xapian-core and xapian-bindings manually on OpenBSD
+  # see https://github.com/sup-heliotrope/sup/wiki/Installation%3A-OpenBSD
+  # and https://en.wikibooks.org/wiki/Ruby_Programming/RubyGems#How_to_install_different_versions_of_gems_depending_on_which_version_of_ruby_the_installee_is_using
   s.extensions = 'ext/mkrf_conf.rb'
 
   s.add_runtime_dependency "ncursesw", "~> 1.4.0"