New build_style: ruby-module - for install.rb ruby modules.

This commit is contained in:
Juan RP 2014-11-25 17:54:17 +01:00
parent e7973c487f
commit 99becc55bd
2 changed files with 12 additions and 0 deletions

View File

@ -513,6 +513,9 @@ depend on additional packages. This build style does not install
dependencies to the root directory, and only checks if a binary package is
available in repositories.
- `ruby-module` For packages that are ruby modules and are installable via `ruby install.rb`.
Additional install arguments can be specified via `make_install_args`.
- `perl-ModuleBuild` For packages that use the Perl
[Module::Build](http://search.cpan.org/~leont/Module-Build-0.4202/lib/Module/Build.pm) method.

View File

@ -0,0 +1,9 @@
#
# This helper is for templates installing ruby modules.
#
do_install() {
local _vendorlibdir=$(ruby -e 'puts RbConfig::CONFIG["vendorlibdir"]')
ruby install.rb --destdir=${DESTDIR} --sitelibdir=${_vendorlibdir} ${make_install_args}
}