-
Notifications
You must be signed in to change notification settings - Fork 0
/
rice.gemspec
98 lines (84 loc) · 2.1 KB
/
rice.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
$spec = Gem::Specification.new do |s|
s.name = PROJECT_NAME
s.version = Rice::VERSION
s.summary = 'Ruby Interface for C++ Extensions'
s.homepage = 'http://rice.rubyforge.org/'
s.rubyforge_project = PROJECT_NAME
s.author = 'Paul Brannan'
s.email = '[email protected]'
s.description = <<-END
Rice is a C++ interface to Ruby's C API. It provides a type-safe and
exception-safe interface in order to make embedding Ruby and writing
Ruby extensions with C++ easier. It is similar to Boost.Python in many
ways, but also attempts to provide an object-oriented interface to all
of the Ruby C API.
END
patterns = [
# Documentation
'COPYING',
'README',
'README.mingw',
# Doxygen
'Doxyfile',
'doxygen.ac',
'doxygen.am',
'extconf.rb',
# Autoconf
'bootstrap',
'configure.ac',
'configure',
'config.guess',
'config.sub',
'depcomp',
'doxygen.ac',
'doxygen.am',
'install-sh',
'missing',
'post-autoconf.rb',
'post-automake.rb',
'ruby.ac',
'aclocal.m4',
# Makefiles
'Rakefile',
'Makefile.am',
'Makefile.in',
'rice/Makefile.am',
'rice/Makefile.in',
'ruby/Makefile.am',
'ruby/Makefile.in',
'ruby/lib/Makefile.am',
'ruby/lib/Makefile.in',
'sample/Makefile.am',
'sample/Makefile.in',
'test/Makefile.am',
'test/Makefile.in',
# C++ source files
'rice/*.?pp',
'rice/*.rb',
'rice/config.hpp.in',
'rice/detail/*.?pp',
'rice/detail/ruby_version_code.hpp.in',
# Library files
'ruby/lib/mkmf-rice.rb.in',
'ruby/lib/version.rb',
# Samples
'sample/enum/extconf.rb',
'sample/enum/*.?pp',
'sample/enum/*.rb',
'sample/map/extconf.rb',
'sample/map/*.?pp',
'sample/map/*.rb',
'sample/inheritance/extconf.rb',
'sample/inheritance/*.?pp',
'sample/inheritance/*.rb',
# Test source files
'test/*.?pp',
]
s.files = patterns.collect { |p| Dir.glob(p) }.flatten
s.extensions = ['extconf.rb']
s.test_files = [
'test/test_rice.rb',
]
s.extra_rdoc_files = [ 'README' ]
s.require_paths = [ 'ruby/lib' ]
end