require 'rake' require 'rake/testtask' require 'rake/clean' require 'rake/gempackagetask' require 'rake/rdoctask' require '../tools/rakehelp' require 'fileutils' include FileUtils setup_tests setup_clean ["pkg", "lib/*.bundle", "*.gem", ".config"] setup_rdoc ['README', 'LICENSE', 'lib/**/*.rb', 'doc/**/*.rdoc'] desc "Does a full compile, test run" task :default => [:test, :package] version="1.0" name="activerdf_redland" setup_gem(name, version) do |spec| spec.summary = "ActiveRDF adapter to Redland RDF store" spec.description = spec.summary spec.author="Eyal Oren = 0.2.1') spec.add_dependency('activerdf', '>= 0.9.2') spec.requirements << 'librdf0 (Redland)' spec.requirements << 'librdf-ruby (Redland Ruby bindings)' end task :install => [:package] do sh %{sudo gem install pkg/#{name}-#{version}.gem} end task :uninstall => [:clean] do sh %{sudo gem uninstall #{name}} end task :reinstall => [:uninstall, :install]