This allows to fix more stuff, e.g.:

#!/usr/bin/ruby => #!/usr/local/bin/ruby19

Used to fix stuff in texlive_base.

This needs to go through a full bulk build first. Landry? :)


Index: ruby.port.mk
===================================================================
RCS file: /cvs/ports/lang/ruby/ruby.port.mk,v
retrieving revision 1.60
diff -u -p -r1.60 ruby.port.mk
--- ruby.port.mk        20 Mar 2013 19:13:50 -0000      1.60
+++ ruby.port.mk        26 Mar 2013 09:32:08 -0000
@@ -252,7 +252,8 @@ TEST_DEPENDS+=      ${MODRUBY_RSPEC_DEPENDS}
 TEST_DEPENDS+= ${MODRUBY_RSPEC2_DEPENDS}
 .endif
 
-MODRUBY_RUBY_ADJ=      perl -pi -e 's,/usr/bin/env ruby,${RUBY},'
+MODRUBY_RUBY_ADJ=      perl -pi -e 's,/usr/bin/env ruby,${RUBY},;' \
+                                -e 's,/usr/bin/ruby([\s]+.*)?,${RUBY}\1,'
 MODRUBY_ADJ_FILES?=
 .if !empty(MODRUBY_ADJ_FILES)
 MODRUBY_ADJ_REPLACE=   for pat in ${MODRUBY_ADJ_FILES:QL}; do \

Reply via email to