rubber-generate 0.0.17 → 0.0.18
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rubber/mkextconf.rb +14 -4
- data/lib/rubber/version.rb +1 -1
- metadata +38 -25
data/lib/rubber/mkextconf.rb
CHANGED
@@ -30,16 +30,26 @@ EOMK
|
|
30
30
|
io << " glib2" if scanner.options.glib
|
31
31
|
io << " gdk_pixbuf2 atk gtk2" if scanner.options.gtk
|
32
32
|
io.write <<-EOX
|
33
|
-
|
34
|
-
|
35
|
-
|
33
|
+
].each do |package|
|
34
|
+
require package
|
35
|
+
if Gem.loaded_specs[package]
|
36
|
+
$CFLAGS += " -I" + Gem.loaded_specs[package].full_gem_path + "/ext/" + package
|
37
|
+
else
|
38
|
+
if fn = $".find { |n| n.sub(/[.](so|rb)$/,'') == package }
|
39
|
+
dr = $:.find { |d| File.exist?(File.join(d, fn)) }
|
40
|
+
pt = File.join(dr,fn) if dr && fn
|
41
|
+
else
|
42
|
+
pt = "??"
|
43
|
+
end
|
44
|
+
STDERR.puts "require '" + package + "' loaded '"+pt+"' instead of the gem - trying to continue, but build may fail"
|
45
|
+
end
|
36
46
|
end
|
37
47
|
end
|
38
48
|
EOX
|
39
49
|
|
40
50
|
io.write <<-EOY
|
41
51
|
if RbConfig::CONFIG.has_key?('rubyhdrdir')
|
42
|
-
$CFLAGS += " -I" + RbConfig::CONFIG['rubyhdrdir']+'/ruby'
|
52
|
+
$CFLAGS += " -I" + RbConfig::CONFIG['rubyhdrdir']+'/ruby'
|
43
53
|
end
|
44
54
|
|
45
55
|
$CFLAGS += " -I."
|
data/lib/rubber/version.rb
CHANGED
metadata
CHANGED
@@ -1,27 +1,32 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubber-generate
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 59
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 18
|
10
|
+
version: 0.0.18
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Geoff Youngs
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
17
|
+
|
18
|
+
date: 2013-06-14 00:00:00 Z
|
13
19
|
dependencies: []
|
14
|
-
|
15
|
-
|
16
|
-
\ It allows C code to be written in the context of a ruby style class/method layout\n
|
17
|
-
\ and eases type checking and conversion between Ruby & C datatypes.\n"
|
20
|
+
|
21
|
+
description: " rubber-c-binder allows a rubyish means of generating bindings for C libraries,\n including (but not limited to) GObject based libraries.\n\n It allows C code to be written in the context of a ruby style class/method layout\n and eases type checking and conversion between Ruby & C datatypes.\n"
|
18
22
|
email: g@intersect-uk.co.uk
|
19
|
-
executables:
|
23
|
+
executables:
|
20
24
|
- rubber-generate
|
21
25
|
extensions: []
|
22
|
-
|
26
|
+
|
27
|
+
extra_rdoc_files:
|
23
28
|
- README.textile
|
24
|
-
files:
|
29
|
+
files:
|
25
30
|
- bin/rubber-generate
|
26
31
|
- lib/rubber/codegen/param.rb
|
27
32
|
- lib/rubber/codegen/ginterface.rb
|
@@ -51,28 +56,36 @@ files:
|
|
51
56
|
- example/vte.cr
|
52
57
|
homepage: http://github.com/geoffyoungs/rubber-generate
|
53
58
|
licenses: []
|
59
|
+
|
54
60
|
post_install_message:
|
55
61
|
rdoc_options: []
|
56
|
-
|
62
|
+
|
63
|
+
require_paths:
|
57
64
|
- lib
|
58
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
65
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
59
66
|
none: false
|
60
|
-
requirements:
|
61
|
-
- -
|
62
|
-
- !ruby/object:Gem::Version
|
63
|
-
|
64
|
-
|
67
|
+
requirements:
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
hash: 3
|
71
|
+
segments:
|
72
|
+
- 0
|
73
|
+
version: "0"
|
74
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
65
75
|
none: false
|
66
|
-
requirements:
|
67
|
-
- -
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
|
76
|
+
requirements:
|
77
|
+
- - ">="
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
hash: 3
|
80
|
+
segments:
|
81
|
+
- 0
|
82
|
+
version: "0"
|
70
83
|
requirements: []
|
84
|
+
|
71
85
|
rubyforge_project:
|
72
86
|
rubygems_version: 1.8.24
|
73
87
|
signing_key:
|
74
88
|
specification_version: 3
|
75
89
|
summary: Template language for generating Ruby bindings for C libraries
|
76
|
-
test_files:
|
90
|
+
test_files:
|
77
91
|
- example/vte.cr
|
78
|
-
has_rdoc:
|