ruby-install icon indicating copy to clipboard operation
ruby-install copied to clipboard

Add support for mruby mrbgems

Open grimnight opened this issue 11 years ago • 7 comments

Add support for mruby mrbgems. A possible way to do so would be to use the output from mgem config[1] to generate build_config.rb, although that requires installing mgem.

grimnight avatar Feb 14 '14 00:02 grimnight

What if we allowed passing in the MRUBY_CONFIG variable?

ruby-install mruby -- MRUBY_CONFIG=/path/to/my/mruby_config.rb

postmodern avatar Feb 14 '14 03:02 postmodern

Sounds simple, if it works i'm good with it. Would it be worth the trouble to consider mgem? Or is mgem too heavy dependency?

grimnight avatar Feb 15 '14 00:02 grimnight

Having not used mgem, how does it integrate with mruby? It seems to only be used to generate the build_config.rb file?

postmodern avatar Feb 15 '14 01:02 postmodern

mgem uses mgem-list repo to keep track of available gems. mgem uses ~/.mgem/GEMS_ACTIVE.lst file to keep track of wanted gems, then using mgem config to get build_config.rb (use mgem config default if you don't want all the interactive questions).

That is what I know of mgem.

grimnight avatar Feb 15 '14 01:02 grimnight

It sounds like mruby just needs a ./configure script to allow adding gems/gemboxes.

postmodern avatar Feb 15 '14 01:02 postmodern

Submitted mruby/mruby#1711.

postmodern avatar Feb 15 '14 02:02 postmodern

Played around with mruby and passing -- MRUBY_CONFIG=... should work. Also, we're considering dropping support for mruby since it's more suited for embedding into projects than installing globally. See #168

postmodern avatar Oct 02 '14 04:10 postmodern