-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreterm.gemspec
58 lines (43 loc) · 1.85 KB
/
reterm.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'reterm/version'
LIB_FILES = Dir.glob("lib/**/*.rb")
DESIGNER_FILES = Dir.glob("designer/**/*")
EXTRA_FILES = ["MIT-LICENSE", "README.md"]
FILES = LIB_FILES +
DESIGNER_FILES +
EXTRA_FILES
EXTRA_DEPS = ['artii', 'drawille', 'chunky_png', 'cdk']
###
SUMMARY = 'Text Based UI Framework built ontop of ncurses'
DESCRIPTION = 'RETerm provides a framework and components to '\
'build full featured terminal interfaces.'
EXTRA_NOTE1 = "---\nTo use all components, the following additional "\
"gem dependencies should be installed:\n"
EXTRA_NOTE2 = "\nIf optional dependencies are missing the framework "\
"will still work but dependent components will fail to load\n---"
DESIGNER_NOTE = 'To use the interface designer you will also need '\
'to install the \"visualruby\" gem'
POST_INSTALL_MSG = EXTRA_NOTE1 +
EXTRA_DEPS.join("\n") +
DESIGNER_NOTE +
EXTRA_NOTE2
###
Gem::Specification.new do |spec|
spec.name = 'reterm'
spec.version = RETerm::VERSION
spec.platform = Gem::Platform::RUBY
spec.authors = ['Mo Morsi']
spec.email = ['mo@morsi.org']
spec.has_rdoc = false
spec.homepage = 'http://github.com/movitto/reterm'
spec.summary = SUMMARY
spec.description = DESCRIPTION
spec.license = "MIT"
spec.require_paths = ['lib']
spec.files = FILES
spec.add_dependency 'ruby-terminfo', '~> 0.1'
spec.add_dependency 'ncursesw', '~> 1.4' # only tested against 1.4.10, milage
# may vary with other versions!
spec.post_install_message = POST_INSTALL_MSG
end