[DRE-maint] Writing a user friendly guide on how to package Ruby applications for Debian

Declan McGrath declan at divilment.com
Wed Aug 26 13:17:46 UTC 2009


Hi folks,

I'm writing a guide (and learning how to do it at the same time!) on how to package Ruby applications for the Debian package format at http://techbase.kde.org/Development/Tutorials/Deploying_Qt_Ruby_Applications_as_a_Debian_packages_for_Kubuntu and have the following questions

1.) I have installed ruby-pkg-tools but have no idea what to do with it. I do not understand this page http://pkg-ruby-extras.alioth.debian.org/ruby-pkg-tools/cdbs.html

Any pointers?

2.) Conceptually, one of the things that I am confused with is how files are 'required' (eg. require 'lib/my_cool_app/a_file_containing_a_class_used_in_my_app.rb') by the main file of an application, once the various bits of an app are installed.

For example, given
  - My main program script in /usr/bin/benchmarkmaster whos's first line is
       require 'lib/benchmarksman/parser.rb'
  - A library file belonging to my program in /usr/local/lib/site_ruby/1.8/benchmarksman/parser.rb
How does the /usr/bin/benchmarkmaster file know to look in /usr/local/lib/site_ruby/1.8/benchmarksman/ for the parser.rb?

My guess is that this won't work - as it's currently not working for me :-) So I'm hoping that someone can explain what I should be doing in order to be correct about things.

3.) Also, is /usr/local/lib/site_ruby/1.8/ the correct location for ruby library files belonging to an application to live in?

Perhaps I should be using some kind of symlink trickery. In any case, any help greatly appreciated.

Kind regards,
Declan




More information about the Pkg-ruby-extras-maintainers mailing list