Lars Christensen wrote:
> 
> I am looking for a way to provide easy, preferably portable installation
> of a ruby only module/library (no C code involved), to a location where
> other program can "require" it. E.g. something equivalent of perl's "perl
> Makefile.PL; make; make install".

setup.rb by Minero Aoki is such a program. 

The alternative is to write your own one:


#!/usr/bin/env ruby

require "rbconfig"
require "ftools"
include Config

RV = CONFIG["sitedir"] + "/" + CONFIG["MAJOR"] + "." + CONFIG["MINOR"]

DSTPATH  =  RV + "/" + "xmlrpc"

FILES  = %w(base64.rb client.rb config.rb create.rb datetime.rb httpserver.rb parser.rb server.rb utils.rb)

begin
  File.mkpath DSTPATH, true 
  
  for name in FILES do
    File.install "lib/#{name}", "#{DSTPATH}/#{name}", 0644, true   
  end

rescue 
  puts "install failed!"
  puts $!
else
  puts "install succeed!"
end

  

Regards,

  Michael 

-- 
Michael Neumann
merlin.zwo InfoDesign GmbH
http://www.merlin-zwo.de