X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=Rakefile;h=289da642aeddb4a2ea02528f50f55d932c7638f1;hb=eb8e4699a6b88fb1d98d1315a36d36e69c40e231;hp=3815ebacd60e711101259bb5322d49b1057f58df;hpb=a7a329ce4c1ccf6e27db8fda76f9229cdf8379cf;p=sup diff --git a/Rakefile b/Rakefile index 3815eba..289da64 100644 --- a/Rakefile +++ b/Rakefile @@ -1,27 +1,37 @@ -# -*- ruby -*- - require 'rubygems' require 'hoe' -require './lib/sup.rb' - -Hoe.new('sup', Redwood::VERSION) do |p| - p.rubyforge_name = 'Sup' +$:.unshift 'lib' # force loading from ./lib/ if it exists +require 'sup' + +class Hoe + def extra_deps; @extra_deps.reject { |x| Array(x).first == "hoe" } end +end # thanks to "Mike H" + +## allow people who use development versions by running "rake gem" +## and installing the resulting gem it to be able to do this. (gem +## versions must be in dotted-digit notation only and can be passed +## with the REL environment variable to "rake gem"). +if ENV['REL'] + version = ENV['REL'] +else + version = Redwood::VERSION == "git" ? "999" : Redwood::VERSION +end +Hoe.new('sup', version) do |p| + p.rubyforge_name = 'sup' p.author = "William Morgan" p.summary = 'A console-based email client with the best features of GMail, mutt, and emacs. Features full text search, labels, tagged operations, multiple buffers, recent contacts, and more.' - p.description = p.paragraphs_of('README.txt', 2..4).join("\n\n") + p.description = p.paragraphs_of('README.txt', 2..9).join("\n\n") p.url = p.paragraphs_of('README.txt', 0).first.split(/\n/)[2].gsub(/^\s+/, "") - p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n") + p.changes = p.paragraphs_of('History.txt', 0..0).join("\n\n") p.email = "wmorgan-sup@masanjin.net" - p.extra_deps = [['ferret', '>= 0.10.13'], ['ncurses', '>= 0.9.1'], ['rmail', '>= 0.17'], 'highline'] + p.extra_deps = [['ferret', '>= 0.10.13'], ['ncurses', '>= 0.9.1'], ['rmail', '>= 0.17'], 'highline', 'net-ssh', ['trollop', '>= 1.7'], 'lockfile', 'mime-types', 'gettext'] end rule 'ss?.png' => 'ss?-small.png' do |t| - end - ## is there really no way to make a rule for this? -WWW_FILES = %w(www/index.html README.txt doc/Philosophy.txt doc/FAQ.txt) +WWW_FILES = %w(www/index.html README.txt doc/Philosophy.txt doc/FAQ.txt doc/NewUserGuide.txt www/main.css) SCREENSHOTS = FileList["www/ss?.png"] SCREENSHOTS_SMALL = [] @@ -42,4 +52,5 @@ task :upload_webpage_images => (SCREENSHOTS + SCREENSHOTS_SMALL) do |t| sh "scp -C #{t.prerequisites * ' '} wmorgan@rubyforge.org:/var/www/gforge-projects/sup/" end -# vim: syntax=Ruby +# vim: syntax=ruby +# -*- ruby -*-