sup.gemspec (3262B) - raw
1 $:.push File.expand_path("../lib", __FILE__)
2
3 require 'sup/version'
4
5 Gem::Specification.new do |s|
6 s.name = "sup"
7 s.version = ENV["REL"] || (/-git-/ =~ ::Redwood::VERSION ? "999" : ::Redwood::VERSION)
8 s.date = Time.now.strftime "%Y-%m-%d"
9 s.authors = ["William Morgan", "Gaute Hope", "Hamish Downer", "Matthieu Rakotojaona"]
10 s.email = "supmua@googlegroups.com"
11 s.summary = "A console-based email client with the best features of GMail, mutt and Emacs"
12 s.homepage = "https://supmua.dev/"
13 s.license = 'GPL-2.0'
14 s.description = <<-DESC
15 Sup is a console-based email client for people with a lot of email.
16
17 * GMail-like thread-centered archiving, tagging and muting
18 * Handling mail from multiple mbox and Maildir sources
19 * Blazing fast full-text search with a rich query language
20 * Multiple accounts - pick the right one when sending mail
21 * Ruby-programmable hooks
22 * Automatically tracking recent contacts
23 DESC
24 s.post_install_message = <<-EOF
25 SUP: please note that our old mailing lists have been shut down,
26 re-subscribe to supmua@googlegroups.com to discuss and follow
27 updates on sup (send email to: supmua+subscribe@googlegroups.com).
28
29 OpenBSD users:
30 If your operating system is OpenBSD you have some
31 additional, manual steps to do before Sup will work, see:
32 https://github.com/sup-heliotrope/sup/wiki/Installation%3A-OpenBSD.
33 EOF
34
35 s.files = File.read("Manifest.txt").split
36 s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
37 s.test_files = s.files.grep(%r{^(test|spec|features)/})
38 s.require_paths = ["lib"]
39 s.extra_rdoc_files = Dir.glob("man/*")
40
41 s.required_ruby_version = '>= 2.0.0'
42
43 # this is here to support skipping the xapian-ruby installation on OpenBSD
44 # because the xapian-ruby gem doesn't install on OpenBSD, you must install
45 # xapian-core and xapian-bindings manually on OpenBSD
46 # see https://github.com/sup-heliotrope/sup/wiki/Installation%3A-OpenBSD
47 # 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
48 s.extensions = %w[ext/mkrf_conf_xapian.rb]
49
50 ## remember to update the xapian dependency in
51 ## ext/mkrf_conf_xapian.rb and Gemfile.
52
53 s.add_runtime_dependency "ncursesw", "~> 1.4.0"
54 s.add_runtime_dependency "rmail", ">= 1.1.2", "< 2"
55 s.add_runtime_dependency "highline"
56 s.add_runtime_dependency "optimist"
57 s.add_runtime_dependency "lockfile"
58 s.add_runtime_dependency "mime-types", "> 2.0"
59 s.add_runtime_dependency "locale", "~> 2.0"
60 s.add_runtime_dependency "chronic"
61 s.add_runtime_dependency "unicode", "~> 0.4.4"
62 s.add_runtime_dependency "unicode-display_width"
63 s.add_runtime_dependency "string-scrub" if /^2\.0\./ =~ RUBY_VERSION
64 s.add_runtime_dependency "benchmark"
65 s.add_runtime_dependency "fiddle"
66
67 s.add_development_dependency "bundler", ">= 1.3", "< 3"
68 s.add_development_dependency "rake"
69 s.add_development_dependency 'minitest', '~> 5.5'
70 s.add_development_dependency "rr", "~> 1.1"
71 s.add_development_dependency "gpgme", ">= 2.0.2"
72 s.add_development_dependency "pry"
73 s.add_development_dependency "rubocop-packaging" unless /^2\.[012]\./ =~ RUBY_VERSION
74
75 end