summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ruby/rb-gsl/files/rb-gsl-2.1.0.1-narray-superclass.patch')
-rw-r--r--dev-ruby/rb-gsl/files/rb-gsl-2.1.0.1-narray-superclass.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/dev-ruby/rb-gsl/files/rb-gsl-2.1.0.1-narray-superclass.patch b/dev-ruby/rb-gsl/files/rb-gsl-2.1.0.1-narray-superclass.patch
new file mode 100644
index 000000000000..4af8042452f1
--- /dev/null
+++ b/dev-ruby/rb-gsl/files/rb-gsl-2.1.0.1-narray-superclass.patch
@@ -0,0 +1,26 @@
+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
+