chipmunk 5.2.0-i386-mingw32

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ /* Copyright (c) 2007 Scott Lembcke
2
+ *
3
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ * of this software and associated documentation files (the "Software"), to deal
5
+ * in the Software without restriction, including without limitation the rights
6
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ * copies of the Software, and to permit persons to whom the Software is
8
+ * furnished to do so, subject to the following conditions:
9
+ *
10
+ * The above copyright notice and this permission notice shall be included in
11
+ * all copies or substantial portions of the Software.
12
+ *
13
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ * SOFTWARE.
20
+ */
data/README ADDED
@@ -0,0 +1,60 @@
1
+ Ruby Bindings to Chipmunk Physics Version 5.2.0
2
+
3
+ (C) Scott Lembcke, Beoran and John Mair (banisterfiend)
4
+
5
+ IMPORTANT NOTICE:
6
+ These are bindings for MRI Ruby 1.8.x and 1.9.x to Chipmunk version 5.2.0
7
+
8
+ (1) 1/10/09 Cross-Platform Gem built by John Mair (banisterfiend)
9
+ * Just go: gem install chipmunk
10
+
11
+ (2) Patched for 1.9.1 by Beoran (beoran@rubyforge.org)
12
+
13
+ (3) How to build the gems? (maintainers only)
14
+ * Install rake-compiler (http://github.com/luislavena/rake-compiler)
15
+ * Install 1.9.1 and 1.8.6 mingw ruby versions (instructions above)
16
+ * Type: rake cross native gem RUBY_CC_VERSION=1.8.6:1.9.1
17
+ * Upload new gems to rubyforge and gemcutter.
18
+
19
+ FORUM:
20
+
21
+ http://www.slembcke.net/forums
22
+
23
+ CONTACT:
24
+ slembcke@gmail.com (also on Google Talk) for Chipmunk
25
+ beoran@rubyforge.org for these bindings
26
+
27
+ ABOUT:
28
+ Chipmunk is a simple, lightweight and fast 2D rigid body physics library
29
+ written in C. It's licensed under the unrestrictive, OSI approved MIT license. My aim is to give 2D developers access the same quality of physics you find in newer 3D games. I hope you enjoy using Chipmunk, and please consider donating to help make it worth our time to continue to support Chipmunk with great new features.
30
+
31
+ These bindings are intened to as an alternative for the chipmunk-ffi bindings when performance is of the utmost importance, as it may be for games. The intent is for it to be source code compatibe with the ffi bindings. If you have any problems with these bindings, please contact the maintainer at beoran@rubyforge.org.
32
+
33
+ CONTRACTING:
34
+ Howling Moon Software (Slembke's company) is available for contracting if you want to make the physics in your game really stand out. Feel free to contact them through their webpage: http://howlingmoonsoftware.com/contracting.php
35
+
36
+ CHANGES SINCE 4.x:
37
+ * Brand new Joint/Constraint API: New constraints can be added easily and are much more flexible than the old joint system.
38
+ * Efficient Segment Queries - Like raycasting, but with line segments.
39
+ * Brand new collision callback API: Collision begin/separate events, API for removal of objects within callbacks, more programable control over collision handling.
40
+
41
+ CHANGES SINCE RELEASE 3:
42
+
43
+ * Rational versioning scheme: (major.minor.build) Small changes
44
+ increment the build number. Significant changes that don't affect
45
+ backwards compatibility increment the minor number. Major changes
46
+ that will break backwards compatibility will increment the major
47
+ number.
48
+
49
+ * Optimizations: Speed increases of 5-10% should be common.
50
+
51
+ * Groove Joint: Similar to a pivot joint, but one of the anchors is
52
+ on a linear slide instead of being fixed.
53
+
54
+ * Comments/cleanup. The code should be much more readable now.
55
+
56
+ * Official build paths for working on Linux and MSVC.
57
+
58
+
59
+
60
+
data/Rakefile ADDED
@@ -0,0 +1,50 @@
1
+ # Rakefile added by John Mair (banisterfiend)
2
+
3
+ require 'rake/gempackagetask'
4
+ require 'rake/clean'
5
+ require 'lib/chipmunk/version.rb'
6
+
7
+ dlext = Config::CONFIG['DLEXT']
8
+
9
+ CLEAN.include("ext/**/*.#{dlext}", "ext/**/.log", "ext/**/.o", "ext/**/*~", "ext/**/*#*", "ext/**/.obj", "ext/**/.def", "ext/**/.pdb")
10
+ CLOBBER.include("**/*.#{dlext}", "**/*~", "**/*#*", "**/*.log", "**/*.o", "doc/**")
11
+
12
+
13
+ def apply_spec_defaults(s)
14
+ s.name = "chipmunk"
15
+ s.summary = "ruby bindings for the chipmunk 5.1.0 physics engine"
16
+ s.description = s.summary
17
+ s.version = Chipmunk::VERSION
18
+ s.author = "Scott Lembcke, Beoran, John Mair (banisterfiend)"
19
+ s.email = 'beoran@rubyforge.com'
20
+ s.date = Time.now.strftime '%Y-%m-%d'
21
+ s.require_path = 'lib'
22
+ s.homepage = "http://code.google.com/p/chipmunk-physics/"
23
+ end
24
+
25
+
26
+ # common tasks
27
+ task :compile => :clean
28
+
29
+ spec = Gem::Specification.new do |s|
30
+ apply_spec_defaults(s)
31
+ s.platform = 'i386-mingw32'
32
+ s.files = ["Rakefile", "README", "LICENSE", "lib/chipmunk.rb", "lib/1.8/chipmunk.#{dlext}", "lib/1.9/chipmunk.#{dlext}", "lib/chipmunk/version.rb"]
33
+ end
34
+
35
+
36
+
37
+
38
+
39
+ # spec = Gem::Specification.new do |s|
40
+ # apply_spec_defaults(s)
41
+ # s.platform = Gem::Platform::RUBY
42
+ # s.extensions = FileList["ext/**/extconf.rb"]
43
+ # s.files = ["Rakefile", "README", "LICENSE", "lib/chipmunk.rb", "lib/chipmunk/version.rb"] +
44
+ # FileList["ext/**/extconf.rb", "ext/**/*.h", "ext/**/*.c"].to_a
45
+ # end
46
+
47
+ Rake::GemPackageTask.new(spec) do |pkg|
48
+ pkg.need_zip = false
49
+ pkg.need_tar = false
50
+ end
Binary file
Binary file
data/lib/chipmunk.rb ADDED
@@ -0,0 +1,28 @@
1
+ # this redirection script by John Mair (banisterfiend)
2
+
3
+ require 'rbconfig'
4
+
5
+ direc = File.dirname(__FILE__)
6
+ dlext = Config::CONFIG['DLEXT']
7
+ begin
8
+ if RUBY_VERSION && RUBY_VERSION =~ /1.9/
9
+ require "#{direc}/1.9/chipmunk.#{dlext}"
10
+ else
11
+ require "#{direc}/1.8/chipmunk.#{dlext}"
12
+ end
13
+ rescue LoadError => e
14
+ require "#{direc}/chipmunk.#{dlext}"
15
+ end
16
+
17
+ # Add some constants to CP here, so we don't need
18
+ # to do it in the C code.
19
+ # Let's cheat a bit here.. :p
20
+
21
+ module CP
22
+ ZERO_VEC_2 = Vec2.new(0,0).freeze
23
+ ALL_ONES = Vec2.new(1,1).freeze
24
+ end
25
+
26
+
27
+
28
+
@@ -0,0 +1,3 @@
1
+ module Chipmunk
2
+ VERSION = "5.2.0"
3
+ end
metadata ADDED
@@ -0,0 +1,73 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: chipmunk
3
+ version: !ruby/object:Gem::Version
4
+ hash: 63
5
+ prerelease: false
6
+ segments:
7
+ - 5
8
+ - 2
9
+ - 0
10
+ version: 5.2.0
11
+ platform: i386-mingw32
12
+ authors:
13
+ - Scott Lembcke, Beoran, John Mair (banisterfiend)
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2010-07-25 00:00:00 +12:00
19
+ default_executable:
20
+ dependencies: []
21
+
22
+ description: ruby bindings for the chipmunk 5.1.0 physics engine
23
+ email: beoran@rubyforge.com
24
+ executables: []
25
+
26
+ extensions: []
27
+
28
+ extra_rdoc_files: []
29
+
30
+ files:
31
+ - Rakefile
32
+ - README
33
+ - LICENSE
34
+ - lib/chipmunk.rb
35
+ - lib/1.8/chipmunk.so
36
+ - lib/1.9/chipmunk.so
37
+ - lib/chipmunk/version.rb
38
+ has_rdoc: true
39
+ homepage: http://code.google.com/p/chipmunk-physics/
40
+ licenses: []
41
+
42
+ post_install_message:
43
+ rdoc_options: []
44
+
45
+ require_paths:
46
+ - lib
47
+ required_ruby_version: !ruby/object:Gem::Requirement
48
+ none: false
49
+ requirements:
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ hash: 3
53
+ segments:
54
+ - 0
55
+ version: "0"
56
+ required_rubygems_version: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ hash: 3
62
+ segments:
63
+ - 0
64
+ version: "0"
65
+ requirements: []
66
+
67
+ rubyforge_project:
68
+ rubygems_version: 1.3.7
69
+ signing_key:
70
+ specification_version: 3
71
+ summary: ruby bindings for the chipmunk 5.1.0 physics engine
72
+ test_files: []
73
+