-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathfxruby.gemspec
62 lines (55 loc) · 2.3 KB
/
fxruby.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
59
60
61
62
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'fox16/version'
SWIG_MODULES = {
"core.i" => "core_wrap.cpp",
"dcmodule.i" => "dc_wrap.cpp",
"dialogs.i" => "dialogs_wrap.cpp",
"framesmodule.i" => "frames_wrap.cpp",
"iconlistmodule.i" => "iconlist_wrap.cpp",
"icons.i" => "icons_wrap.cpp",
"image.i" => "image_wrap.cpp",
"labelmodule.i" => "label_wrap.cpp",
"layout.i" => "layout_wrap.cpp",
"listmodule.i" => "list_wrap.cpp",
"mdi.i" => "mdi_wrap.cpp",
"menumodule.i" => "menu_wrap.cpp",
"fx3d.i" => "fx3d_wrap.cpp",
"scintilla.i" => "scintilla_wrap.cpp",
"table-module.i" => "table_wrap.cpp",
"text-module.i" => "text_wrap.cpp",
"treelist-module.i" => "treelist_wrap.cpp",
"ui.i" => "ui_wrap.cpp"
}
Gem::Specification.new do |spec|
spec.name = "fxruby"
spec.version = Fox.fxrubyversion
spec.authors = ["Lyle Johnson", "Lars Kanis"]
spec.email = ["[email protected]", "[email protected]"]
spec.summary = %q{FXRuby is the Ruby binding to the FOX GUI toolkit.}
spec.homepage = "https://github.com/larskanis/fxruby"
spec.license = 'LGPL-2.1'
spec.metadata["changelog_uri"] = "https://github.com/larskanis/fxruby/blob/1.6/History.md"
spec.metadata["documentation_uri"] = "https://rubydoc.info/gems/fxruby/frames"
spec.files = `git ls-files -z`.split("\x0").reject do |f|
f=~/^fox-includes|^web/
end
spec.files += SWIG_MODULES.values.map{|f| File.join("ext/fox16_c", f) }
spec.files << 'ext/fox16_c/include/inlinestubs.h'
spec.files << 'ext/fox16_c/swigruby.h'
spec.files << 'doap.rdf'
spec.files << 'lib/fox16/kwargs.rb'
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
spec.extensions = ["ext/fox16_c/extconf.rb"]
spec.metadata['msys2_mingw_dependencies'] = 'fox'
spec.required_ruby_version = [">= 2.7", "< 4"]
spec.add_runtime_dependency 'mini_portile2', '~> 2.1'
yardopts = File.read(".yardopts")
spec.rdoc_options = ["--main", "README.md",
"--title", "FXRuby API Documentation"]
docfiles = yardopts.lines.map(&:strip).select{|r| r=~/^[^-]/ }
spec.extra_rdoc_files = `git ls-files -z #{docfiles.join(" ")}`.split("\x0")
end