Ehm, attached right now...

-- 
Exherbo KDE, X.org maintainer
From abb652d17097468e0b828422752065347a90f317 Mon Sep 17 00:00:00 2001
From: Richard Brown <rbr...@exherbo.org>
Date: Wed, 25 Mar 2009 16:00:50 +0000
Subject: [PATCH] Use rake/packagegemtask

Add back tarball task
---
 .gitignore  |    2 ++
 Rakefile    |   38 ++++++++++++++++++++++++++++++++------
 sup.gemspec |   30 ------------------------------
 3 files changed, 34 insertions(+), 36 deletions(-)
 delete mode 100644 sup.gemspec

diff --git a/.gitignore b/.gitignore
index b8d3bcd..0820160 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,5 @@
 .ditz-config
 # i use emacs
 *~
+# i use rake package task
+pkg/
diff --git a/Rakefile b/Rakefile
index 3b1d9f4..67cd0d2 100644
--- a/Rakefile
+++ b/Rakefile
@@ -29,12 +29,38 @@ task :upload_report do |t|
   sh "rsync -essh -cavz ditz 
wmor...@rubyforge.org:/var/www/gforge-projects/sup/"
 end
 
-task :gem do |t|
-  sh "gem1.8 build sup.gemspec"
+$:.push "lib"
+require 'rubygems'
+require "sup-files"
+require "sup-version"
+require 'rake/gempackagetask.rb'
+
+spec = Gem::Specification.new do |s|
+  s.name = %q{sup}
+  s.version = SUP_VERSION
+  s.date = Time.now.to_s
+  s.authors = ["William Morgan"]
+  s.email = %q{wmorgan-...@masanjin.net}
+  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.}
+  s.homepage = %q{http://sup.rubyforge.org/}
+  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, IMAP 
folders, 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.}
+  s.files = SUP_FILES
+  s.executables = SUP_EXECUTABLES
+
+  s.add_dependency "ferret", ">= 0.11.6"
+  s.add_dependency "ncurses", ">= 0.9.1"
+  s.add_dependency "rmail", ">= 0.17"
+  s.add_dependency "highline"
+  s.add_dependency "net-ssh"
+  s.add_dependency "trollop", ">= 1.12"
+  s.add_dependency "lockfile"
+  s.add_dependency "mime-types", "~> 1"
+  s.add_dependency "gettext"
+  s.add_dependency "fastthread"
 end
 
-task :tarball do |t|
-  require "sup-files"
-  require "sup-version"
-  sh "tar cfvz sup-#{SUP_VERSION}.tgz #{SUP_FILES.join(' ')}"
+Rake::GemPackageTask.new(spec) do |pkg|
+    pkg.need_tar = true
 end
+
+task :tarball => ["pkg/sup-#{SUP_VERSION}.tgz"]
diff --git a/sup.gemspec b/sup.gemspec
deleted file mode 100644
index 506d8ad..0000000
--- a/sup.gemspec
+++ /dev/null
@@ -1,30 +0,0 @@
-$:.push "lib"
-
-require "sup-files"
-require "sup-version"
-
-Gem::Specification.new do |s|
-  s.name = %q{sup}
-  s.version = SUP_VERSION
-  s.date = Time.now.to_s
-  s.authors = ["William Morgan"]
-  s.email = %q{wmorgan-...@masanjin.net}
-  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.}
-  s.homepage = %q{http://sup.rubyforge.org/}
-  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, IMAP 
folders, 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.}
-  s.files = SUP_FILES
-  s.executables = SUP_EXECUTABLES
-
-  s.add_dependency "ferret", ">= 0.11.6"
-  s.add_dependency "ncurses", ">= 0.9.1"
-  s.add_dependency "rmail", ">= 0.17"
-  s.add_dependency "highline"
-  s.add_dependency "net-ssh"
-  s.add_dependency "trollop", ">= 1.12"
-  s.add_dependency "lockfile"
-  s.add_dependency "mime-types", "~> 1"
-  s.add_dependency "gettext"
-  s.add_dependency "fastthread"
-
-  puts s.files
-end 
-- 
1.6.3.1

_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk

Reply via email to