mkrf 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/mkrf.rb +1 -1
- data/lib/mkrf/availability.rb +13 -5
- metadata +46 -86
- data/test/sample_files/libtrivial/ext/Rakefile +0 -43
- data/test/sample_files/libtrivial/ext/libtrivial.o +0 -0
- data/test/sample_files/libtrivial/ext/libtrivial.so +0 -0
- data/test/sample_files/libtrivial/ext/mkrf.log +0 -3
- data/test/sample_files/libxml-ruby-0.3.8/ext/xml/Rakefile +0 -43
- data/test/sample_files/libxml-ruby-0.3.8/ext/xml/cbg.o +0 -0
- data/test/sample_files/libxml-ruby-0.3.8/ext/xml/libxml.o +0 -0
- data/test/sample_files/libxml-ruby-0.3.8/ext/xml/libxml_so.so +0 -0
- data/test/sample_files/libxml-ruby-0.3.8/ext/xml/mkrf.log +0 -47
- data/test/sample_files/libxml-ruby-0.3.8/ext/xml/ruby_xml_attr.o +0 -0
- data/test/sample_files/libxml-ruby-0.3.8/ext/xml/ruby_xml_attribute.o +0 -0
- data/test/sample_files/libxml-ruby-0.3.8/ext/xml/ruby_xml_document.o +0 -0
- data/test/sample_files/libxml-ruby-0.3.8/ext/xml/ruby_xml_dtd.o +0 -0
- data/test/sample_files/libxml-ruby-0.3.8/ext/xml/ruby_xml_input_cbg.o +0 -0
- data/test/sample_files/libxml-ruby-0.3.8/ext/xml/ruby_xml_node.o +0 -0
- data/test/sample_files/libxml-ruby-0.3.8/ext/xml/ruby_xml_node_set.o +0 -0
- data/test/sample_files/libxml-ruby-0.3.8/ext/xml/ruby_xml_ns.o +0 -0
- data/test/sample_files/libxml-ruby-0.3.8/ext/xml/ruby_xml_parser.o +0 -0
- data/test/sample_files/libxml-ruby-0.3.8/ext/xml/ruby_xml_parser_context.o +0 -0
- data/test/sample_files/libxml-ruby-0.3.8/ext/xml/ruby_xml_sax_parser.o +0 -0
- data/test/sample_files/libxml-ruby-0.3.8/ext/xml/ruby_xml_schema.o +0 -0
- data/test/sample_files/libxml-ruby-0.3.8/ext/xml/ruby_xml_tree.o +0 -0
- data/test/sample_files/libxml-ruby-0.3.8/ext/xml/ruby_xml_xinclude.o +0 -0
- data/test/sample_files/libxml-ruby-0.3.8/ext/xml/ruby_xml_xpath.o +0 -0
- data/test/sample_files/libxml-ruby-0.3.8/ext/xml/ruby_xml_xpath_context.o +0 -0
- data/test/sample_files/libxml-ruby-0.3.8/ext/xml/ruby_xml_xpointer.o +0 -0
- data/test/sample_files/libxml-ruby-0.3.8/ext/xml/ruby_xml_xpointer_context.o +0 -0
- data/test/sample_files/syck-0.55/ext/ruby/ext/syck/Rakefile +0 -43
- data/test/sample_files/syck-0.55/ext/ruby/ext/syck/bytecode.o +0 -0
- data/test/sample_files/syck-0.55/ext/ruby/ext/syck/emitter.o +0 -0
- data/test/sample_files/syck-0.55/ext/ruby/ext/syck/gram.o +0 -0
- data/test/sample_files/syck-0.55/ext/ruby/ext/syck/handler.o +0 -0
- data/test/sample_files/syck-0.55/ext/ruby/ext/syck/implicit.o +0 -0
- data/test/sample_files/syck-0.55/ext/ruby/ext/syck/mkrf.log +0 -5
- data/test/sample_files/syck-0.55/ext/ruby/ext/syck/node.o +0 -0
- data/test/sample_files/syck-0.55/ext/ruby/ext/syck/rubyext.o +0 -0
- data/test/sample_files/syck-0.55/ext/ruby/ext/syck/syck.o +0 -0
- data/test/sample_files/syck-0.55/ext/ruby/ext/syck/syck.so +0 -0
- data/test/sample_files/syck-0.55/ext/ruby/ext/syck/token.o +0 -0
- data/test/sample_files/syck-0.55/ext/ruby/ext/syck/yaml2byte.o +0 -0
data/lib/mkrf.rb
CHANGED
data/lib/mkrf/availability.rb
CHANGED
@@ -9,8 +9,16 @@ module Mkrf
|
|
9
9
|
# which need to determine functionality based on what libraries are available
|
10
10
|
# on the current system.
|
11
11
|
class Availability
|
12
|
-
|
13
|
-
|
12
|
+
# ruby 1.9+
|
13
|
+
if Config::CONFIG['rubyhdrdir']
|
14
|
+
DEFAULT_INCLUDES = [Config::CONFIG['rubyhdrdir'],
|
15
|
+
Config::CONFIG['rubyhdrdir'] + "/" + Config::CONFIG['arch'],
|
16
|
+
Config::CONFIG["archdir"],Config::CONFIG['sitelibdir'], "."]
|
17
|
+
|
18
|
+
else
|
19
|
+
DEFAULT_INCLUDES = [Config::CONFIG['includedir'], Config::CONFIG["archdir"],
|
20
|
+
Config::CONFIG['sitelibdir'], "."]
|
21
|
+
end
|
14
22
|
|
15
23
|
# These really shouldn't be static like this..
|
16
24
|
TEMP_SOURCE_FILE = "temp_source.c"
|
@@ -27,12 +35,12 @@ module Mkrf
|
|
27
35
|
# * <tt>:compiler</tt> -- which compiler to use when determining availability
|
28
36
|
# * <tt>:includes</tt> -- directories that should be searched for include files
|
29
37
|
def initialize(options = {})
|
30
|
-
@loaded_libs = (options[:loaded_libs] || Config::CONFIG["LIBS"].gsub('-l', '').split).
|
31
|
-
@library_paths = (options[:library_paths] ||
|
38
|
+
@loaded_libs = [(options[:loaded_libs] || Config::CONFIG["LIBS"].gsub('-l', '').split)].flatten
|
39
|
+
@library_paths = [(options[:library_paths] || [])].flatten
|
32
40
|
# Not sure what COMMON_HEADERS looks like when populated
|
33
41
|
@headers = options[:headers] || [] # Config::CONFIG["COMMON_HEADERS"]
|
34
42
|
@compiler = options[:compiler] || Config::CONFIG["CC"]
|
35
|
-
@includes = (options[:includes] || DEFAULT_INCLUDES).
|
43
|
+
@includes = [(options[:includes] || DEFAULT_INCLUDES)].flatten
|
36
44
|
@logger = Logger.new('mkrf.log')
|
37
45
|
@defines = []
|
38
46
|
end
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
|
|
3
3
|
specification_version: 1
|
4
4
|
name: mkrf
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.2.
|
7
|
-
date:
|
6
|
+
version: 0.2.3
|
7
|
+
date: 2008-01-06 00:00:00 +09:00
|
8
8
|
summary: Generate Rakefiles to Build C Extensions to Ruby
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -34,24 +34,15 @@ files:
|
|
34
34
|
- CHANGELOG
|
35
35
|
- MIT-LICENSE
|
36
36
|
- lib/mkrf
|
37
|
-
- lib/mkrf.rb
|
38
37
|
- lib/mkrf/rakehelper.rb
|
39
38
|
- lib/mkrf/generator.rb
|
40
39
|
- lib/mkrf/availability.rb
|
40
|
+
- lib/mkrf.rb
|
41
41
|
- test/integration
|
42
|
-
- test/sample_files
|
43
|
-
- test/fixtures
|
44
|
-
- test/unit
|
45
|
-
- test/abstract_unit.rb
|
46
42
|
- test/integration/test_sample_projects.rb
|
43
|
+
- test/sample_files
|
47
44
|
- test/sample_files/libxml-ruby-0.3.8
|
48
|
-
- test/sample_files/syck-0.55
|
49
|
-
- test/sample_files/libtrivial
|
50
|
-
- test/sample_files/cpp_bang
|
51
45
|
- test/sample_files/libxml-ruby-0.3.8/ext
|
52
|
-
- test/sample_files/libxml-ruby-0.3.8/CHANGELOG
|
53
|
-
- test/sample_files/libxml-ruby-0.3.8/README
|
54
|
-
- test/sample_files/libxml-ruby-0.3.8/LICENSE
|
55
46
|
- test/sample_files/libxml-ruby-0.3.8/ext/xml
|
56
47
|
- test/sample_files/libxml-ruby-0.3.8/ext/xml/libxml.rb
|
57
48
|
- test/sample_files/libxml-ruby-0.3.8/ext/xml/ruby_xml_node.c
|
@@ -96,60 +87,13 @@ files:
|
|
96
87
|
- test/sample_files/libxml-ruby-0.3.8/ext/xml/ruby_xml_dtd.c
|
97
88
|
- test/sample_files/libxml-ruby-0.3.8/ext/xml/ruby_xml_schema.h
|
98
89
|
- test/sample_files/libxml-ruby-0.3.8/ext/xml/ruby_xml_parser_context.c
|
99
|
-
- test/sample_files/libxml-ruby-0.3.8/
|
100
|
-
- test/sample_files/libxml-ruby-0.3.8/
|
101
|
-
- test/sample_files/libxml-ruby-0.3.8/
|
102
|
-
- test/sample_files/
|
103
|
-
- test/sample_files/libxml-ruby-0.3.8/ext/xml/ruby_xml_schema.o
|
104
|
-
- test/sample_files/libxml-ruby-0.3.8/ext/xml/ruby_xml_input_cbg.o
|
105
|
-
- test/sample_files/libxml-ruby-0.3.8/ext/xml/ruby_xml_xpath_context.o
|
106
|
-
- test/sample_files/libxml-ruby-0.3.8/ext/xml/ruby_xml_xpointer.o
|
107
|
-
- test/sample_files/libxml-ruby-0.3.8/ext/xml/ruby_xml_xinclude.o
|
108
|
-
- test/sample_files/libxml-ruby-0.3.8/ext/xml/ruby_xml_attr.o
|
109
|
-
- test/sample_files/libxml-ruby-0.3.8/ext/xml/ruby_xml_ns.o
|
110
|
-
- test/sample_files/libxml-ruby-0.3.8/ext/xml/ruby_xml_tree.o
|
111
|
-
- test/sample_files/libxml-ruby-0.3.8/ext/xml/cbg.o
|
112
|
-
- test/sample_files/libxml-ruby-0.3.8/ext/xml/libxml.o
|
113
|
-
- test/sample_files/libxml-ruby-0.3.8/ext/xml/ruby_xml_document.o
|
114
|
-
- test/sample_files/libxml-ruby-0.3.8/ext/xml/ruby_xml_parser.o
|
115
|
-
- test/sample_files/libxml-ruby-0.3.8/ext/xml/ruby_xml_xpath.o
|
116
|
-
- test/sample_files/libxml-ruby-0.3.8/ext/xml/ruby_xml_sax_parser.o
|
117
|
-
- test/sample_files/libxml-ruby-0.3.8/ext/xml/ruby_xml_attribute.o
|
118
|
-
- test/sample_files/libxml-ruby-0.3.8/ext/xml/ruby_xml_xpointer_context.o
|
119
|
-
- test/sample_files/libxml-ruby-0.3.8/ext/xml/ruby_xml_dtd.o
|
120
|
-
- test/sample_files/libxml-ruby-0.3.8/ext/xml/ruby_xml_parser_context.o
|
121
|
-
- test/sample_files/libxml-ruby-0.3.8/ext/xml/libxml_so.so
|
90
|
+
- test/sample_files/libxml-ruby-0.3.8/CHANGELOG
|
91
|
+
- test/sample_files/libxml-ruby-0.3.8/README
|
92
|
+
- test/sample_files/libxml-ruby-0.3.8/LICENSE
|
93
|
+
- test/sample_files/syck-0.55
|
122
94
|
- test/sample_files/syck-0.55/ext
|
123
|
-
- test/sample_files/syck-0.55/tests
|
124
|
-
- test/sample_files/syck-0.55/config
|
125
|
-
- test/sample_files/syck-0.55/lib
|
126
|
-
- test/sample_files/syck-0.55/CHANGELOG
|
127
|
-
- test/sample_files/syck-0.55/configure.in
|
128
|
-
- test/sample_files/syck-0.55/configure
|
129
|
-
- test/sample_files/syck-0.55/TODO
|
130
|
-
- test/sample_files/syck-0.55/config.h
|
131
|
-
- test/sample_files/syck-0.55/config.status
|
132
|
-
- test/sample_files/syck-0.55/README
|
133
|
-
- test/sample_files/syck-0.55/aclocal.m4
|
134
|
-
- test/sample_files/syck-0.55/RELEASE
|
135
|
-
- test/sample_files/syck-0.55/Makefile.am
|
136
|
-
- test/sample_files/syck-0.55/config.h.in
|
137
|
-
- test/sample_files/syck-0.55/README.BYTECODE
|
138
|
-
- test/sample_files/syck-0.55/Makefile.in
|
139
|
-
- test/sample_files/syck-0.55/bootstrap
|
140
|
-
- test/sample_files/syck-0.55/README.EXT
|
141
|
-
- test/sample_files/syck-0.55/Makefile
|
142
|
-
- test/sample_files/syck-0.55/stamp-h1
|
143
|
-
- test/sample_files/syck-0.55/COPYING
|
144
95
|
- test/sample_files/syck-0.55/ext/ruby
|
145
96
|
- test/sample_files/syck-0.55/ext/ruby/ext
|
146
|
-
- test/sample_files/syck-0.55/ext/ruby/tests
|
147
|
-
- test/sample_files/syck-0.55/ext/ruby/samples
|
148
|
-
- test/sample_files/syck-0.55/ext/ruby/lib
|
149
|
-
- test/sample_files/syck-0.55/ext/ruby/yts
|
150
|
-
- test/sample_files/syck-0.55/ext/ruby/CHANGELOG
|
151
|
-
- test/sample_files/syck-0.55/ext/ruby/install.rb
|
152
|
-
- test/sample_files/syck-0.55/ext/ruby/README
|
153
97
|
- test/sample_files/syck-0.55/ext/ruby/ext/syck
|
154
98
|
- test/sample_files/syck-0.55/ext/ruby/ext/syck/gram.c
|
155
99
|
- test/sample_files/syck-0.55/ext/ruby/ext/syck/bytecode.c
|
@@ -166,33 +110,20 @@ files:
|
|
166
110
|
- test/sample_files/syck-0.55/ext/ruby/ext/syck/extconf.rb
|
167
111
|
- test/sample_files/syck-0.55/ext/ruby/ext/syck/node.c
|
168
112
|
- test/sample_files/syck-0.55/ext/ruby/ext/syck/syck.h
|
169
|
-
- test/sample_files/syck-0.55/ext/ruby/
|
170
|
-
- test/sample_files/syck-0.55/ext/ruby/ext/syck/Rakefile
|
171
|
-
- test/sample_files/syck-0.55/ext/ruby/ext/syck/rubyext.o
|
172
|
-
- test/sample_files/syck-0.55/ext/ruby/ext/syck/gram.o
|
173
|
-
- test/sample_files/syck-0.55/ext/ruby/ext/syck/bytecode.o
|
174
|
-
- test/sample_files/syck-0.55/ext/ruby/ext/syck/yaml2byte.o
|
175
|
-
- test/sample_files/syck-0.55/ext/ruby/ext/syck/implicit.o
|
176
|
-
- test/sample_files/syck-0.55/ext/ruby/ext/syck/syck.o
|
177
|
-
- test/sample_files/syck-0.55/ext/ruby/ext/syck/emitter.o
|
178
|
-
- test/sample_files/syck-0.55/ext/ruby/ext/syck/token.o
|
179
|
-
- test/sample_files/syck-0.55/ext/ruby/ext/syck/handler.o
|
180
|
-
- test/sample_files/syck-0.55/ext/ruby/ext/syck/node.o
|
181
|
-
- test/sample_files/syck-0.55/ext/ruby/ext/syck/syck.so
|
113
|
+
- test/sample_files/syck-0.55/ext/ruby/tests
|
182
114
|
- test/sample_files/syck-0.55/ext/ruby/tests/basic.rb
|
115
|
+
- test/sample_files/syck-0.55/ext/ruby/samples
|
183
116
|
- test/sample_files/syck-0.55/ext/ruby/samples/yaml-sortHashKeys.rb
|
184
117
|
- test/sample_files/syck-0.55/ext/ruby/samples/okayNews-sample.rb
|
185
118
|
- test/sample_files/syck-0.55/ext/ruby/samples/okayNews-validate.rb
|
186
119
|
- test/sample_files/syck-0.55/ext/ruby/samples/okayNews-modules.rb
|
187
120
|
- test/sample_files/syck-0.55/ext/ruby/samples/okayRpc-client.rb
|
188
121
|
- test/sample_files/syck-0.55/ext/ruby/samples/okayRpc-server.rb
|
122
|
+
- test/sample_files/syck-0.55/ext/ruby/lib
|
189
123
|
- test/sample_files/syck-0.55/ext/ruby/lib/okay
|
190
|
-
- test/sample_files/syck-0.55/ext/ruby/lib/yaml
|
191
|
-
- test/sample_files/syck-0.55/ext/ruby/lib/yaml.rb
|
192
|
-
- test/sample_files/syck-0.55/ext/ruby/lib/okay.rb
|
193
|
-
- test/sample_files/syck-0.55/ext/ruby/lib/yod.rb
|
194
124
|
- test/sample_files/syck-0.55/ext/ruby/lib/okay/rpc.rb
|
195
125
|
- test/sample_files/syck-0.55/ext/ruby/lib/okay/news.rb
|
126
|
+
- test/sample_files/syck-0.55/ext/ruby/lib/yaml
|
196
127
|
- test/sample_files/syck-0.55/ext/ruby/lib/yaml/tag.rb
|
197
128
|
- test/sample_files/syck-0.55/ext/ruby/lib/yaml/ypath.rb
|
198
129
|
- test/sample_files/syck-0.55/ext/ruby/lib/yaml/encoding.rb
|
@@ -210,6 +141,10 @@ files:
|
|
210
141
|
- test/sample_files/syck-0.55/ext/ruby/lib/yaml/store.rb
|
211
142
|
- test/sample_files/syck-0.55/ext/ruby/lib/yaml/yamlnode.rb
|
212
143
|
- test/sample_files/syck-0.55/ext/ruby/lib/yaml/basenode.rb
|
144
|
+
- test/sample_files/syck-0.55/ext/ruby/lib/yaml.rb
|
145
|
+
- test/sample_files/syck-0.55/ext/ruby/lib/okay.rb
|
146
|
+
- test/sample_files/syck-0.55/ext/ruby/lib/yod.rb
|
147
|
+
- test/sample_files/syck-0.55/ext/ruby/yts
|
213
148
|
- test/sample_files/syck-0.55/ext/ruby/yts/YtsFlowCollections.yml
|
214
149
|
- test/sample_files/syck-0.55/ext/ruby/yts/YtsNullsAndEmpties.yml
|
215
150
|
- test/sample_files/syck-0.55/ext/ruby/yts/YtsMapInSeq.yml
|
@@ -227,6 +162,10 @@ files:
|
|
227
162
|
- test/sample_files/syck-0.55/ext/ruby/yts/YtsRubyTests.yml
|
228
163
|
- test/sample_files/syck-0.55/ext/ruby/yts/YtsBlockSequence.yml
|
229
164
|
- test/sample_files/syck-0.55/ext/ruby/yts/YtsErrorTests.yml
|
165
|
+
- test/sample_files/syck-0.55/ext/ruby/CHANGELOG
|
166
|
+
- test/sample_files/syck-0.55/ext/ruby/install.rb
|
167
|
+
- test/sample_files/syck-0.55/ext/ruby/README
|
168
|
+
- test/sample_files/syck-0.55/tests
|
230
169
|
- test/sample_files/syck-0.55/tests/Basic.c
|
231
170
|
- test/sample_files/syck-0.55/tests/CuTest.c
|
232
171
|
- test/sample_files/syck-0.55/tests/Parse.c
|
@@ -238,10 +177,12 @@ files:
|
|
238
177
|
- test/sample_files/syck-0.55/tests/YTS.c
|
239
178
|
- test/sample_files/syck-0.55/tests/YTS.c.erb
|
240
179
|
- test/sample_files/syck-0.55/tests/Emit.c
|
180
|
+
- test/sample_files/syck-0.55/config
|
241
181
|
- test/sample_files/syck-0.55/config/install-sh
|
242
182
|
- test/sample_files/syck-0.55/config/README
|
243
183
|
- test/sample_files/syck-0.55/config/missing
|
244
184
|
- test/sample_files/syck-0.55/config/depcomp
|
185
|
+
- test/sample_files/syck-0.55/lib
|
245
186
|
- test/sample_files/syck-0.55/lib/token.re
|
246
187
|
- test/sample_files/syck-0.55/lib/gram.c
|
247
188
|
- test/sample_files/syck-0.55/lib/bytecode.c
|
@@ -264,22 +205,41 @@ files:
|
|
264
205
|
- test/sample_files/syck-0.55/lib/syck.h
|
265
206
|
- test/sample_files/syck-0.55/lib/gram.y
|
266
207
|
- test/sample_files/syck-0.55/lib/syck_st.h
|
208
|
+
- test/sample_files/syck-0.55/CHANGELOG
|
209
|
+
- test/sample_files/syck-0.55/configure.in
|
210
|
+
- test/sample_files/syck-0.55/configure
|
211
|
+
- test/sample_files/syck-0.55/TODO
|
212
|
+
- test/sample_files/syck-0.55/config.h
|
213
|
+
- test/sample_files/syck-0.55/config.status
|
214
|
+
- test/sample_files/syck-0.55/README
|
215
|
+
- test/sample_files/syck-0.55/aclocal.m4
|
216
|
+
- test/sample_files/syck-0.55/RELEASE
|
217
|
+
- test/sample_files/syck-0.55/Makefile.am
|
218
|
+
- test/sample_files/syck-0.55/config.h.in
|
219
|
+
- test/sample_files/syck-0.55/README.BYTECODE
|
220
|
+
- test/sample_files/syck-0.55/Makefile.in
|
221
|
+
- test/sample_files/syck-0.55/bootstrap
|
222
|
+
- test/sample_files/syck-0.55/README.EXT
|
223
|
+
- test/sample_files/syck-0.55/Makefile
|
224
|
+
- test/sample_files/syck-0.55/stamp-h1
|
225
|
+
- test/sample_files/syck-0.55/COPYING
|
226
|
+
- test/sample_files/libtrivial
|
267
227
|
- test/sample_files/libtrivial/ext
|
268
228
|
- test/sample_files/libtrivial/ext/libtrivial.c
|
269
229
|
- test/sample_files/libtrivial/ext/extconf.rb
|
270
|
-
- test/sample_files/
|
271
|
-
- test/sample_files/libtrivial/ext/Rakefile
|
272
|
-
- test/sample_files/libtrivial/ext/libtrivial.o
|
273
|
-
- test/sample_files/libtrivial/ext/libtrivial.so
|
230
|
+
- test/sample_files/cpp_bang
|
274
231
|
- test/sample_files/cpp_bang/ext
|
275
232
|
- test/sample_files/cpp_bang/ext/bang.cpp
|
276
233
|
- test/sample_files/cpp_bang/ext/mkrf_config.rb
|
234
|
+
- test/fixtures
|
277
235
|
- test/fixtures/down_a_directory
|
236
|
+
- test/fixtures/down_a_directory/header_down_a_directory.h
|
278
237
|
- test/fixtures/stdmkrf.h
|
279
238
|
- test/fixtures/some_binary
|
280
|
-
- test/
|
239
|
+
- test/unit
|
281
240
|
- test/unit/test_generator.rb
|
282
241
|
- test/unit/test_availability.rb
|
242
|
+
- test/abstract_unit.rb
|
283
243
|
test_files: []
|
284
244
|
|
285
245
|
rdoc_options:
|
@@ -1,43 +0,0 @@
|
|
1
|
-
# Generated by mkrf
|
2
|
-
require 'rake/clean'
|
3
|
-
|
4
|
-
CLEAN.include('*.o')
|
5
|
-
CLOBBER.include('libtrivial.so', 'mkrf.log')
|
6
|
-
|
7
|
-
SRC = FileList['*.c']
|
8
|
-
OBJ = SRC.ext('o')
|
9
|
-
CC = 'gcc'
|
10
|
-
|
11
|
-
ADDITIONAL_OBJECTS = ''
|
12
|
-
|
13
|
-
LDSHARED = "gcc -shared "
|
14
|
-
|
15
|
-
LIBPATH = "-L/usr/lib "
|
16
|
-
|
17
|
-
INCLUDES = "-I/usr/include -I/usr/lib/ruby/1.8/i486-linux -I/usr/local/lib/site_ruby/1.8 -I."
|
18
|
-
|
19
|
-
LIBS = "-lpthread -ldl -lcrypt -lm"
|
20
|
-
|
21
|
-
CFLAGS = " -fPIC -Wall -g -fno-strict-aliasing -O2 -fPIC "
|
22
|
-
|
23
|
-
RUBYARCHDIR = "#{ENV["RUBYARCHDIR"]}"
|
24
|
-
LIBRUBYARG_SHARED = "-lruby1.8"
|
25
|
-
|
26
|
-
task :default => ['libtrivial.so']
|
27
|
-
|
28
|
-
rule '.o' => '.c' do |t|
|
29
|
-
sh "#{CC} #{CFLAGS} #{INCLUDES} -c #{t.source}"
|
30
|
-
end
|
31
|
-
|
32
|
-
desc "Build this extension"
|
33
|
-
file 'libtrivial.so' => OBJ do
|
34
|
-
sh "#{LDSHARED} #{LIBPATH} -o libtrivial.so #{OBJ} #{ADDITIONAL_OBJECTS} #{LIBS} #{LIBRUBYARG_SHARED}"
|
35
|
-
end
|
36
|
-
|
37
|
-
desc "Install this extension"
|
38
|
-
task :install => 'libtrivial.so' do
|
39
|
-
makedirs "#{RUBYARCHDIR}"
|
40
|
-
install "libtrivial.so", "#{RUBYARCHDIR}"
|
41
|
-
end
|
42
|
-
|
43
|
-
|
Binary file
|
Binary file
|
@@ -1,43 +0,0 @@
|
|
1
|
-
# Generated by mkrf
|
2
|
-
require 'rake/clean'
|
3
|
-
|
4
|
-
CLEAN.include('*.o')
|
5
|
-
CLOBBER.include('libxml_so.so', 'mkrf.log')
|
6
|
-
|
7
|
-
SRC = FileList['*.c']
|
8
|
-
OBJ = SRC.ext('o')
|
9
|
-
CC = 'gcc'
|
10
|
-
|
11
|
-
ADDITIONAL_OBJECTS = ''
|
12
|
-
|
13
|
-
LDSHARED = "gcc -shared "
|
14
|
-
|
15
|
-
LIBPATH = "-L/usr/lib "
|
16
|
-
|
17
|
-
INCLUDES = "-I/usr/include -I/usr/lib/ruby/1.8/i486-linux -I/usr/local/lib/site_ruby/1.8 -I. -I/usr/include/libxml2"
|
18
|
-
|
19
|
-
LIBS = "-lpthread -ldl -lcrypt -lm -lnsl -lz -lc -lxml2 -lxml2"
|
20
|
-
|
21
|
-
CFLAGS = " -fPIC -Wall -g -fno-strict-aliasing -O2 -fPIC -DHAVE_ZLIB_H -DHAVE_LIBXML_XMLVERSION_H"
|
22
|
-
|
23
|
-
RUBYARCHDIR = "#{ENV["RUBYARCHDIR"]}"
|
24
|
-
LIBRUBYARG_SHARED = "-lruby1.8"
|
25
|
-
|
26
|
-
task :default => ['libxml_so.so']
|
27
|
-
|
28
|
-
rule '.o' => '.c' do |t|
|
29
|
-
sh "#{CC} #{CFLAGS} #{INCLUDES} -c #{t.source}"
|
30
|
-
end
|
31
|
-
|
32
|
-
desc "Build this extension"
|
33
|
-
file 'libxml_so.so' => OBJ do
|
34
|
-
sh "#{LDSHARED} #{LIBPATH} -o libxml_so.so #{OBJ} #{ADDITIONAL_OBJECTS} #{LIBS} #{LIBRUBYARG_SHARED}"
|
35
|
-
end
|
36
|
-
|
37
|
-
desc "Install this extension"
|
38
|
-
task :install => 'libxml_so.so' do
|
39
|
-
makedirs "#{RUBYARCHDIR}"
|
40
|
-
install "libxml_so.so", "#{RUBYARCHDIR}"
|
41
|
-
end
|
42
|
-
|
43
|
-
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,47 +0,0 @@
|
|
1
|
-
# Logfile created on Wed Jul 18 08:51:58 +0900 2007 by logger.rb/1.5.2.9
|
2
|
-
I, [2007-07-18T08:51:58.965489 #26069] INFO -- : Checking for library: socket
|
3
|
-
W, [2007-07-18T08:51:59.005838 #26069] WARN -- : Function not found: socket()
|
4
|
-
W, [2007-07-18T08:51:59.005977 #26069] WARN -- : Library not found: socket
|
5
|
-
I, [2007-07-18T08:51:59.006065 #26069] INFO -- : Checking for library: nsl
|
6
|
-
I, [2007-07-18T08:51:59.071232 #26069] INFO -- : Function found: gethostbyname()
|
7
|
-
I, [2007-07-18T08:51:59.071373 #26069] INFO -- : Library found: nsl
|
8
|
-
I, [2007-07-18T08:51:59.071460 #26069] INFO -- : Checking for library: z
|
9
|
-
I, [2007-07-18T08:51:59.128352 #26069] INFO -- : Function found: inflate()
|
10
|
-
I, [2007-07-18T08:51:59.128495 #26069] INFO -- : Library found: z
|
11
|
-
I, [2007-07-18T08:51:59.128580 #26069] INFO -- : Checking for library: iconv
|
12
|
-
W, [2007-07-18T08:51:59.184066 #26069] WARN -- : Function not found: iconv_open()
|
13
|
-
W, [2007-07-18T08:51:59.184258 #26069] WARN -- : Library not found: iconv
|
14
|
-
I, [2007-07-18T08:51:59.184346 #26069] INFO -- : Checking for library: c
|
15
|
-
I, [2007-07-18T08:51:59.248856 #26069] INFO -- : Function found: iconv_open()
|
16
|
-
I, [2007-07-18T08:51:59.249016 #26069] INFO -- : Library found: c
|
17
|
-
I, [2007-07-18T08:51:59.249223 #26069] INFO -- : Checking for library: xml2
|
18
|
-
I, [2007-07-18T08:51:59.319904 #26069] INFO -- : Function found: xmlParseDoc()
|
19
|
-
I, [2007-07-18T08:51:59.320072 #26069] INFO -- : Library found: xml2
|
20
|
-
I, [2007-07-18T08:51:59.430908 #26069] INFO -- : Header found: libxml/xmlversion.h
|
21
|
-
I, [2007-07-18T08:51:59.431078 #26069] INFO -- : Checking for library: xml2
|
22
|
-
I, [2007-07-18T08:51:59.431142 #26069] INFO -- : Library already loaded: xml2
|
23
|
-
I, [2007-07-18T08:51:59.495697 #26069] INFO -- : Function found: docbCreateFileParserCtxt()
|
24
|
-
I, [2007-07-18T08:51:59.496539 #26069] INFO -- : Rakefile written
|
25
|
-
I, [2007-07-18T08:52:30.900937 #26373] INFO -- : Checking for library: socket
|
26
|
-
W, [2007-07-18T08:52:30.939047 #26373] WARN -- : Function not found: socket()
|
27
|
-
W, [2007-07-18T08:52:30.939167 #26373] WARN -- : Library not found: socket
|
28
|
-
I, [2007-07-18T08:52:30.939238 #26373] INFO -- : Checking for library: nsl
|
29
|
-
I, [2007-07-18T08:52:30.989344 #26373] INFO -- : Function found: gethostbyname()
|
30
|
-
I, [2007-07-18T08:52:30.989468 #26373] INFO -- : Library found: nsl
|
31
|
-
I, [2007-07-18T08:52:30.989541 #26373] INFO -- : Checking for library: z
|
32
|
-
I, [2007-07-18T08:52:31.041133 #26373] INFO -- : Function found: inflate()
|
33
|
-
I, [2007-07-18T08:52:31.041259 #26373] INFO -- : Library found: z
|
34
|
-
I, [2007-07-18T08:52:31.041335 #26373] INFO -- : Checking for library: iconv
|
35
|
-
W, [2007-07-18T08:52:31.081884 #26373] WARN -- : Function not found: iconv_open()
|
36
|
-
W, [2007-07-18T08:52:31.093045 #26373] WARN -- : Library not found: iconv
|
37
|
-
I, [2007-07-18T08:52:31.093128 #26373] INFO -- : Checking for library: c
|
38
|
-
I, [2007-07-18T08:52:31.151068 #26373] INFO -- : Function found: iconv_open()
|
39
|
-
I, [2007-07-18T08:52:31.151204 #26373] INFO -- : Library found: c
|
40
|
-
I, [2007-07-18T08:52:31.151279 #26373] INFO -- : Checking for library: xml2
|
41
|
-
I, [2007-07-18T08:52:31.215566 #26373] INFO -- : Function found: xmlParseDoc()
|
42
|
-
I, [2007-07-18T08:52:31.215708 #26373] INFO -- : Library found: xml2
|
43
|
-
I, [2007-07-18T08:52:31.321932 #26373] INFO -- : Header found: libxml/xmlversion.h
|
44
|
-
I, [2007-07-18T08:52:31.322115 #26373] INFO -- : Checking for library: xml2
|
45
|
-
I, [2007-07-18T08:52:31.322176 #26373] INFO -- : Library already loaded: xml2
|
46
|
-
I, [2007-07-18T08:52:31.385246 #26373] INFO -- : Function found: docbCreateFileParserCtxt()
|
47
|
-
I, [2007-07-18T08:52:31.386239 #26373] INFO -- : Rakefile written
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,43 +0,0 @@
|
|
1
|
-
# Generated by mkrf
|
2
|
-
require 'rake/clean'
|
3
|
-
|
4
|
-
CLEAN.include('*.o')
|
5
|
-
CLOBBER.include('syck.so', 'mkrf.log')
|
6
|
-
|
7
|
-
SRC = FileList['*.c']
|
8
|
-
OBJ = SRC.ext('o')
|
9
|
-
CC = 'gcc'
|
10
|
-
|
11
|
-
ADDITIONAL_OBJECTS = ''
|
12
|
-
|
13
|
-
LDSHARED = "gcc -shared "
|
14
|
-
|
15
|
-
LIBPATH = "-L/usr/lib "
|
16
|
-
|
17
|
-
INCLUDES = "-I/usr/include -I/usr/lib/ruby/1.8/i486-linux -I/usr/local/lib/site_ruby/1.8 -I."
|
18
|
-
|
19
|
-
LIBS = "-lpthread -ldl -lcrypt -lm"
|
20
|
-
|
21
|
-
CFLAGS = " -fPIC -Wall -g -fno-strict-aliasing -O2 -fPIC -DHAVE_ST_H"
|
22
|
-
|
23
|
-
RUBYARCHDIR = "#{ENV["RUBYARCHDIR"]}"
|
24
|
-
LIBRUBYARG_SHARED = "-lruby1.8"
|
25
|
-
|
26
|
-
task :default => ['syck.so']
|
27
|
-
|
28
|
-
rule '.o' => '.c' do |t|
|
29
|
-
sh "#{CC} #{CFLAGS} #{INCLUDES} -c #{t.source}"
|
30
|
-
end
|
31
|
-
|
32
|
-
desc "Build this extension"
|
33
|
-
file 'syck.so' => OBJ do
|
34
|
-
sh "#{LDSHARED} #{LIBPATH} -o syck.so #{OBJ} #{ADDITIONAL_OBJECTS} #{LIBS} #{LIBRUBYARG_SHARED}"
|
35
|
-
end
|
36
|
-
|
37
|
-
desc "Install this extension"
|
38
|
-
task :install => 'syck.so' do
|
39
|
-
makedirs "#{RUBYARCHDIR}"
|
40
|
-
install "syck.so", "#{RUBYARCHDIR}"
|
41
|
-
end
|
42
|
-
|
43
|
-
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,5 +0,0 @@
|
|
1
|
-
# Logfile created on Wed Jul 18 08:52:04 +0900 2007 by logger.rb/1.5.2.9
|
2
|
-
I, [2007-07-18T08:52:04.386804 #26187] INFO -- : Header found: st.h
|
3
|
-
I, [2007-07-18T08:52:04.387435 #26187] INFO -- : Rakefile written
|
4
|
-
I, [2007-07-18T08:52:31.793730 #26426] INFO -- : Header found: st.h
|
5
|
-
I, [2007-07-18T08:52:31.798322 #26426] INFO -- : Rakefile written
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|