Permalink
Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (21 sloc) 644 Bytes
# -*- ruby -*-
require 'rubygems'
require 'hoe'
gem 'rake-compiler', '>= 0.4.1'
require "rake/extensiontask"
Hoe.plugin :git # gem install hoe-git
Hoe.spec 'usb' do
developer 'Tanaka Akira', 'akr@fsij.org'
self.history_file = 'ChangeLog'
self.readme_file = 'README'
self.testlib = :minitest
extra_dev_deps << ['rake-compiler', '>= 0.4.1']
self.spec_extras = {
:extensions => ["ext/usb/extconf.rb"],
:homepage => 'http://www.a-k-r.org/ruby-usb/'
}
Rake::ExtensionTask.new "usb", spec do |ext|
ext.lib_dir = File.join(*['lib', ENV['FAT_DIR']].compact)
end
end
task :test => :compile