You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-ruby/rb-gsl/files/rb-gsl-2.1.0.1-narray-super...

27 lines
609 B

From 9e0c9e6f0a509b39c68fbaf6657260c6b122bb1b Mon Sep 17 00:00:00 2001
From: Sameer Deshmukh <sameer.deshmukh93@gmail.com>
Date: Thu, 12 May 2016 04:57:06 +0530
Subject: [PATCH] fix narray superclass mismatch problem
---
lib/gsl.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/gsl.rb b/lib/gsl.rb
index 3c67741..aba8f2d 100644
--- a/lib/gsl.rb
+++ b/lib/gsl.rb
@@ -1,10 +1,10 @@
begin
- require 'narray'
+ require 'narray' if ENV['NARRAY']
rescue LoadError
end
begin
- require 'nmatrix/nmatrix'
+ require 'nmatrix/nmatrix' if ENV['NMATRIX']
rescue LoadError
end