forked from wmorgan/leveldb-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
29 lines (25 loc) · 975 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
require 'rubygems'
require 'rubygems/package_task'
require 'find'
spec = Gem::Specification.new do |s|
s.name = "leveldb-ruby"
s.version = "0.10"
s.date = Time.now.to_s
s.email = "[email protected]"
s.authors = ["William Morgan"]
s.summary = "a Ruby binding to LevelDB"
s.homepage = "http://github.com/wmorgan/leveldb-ruby"
s.files = %w(README ext/leveldb/extconf.rb lib/leveldb.rb ext/leveldb/leveldb.cc leveldb/Makefile leveldb/build_detect_platform)
Find.find("leveldb") { |x| s.files << x if x =~ /\.(cc|h)$/}
s.extensions = %w(ext/leveldb/extconf.rb)
s.executables = []
s.extra_rdoc_files = %w(README ext/leveldb/leveldb.cc)
s.rdoc_options = %w(-c utf8 --main README --title LevelDB)
s.description = "LevelDB-Ruby is a Ruby binding to LevelDB."
end
task :rdoc do |t|
sh "rm -rf doc; rdoc #{spec.rdoc_options.join(' ')} #{spec.extra_rdoc_files.join(' ')} lib/leveldb.rb"
end
Gem::PackageTask.new spec do
end
# vim: syntax=ruby