openbsd-ports/textproc/ruby-rdiscount/patches/patch-Rakefile

15 lines
463 B
Plaintext
Raw Normal View History

$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|