[DRE-maint] Bug#459882: libgemplugin-ruby1.8: should support packages gem

Jeremy Lainé jeremy.laine at m4x.org
Wed Jan 9 23:38:07 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

retitle 459882  libgemplugin-ruby1.8: should support packaged gems
thanks

Attached is a more interesting patch: it add supports for packaged gem
plugins. This patch just needs to be dropped into 'debian/patches', and
we need to add 'debian/libgemplugin-ruby1.8.dirs' containing:

usr/share/gemplugins/1.8

Packaged gem plugins (e.g. mongrel_cluster) should install their files
as following:

* 'lib/<package>/*.rb' gets installed like a normal ruby module:

/usr/lib/ruby/<ruby_version>/<package>

* '<package>.gemspec' gets installed (no changes needed) as :

/usr/share/gemplugins/<ruby_version>/<package>.gemspec

* 'resources' gets installed as:

/usr/share/gemplugins/<ruby_version>/<package>/resources

For instance, the contents of the "mongrel-cluster" package would be:

/usr/lib/ruby/1.8/mongrel_cluster/init.rb
/usr/lib/ruby/1.8/mongrel_cluster/recipes.rb
/usr/lib/ruby/1.8/mongrel_cluster/recipes_1.rb
/usr/lib/ruby/1.8/mongrel_cluster/recipes_2.rb
/usr/share/gemplugins/1.8/mongrel_cluster.gemspec
/usr/share/gemplugins/1.8/mongrel_cluster/resources/defaults.yaml

What do you think?

Cheers,
Jeremy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHhVrf4mJJZqJp2ScRAq6IAJ4vaW/hj+CTAQq/W79wjxh1wh+LLQCcDBRI
vji6OcD4cXllrswT2Gf7BgE=
=IvQF
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 03-support_packaged_plugins.diff
Type: text/x-diff
Size: 2177 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20080110/0947aa11/attachment.diff 


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