3 $:.unshift 'lib' # force loading from ./lib/ if it exists
7 def extra_deps; @extra_deps.reject { |x| Array(x).first == "hoe" } end
8 end # thanks to "Mike H"
10 ## allow people who use development versions by running "rake gem"
11 ## and installing the resulting gem it to be able to do this. (gem
12 ## versions must be in dotted-digit notation only).
13 version = Redwood::VERSION == "git" ? "999" : Redwood::VERSION
15 Hoe.new('sup', version) do |p|
16 p.rubyforge_name = 'sup'
17 p.author = "William Morgan"
18 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.'
19 p.description = p.paragraphs_of('README.txt', 2..9).join("\n\n")
20 p.url = p.paragraphs_of('README.txt', 0).first.split(/\n/)[2].gsub(/^\s+/, "")
21 p.changes = p.paragraphs_of('History.txt', 0..0).join("\n\n")
22 p.email = "wmorgan-sup@masanjin.net"
23 p.extra_deps = [['ferret', '>= 0.10.13'], ['ncurses', '>= 0.9.1'], ['rmail', '>= 0.17'], 'highline', 'net-ssh', ['trollop', '>= 1.7'], 'lockfile', 'mime-types']
26 rule 'ss?.png' => 'ss?-small.png' do |t|
29 ## is there really no way to make a rule for this?
30 WWW_FILES = %w(www/index.html README.txt doc/Philosophy.txt doc/FAQ.txt doc/NewUserGuide.txt www/main.css)
32 SCREENSHOTS = FileList["www/ss?.png"]
33 SCREENSHOTS_SMALL = []
34 SCREENSHOTS.each do |fn|
36 sfn = "www/ss#{$1}-small.png"
37 file sfn => [fn] do |t|
38 sh "cat #{fn} | pngtopnm | pnmscale -xysize 320 240 | pnmtopng > #{sfn}"
40 SCREENSHOTS_SMALL << sfn
43 task :upload_webpage => WWW_FILES do |t|
44 sh "scp -C #{t.prerequisites * ' '} wmorgan@rubyforge.org:/var/www/gforge-projects/sup/"
47 task :upload_webpage_images => (SCREENSHOTS + SCREENSHOTS_SMALL) do |t|
48 sh "scp -C #{t.prerequisites * ' '} wmorgan@rubyforge.org:/var/www/gforge-projects/sup/"