forked from chuckremes/ffi-rzmq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
33 lines (28 loc) · 866 Bytes
/
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
begin
require 'bones'
rescue LoadError
abort '### Please install the "bones" gem ###'
end
namespace :win do
desc 'Build and install gem under Windows. Mr Bones just has to break things using tar.'
task :install do
PKG_PATH = File.join(File.dirname(__FILE__), 'pkg')
NAME = File.basename(File.dirname(__FILE__))
rm_rf PKG_PATH
system "gem build #{NAME}.gemspec"
mkdir_p PKG_PATH
mv "#{NAME}-0.7.1.gem", PKG_PATH
system "gem install #{PKG_PATH}/#{NAME}-0.7.1.gem"
end
end
Bones {
name 'ffi-rzmq'
authors 'Chuck Remes'
email '[email protected]'
url 'http://github.com/chuckremes/ffi-rzmq'
readme_file 'README.rdoc'
ruby_opts.clear # turn off warnings
# necessary for MRI; unnecessary for JRuby and RBX
# can't enable this until JRuby & RBX have a way of dealing with it cleanly
#depend_on 'ffi', '>= 1.0.0'
}