diff options
author | Christopher Baines <mail@cbaines.net> | 2017-10-10 07:39:12 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-01-14 22:16:15 +0000 |
commit | d9df4bf055f2bef8c2c428db34c5fa056bdeba73 (patch) | |
tree | 3c1825998f1d234e394298ff4d83d951ed6213b3 /gnu | |
parent | 3cb3fa6747251c6beac226d0233063524bd5f4d6 (diff) | |
download | patches-d9df4bf055f2bef8c2c428db34c5fa056bdeba73.tar patches-d9df4bf055f2bef8c2c428db34c5fa056bdeba73.tar.gz |
ruby-build-system: Add wrap-ruby-program.
A modified copy of wrap-program from (guix build utils). The wrap-program
procedure doesn't work well for Ruby scripts, as it breaks using the -S flag
with ruby to execute the script, as when -S is passed to ruby, it expects the
script on the PATH to use ruby in the shebang, and not bash.
Therefore, to wrap the program, but keep the shebang as ruby, wrap it with a
ruby script instead.
wrap-ruby-program uses .real/foo rather than .foo-real, as this might be
neater. This procedure also includes a call to Gem.clear_paths to make it
possible to set the GEM_PATH through this method, and for it to take effect.
* gnu/build/ruby-build-system.scm (wrap-ruby-program): New procedure.
Diffstat (limited to 'gnu')
0 files changed, 0 insertions, 0 deletions