forked from chipmunk-rb/chipmunk
/
Rakefile
50 lines (36 loc) · 1.47 KB
/
Rakefile
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
# Rakefile added by John Mair (banisterfiend)
require 'rake/gempackagetask'
require 'rake/clean'
require 'lib/chipmunk/version.rb'
dlext = Config::CONFIG['DLEXT']
CLEAN.include("ext/**/*.#{dlext}", "ext/**/.log", "ext/**/.o", "ext/**/*~", "ext/**/*#*", "ext/**/.obj", "ext/**/.def", "ext/**/.pdb")
CLOBBER.include("**/*.#{dlext}", "**/*~", "**/*#*", "**/*.log", "**/*.o", "doc/**")
def apply_spec_defaults(s)
s.name = "chipmunk"
s.summary = "ruby bindings for the chipmunk 5.1.0 physics engine"
s.description = s.summary
s.version = Chipmunk::VERSION
s.author = "Scott Lembcke, Beoran, John Mair (banisterfiend)"
s.email = 'beoran@rubyforge.com'
s.date = Time.now.strftime '%Y-%m-%d'
s.require_path = 'lib'
s.homepage = "http://code.google.com/p/chipmunk-physics/"
end
# common tasks
task :compile => :clean
spec = Gem::Specification.new do |s|
apply_spec_defaults(s)
s.platform = 'i386-mingw32'
s.files = ["Rakefile", "README", "LICENSE", "lib/chipmunk.rb", "lib/1.8/chipmunk.#{dlext}", "lib/1.9/chipmunk.#{dlext}", "lib/chipmunk/version.rb"]
end
# spec = Gem::Specification.new do |s|
# apply_spec_defaults(s)
# s.platform = Gem::Platform::RUBY
# s.extensions = FileList["ext/**/extconf.rb"]
# s.files = ["Rakefile", "README", "LICENSE", "lib/chipmunk.rb", "lib/chipmunk/version.rb"] +
# FileList["ext/**/extconf.rb", "ext/**/*.h", "ext/**/*.c"].to_a
# end
Rake::GemPackageTask.new(spec) do |pkg|
pkg.need_zip = false
pkg.need_tar = false
end