summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2009-09-26 20:03:30 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2009-09-26 20:03:30 -0700
commitec8ae73b763f8d814adbae4868bac5f7b6c49a48 (patch)
treebda2605c5a6c4dea6c0ce087d53062e21cb5b1f4 /Rakefile
downloadpsych-ec8ae73b763f8d814adbae4868bac5f7b6c49a48.tar.gz
initial commit
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
new file mode 100644
index 0000000..542ef4e
--- /dev/null
+++ b/Rakefile
@@ -0,0 +1,29 @@
+# -*- ruby -*-
+
+require 'rubygems'
+require 'hoe'
+
+# Make sure hoe-debugging is installed
+Hoe.plugin :debugging
+
+HOE = Hoe.spec 'psych' do
+ developer('Aaron Patterson', 'aaronp@rubyforge.org')
+ self.readme_file = 'README.rdoc'
+ self.history_file = 'CHANGELOG.rdoc'
+ self.extra_rdoc_files = FileList['*.rdoc']
+
+ %w{ rake-compiler }.each do |dep|
+ self.extra_dev_deps << [dep, '>= 0']
+ end
+end
+
+gem 'rake-compiler', '>= 0.4.1'
+require "rake/extensiontask"
+
+RET = Rake::ExtensionTask.new("psych", HOE.spec) do |ext|
+ ext.lib_dir = File.join(*['lib', 'psych', ENV['FAT_DIR']].compact)
+end
+
+Rake::Task[:test].prerequisites << :compile
+
+# vim: syntax=ruby