freebsd-ports/lang/ruby19/files/patch-mkconfig.rb
Stanislav Sedov fae8e0f615 - Add ruby 1.9 support
- Implement new knobs for gems and rake (these are included in
  ruby 1.9 distribution already). Also move gem bits from
  ruby-gems/Makefile.common to bsd.ruby.mk[1]. Now to depend
  on gems or rake you should define USE_RUBYGEMS/USE_RAKE
  accordingly. Also RAKE_BIN variable is provided for
  pointing to the right rake executable.
- Rewrite RUBY_SCHEBANG in awk to eliminate build dependency
  on ruby.

Discussed with:	Jonathan Weiss <jw@innerewut.de> [1] (gems maintainer)
Tested by:	ports@
2008-04-06 08:58:21 +00:00

11 lines
442 B
Ruby

--- mkconfig.rb.orig 2007-12-28 02:40:14.000000000 +0300
+++ mkconfig.rb 2007-12-28 02:40:25.000000000 +0300
@@ -138,7 +138,7 @@
print(*v_fast)
print(*v_others)
print <<EOS
- CONFIG["ruby_version"] = "$(MAJOR).$(MINOR).$(TEENY)"
+ CONFIG["ruby_version"] = "$(MAJOR).$(MINOR)"
CONFIG["rubylibdir"] = "$(libdir)/ruby/$(ruby_version)"
CONFIG["archdir"] = "$(rubylibdir)/$(arch)"
CONFIG["sitelibdir"] = "$(sitedir)/$(ruby_version)"