On Sun, Jul 02, 2006 at 08:02:14PM +0200, Stephan Maka wrote:
> Hello
> 
> I've implemented a lightweight 9P2000 library in Ruby.
> 
> Homepage: http://home.gna.org/rubyixp/
> Download: http://download.gna.org/rubyixp/ruby-ixp-0.1.tbz

Looks very nice.

I noticed that writing a Rakefile was in your TODO list, so I went ahead 
and made one for you (you can find it attached).

I'd like to try your ruby-ixp lib with my ruby-wmii configuration; is there
any chance it could be used/distributed under the terms of the Ruby license
(that is, dual GPL/artistic)?

Thanks,

-- 
Mauricio Fernandez  -   http://eigenclass.org   -  singular Ruby
$:.unshift "lib" if File.directory? "lib"
require 'rcov/rcovtask'
require 'rake/testtask'
require 'rake/rdoctask'

# NOTE: this will not do anything until you add some tests
desc "Create a cross-referenced code coverage report."
Rcov::RcovTask.new do |t|
  t.test_files = FileList['test/test*.rb']
  t.ruby_opts << "-Ilib" # in order to use this rcov
  t.rcov_opts << "--xrefs"  # comment to disable cross-references
  t.verbose = true
end

desc "Run the unit tests."
Rake::TestTask.new(:test) do |t|
  t.test_files = FileList['test/test*.rb']
  t.verbose = true
end

task :default => :test

desc "Generate rdoc documentation"
Rake::RDocTask.new("rdoc") { |rdoc|
  rdoc.rdoc_dir = 'doc'
  rdoc.title    = "ruby-ixp"
  rdoc.options << "--line-numbers" << "--inline-source"
  rdoc.rdoc_files.include('lib/**/*.rb')
}


# {{{ Package tasks

PKG_REVISION = ".0"
PKG_FILES = FileList[
"lib/**/*.rb",
"COPYING",
"Rakefile"
]

RUBY_IXP_VERSION = "0.1"

begin

require 'rake/gempackagetask'
Spec = Gem::Specification.new do |s|
  s.name = "ruby-ixp"
  s.version = RUBY_IXP_VERSION + PKG_REVISION
  s.summary = "Lightweight 9P2000 library written in pure-Ruby."
  s.description = <<EOF
Ruby-IXP is an implementation of the 9P2000 protocol designed for use with
Window Manager Improved. It is written in pure Ruby to avoid periodical
calling of the wmiir command, thus improving performance. There is another
full-blown 9P2000 implementation called Rstyx, but it's rather complex and
slow.
EOF
  s.files = PKG_FILES.to_a
  s.require_path = 'lib'
  s.author = "Stephan Maka"
  s.email = "[EMAIL PROTECTED]"
  s.homepage = "http://home.gna.org/rubyixp/";
  s.has_rdoc = true
  s.extra_rdoc_files = %w[]
  s.rdoc_options << "--title" << 'ruby-ixp' # << "--main" << "README" 
  #s.test_files = Dir["test/test_*.rb"]
end

#task :package => [:test] # uncomment to run the tests before packaging
Rake::GemPackageTask.new(Spec) do |p|
  p.need_tar = true
end

rescue LoadError
# RubyGems not available, no :package task.
end

# vim: set sw=2 ft=ruby:
_______________________________________________
[email protected] mailing list
http://wmii.de/cgi-bin/mailman/listinfo/wmii

Reply via email to