openbsd-ports/textproc/ruby-rdiscount/patches/patch-Rakefile
jeremy 16703d23fa Update ruby ports to deal with the regress changes to ruby.port.mk.
Start using MODRUBY_REGRESS with ruby, rspec2, and testrb entries.
Switch away from manual do_regress targets where possible.  Add
some patches to make regress tests run for some ports.
2011-11-17 16:08:00 +00:00

15 lines
463 B
Plaintext

$OpenBSD: patch-Rakefile,v 1.1 2011/11/17 16:08:00 jeremy Exp $
Fix regress with rake 0.9, which no longer defines ::RUBY.
--- Rakefile.orig Sun Nov 13 22:47:48 2011
+++ Rakefile Sun Nov 13 22:47:59 2011
@@ -9,6 +9,7 @@ task :default => :test
# ==========================================================
DLEXT = Config::CONFIG['DLEXT']
+RUBY = FileUtils::RUBY
RUBYDIGEST = Digest::MD5.hexdigest(`#{RUBY} --version`)
file "ext/ruby-#{RUBYDIGEST}" do |f|