ruby-bullet 0.0.2-x86-linux → 0.0.3-x86-linux

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/README.md CHANGED
@@ -24,7 +24,7 @@ Run a sample application.
24
24
  The sample application uses gtk2 to draw boxes.
25
25
 
26
26
  $ sudo gem install gtk2
27
- $ ruby <gems_path>/ruby-bullet-<version>-<arch>/sample/hello_bullet/HelloBullet.rb
27
+ $ ruby <gems_path>/ruby-bullet-<version>-<arch>/sample/hello_bullet/hello_bullet.rb
28
28
 
29
29
 
30
30
  How to compile
data/Rakefile CHANGED
@@ -53,15 +53,15 @@ EFIX:STRING=..\\..\\lib\\pkgconfig\\'
53
53
 
54
54
  DLEXT = RbConfig::MAKEFILE_CONFIG['DLEXT']
55
55
 
56
- task :bullet => ["lib/Bullet.#{DLEXT}"]
56
+ task :bullet => ["lib/bullet.#{DLEXT}"]
57
57
 
58
58
  ## lib/*.#{DLEXT}
59
- file "lib/Bullet.#{DLEXT}" => "bindings/bullet/Bullet.#{DLEXT}" do |f|
59
+ file "lib/bullet.#{DLEXT}" => "bindings/bullet/bullet.#{DLEXT}" do |f|
60
60
  cp f.prerequisites, "lib/", :preserve => true
61
61
  end
62
62
 
63
63
  ## ext/**/*.#{DLEXT}
64
- file "bindings/bullet/Bullet.#{DLEXT}" => FileList["bindings/bullet/Makefile"] do |f|
64
+ file "bindings/bullet/bullet.#{DLEXT}" => FileList["bindings/bullet/Makefile"] do |f|
65
65
  sh 'cd bindings/bullet/ && make clean && make'
66
66
  end
67
67
  CLEAN.include 'bindings/bullet/*.{o,so,dll}'
@@ -74,7 +74,7 @@ EFIX:STRING=..\\..\\lib\\pkgconfig\\'
74
74
 
75
75
  ## make wrappers with swig.
76
76
  file 'bindings/bullet/interface/bullet_wrap.cpp' do
77
- chdir('bindings/bullet/interface') { sh 'make' }
77
+ chdir('bindings/bullet/interface') { sh 'rake' }
78
78
  end
79
79
  CLEAN.include 'bindings/bullet/interface/bullet_wrap.{cpp,h,o}'
80
80
  end
@@ -97,7 +97,7 @@ end
97
97
  #
98
98
  lib = File.expand_path('../lib', __FILE__)
99
99
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
100
- require 'Version'
100
+ require 'version'
101
101
 
102
102
  spec = Gem::Specification.new do |s|
103
103
 
@@ -124,6 +124,8 @@ spec = Gem::Specification.new do |s|
124
124
  'deps/include/**/*',
125
125
  ].to_a
126
126
 
127
+ # s.extra_rdoc_files = ['bindings/bullet/interface/bullet_wrap.cpp']
128
+
127
129
  s.require_paths = ["lib"]
128
130
  end
129
131
 
@@ -0,0 +1,22 @@
1
+ SWIG = 'swig'
2
+
3
+ DEPS_DIR = "../../../deps/"
4
+ load "../../../deps/env.rb"
5
+
6
+
7
+ SWIGFLAGS = "-ruby -c++ -w801 #{BULLET_INC} -I../src/ -autorename"
8
+
9
+ TARGET = 'bullet_wrap.cpp'
10
+
11
+ #puts SWIGFLAGS
12
+
13
+ task :default => "#{TARGET}"
14
+
15
+ file "#{TARGET}" => "bullet.i" do |t|
16
+ sh "#{SWIG} #{SWIGFLAGS} -o #{t.name} #{t.prerequisites[0]}"
17
+ end
18
+
19
+ task :clean do
20
+ sh "rm -f #{TARGET}"
21
+ end
22
+
@@ -1,4 +1,4 @@
1
- %module(directors="1") "Bullet"
1
+ %module(directors="1") "bullet"
2
2
 
3
3
  //#define DEBUG_FREEFUNC
4
4