| 1 |
## is there really no way to make a rule for this? |
| 2 |
WWW_FILES = %w(www/index.html README.txt doc/Philosophy.txt doc/FAQ.txt doc/NewUserGuide.txt www/main.css) |
| 3 |
|
| 4 |
rule 'ss?.png' => 'ss?-small.png' do |t| |
| 5 |
end |
| 6 |
SCREENSHOTS = FileList["www/ss?.png"] |
| 7 |
SCREENSHOTS_SMALL = [] |
| 8 |
SCREENSHOTS.each do |fn| |
| 9 |
fn =~ /ss(\d+)\.png/ |
| 10 |
sfn = "www/ss#{$1}-small.png" |
| 11 |
file sfn => [fn] do |t| |
| 12 |
sh "cat #{fn} | pngtopnm | pnmscale -xysize 320 240 | pnmtopng > #{sfn}" |
| 13 |
end |
| 14 |
SCREENSHOTS_SMALL << sfn |
| 15 |
end |
| 16 |
|
| 17 |
task :upload_webpage => WWW_FILES do |t| |
| 18 |
sh "rsync -essh -cavz #{t.prerequisites * ' '} wmorgan@rubyforge.org:/var/www/gforge-projects/sup/" |
| 19 |
end |
| 20 |
|
| 21 |
task :upload_webpage_images => (SCREENSHOTS + SCREENSHOTS_SMALL) do |t| |
| 22 |
sh "rsync -essh -cavz #{t.prerequisites * ' '} wmorgan@rubyforge.org:/var/www/gforge-projects/sup/" |
| 23 |
end |
| 24 |
|
| 25 |
# vim: syntax=ruby |
| 26 |
# -*- ruby -*- |
| 27 |
task :upload_report do |t| |
| 28 |
sh "ditz html ditz" |
| 29 |
sh "rsync -essh -cavz ditz wmorgan@rubyforge.org:/var/www/gforge-projects/sup/" |
| 30 |
end |
| 31 |
|
| 32 |
$:.push "lib" |
| 33 |
require 'rubygems' |
| 34 |
require "sup-files" |
| 35 |
require "sup-version" |
| 36 |
require 'rake/gempackagetask.rb' |
| 37 |
|
| 38 |
spec = Gem::Specification.new do |s| |
| 39 |
s.name = %q{sup} |
| 40 |
s.version = SUP_VERSION |
| 41 |
s.date = Time.now.to_s |
| 42 |
s.authors = ["William Morgan"] |
| 43 |
s.email = %q{wmorgan-sup@masanjin.net} |
| 44 |
s.summary = %q{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.} |
| 45 |
s.homepage = %q{http://sup.rubyforge.org/} |
| 46 |
s.description = %q{Sup is a console-based email client for people with a lot of email. It supports tagging, very fast full-text search, automatic contact-list management, and more. If you're the type of person who treats email as an extension of your long-term memory, Sup is for you. Sup makes it easy to: - Handle massive amounts of email. - Mix email from different sources: mbox files (even across different machines), Maildir directories, POP accounts, and GMail accounts. - Instantaneously search over your entire email collection. Search over body text, or use a query language to combine search predicates in any way. - Handle multiple accounts. Replying to email sent to a particular account will use the correct SMTP server, signature, and from address. - Add custom code to handle certain types of messages or to handle certain types of text within messages. - Organize email with user-defined labels, automatically track recent contacts, and much more! The goal of Sup is to become the email client of choice for nerds everywhere.} |
| 47 |
s.files = SUP_FILES |
| 48 |
s.executables = SUP_EXECUTABLES |
| 49 |
|
| 50 |
s.add_dependency "xapian-full", ">= 1.2.1" |
| 51 |
s.add_dependency "ncursesw" |
| 52 |
s.add_dependency "rmail", ">= 0.17" |
| 53 |
s.add_dependency "highline" |
| 54 |
s.add_dependency "trollop", ">= 1.12" |
| 55 |
s.add_dependency "lockfile" |
| 56 |
s.add_dependency "mime-types", "~> 1" |
| 57 |
s.add_dependency "gettext" |
| 58 |
end |
| 59 |
|
| 60 |
Rake::GemPackageTask.new(spec) do |pkg| |
| 61 |
pkg.need_tar = true |
| 62 |
end |
| 63 |
|
| 64 |
task :tarball => ["pkg/sup-#{SUP_VERSION}.tgz"] |