summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lang/rubinius/files')
-rw-r--r--dev-lang/rubinius/files/auto_gem.rb7
-rw-r--r--dev-lang/rubinius/files/gcc-stdc-defines.patch11
-rw-r--r--dev-lang/rubinius/files/no_specs.patch10
-rw-r--r--dev-lang/rubinius/files/rubyopts_unset.patch22
4 files changed, 50 insertions, 0 deletions
diff --git a/dev-lang/rubinius/files/auto_gem.rb b/dev-lang/rubinius/files/auto_gem.rb
new file mode 100644
index 000000000..5c4f540a9
--- /dev/null
+++ b/dev-lang/rubinius/files/auto_gem.rb
@@ -0,0 +1,7 @@
+# This file is installed by Gentoo's rubygems package.
+# It's intended to help automate the loading of rubygems
+
+begin
+require 'rubygems'
+rescue LoadError
+end
diff --git a/dev-lang/rubinius/files/gcc-stdc-defines.patch b/dev-lang/rubinius/files/gcc-stdc-defines.patch
new file mode 100644
index 000000000..29d2168f5
--- /dev/null
+++ b/dev-lang/rubinius/files/gcc-stdc-defines.patch
@@ -0,0 +1,11 @@
+--- orig-work/evanphx-rubinius-aee1b9b/config.rb 2010-09-28 22:30:51.000000000 -0700
++++ new-work/evanphx-rubinius-aee1b9b/config.rb 2010-09-28 23:13:18.000000000 -0700
+@@ -5,7 +5,7 @@
+ :llvm => :no,
+ :llvm_configure => "",
+ :compiler => "gcc",
+- :defines => ["HAS_EXECINFO"],
++ :defines => ["HAS_EXECINFO", "__STDC_LIMIT_MACROS", "__STDC_CONSTANT_MACROS"],
+ :host => "i686-pc-linux-gnu",
+ :cpu => "i686",
+ :vendor => "pc",
diff --git a/dev-lang/rubinius/files/no_specs.patch b/dev-lang/rubinius/files/no_specs.patch
new file mode 100644
index 000000000..1bd912f1b
--- /dev/null
+++ b/dev-lang/rubinius/files/no_specs.patch
@@ -0,0 +1,10 @@
+diff -u -r old-work/Rakefile work/Rakefile
+--- old-work/Rakefile 2010-06-10 11:39:56.000000000 -0700
++++ work/Rakefile 2010-06-10 12:25:16.000000000 -0700
+@@ -38,7 +38,7 @@
+ ENV["CFLAGS"] = "-Ivm/capi"
+ end
+
+- sh "RUBYOPT='' bin/mspec ci --background"
++ puts "Tests should go here"
+ end
diff --git a/dev-lang/rubinius/files/rubyopts_unset.patch b/dev-lang/rubinius/files/rubyopts_unset.patch
new file mode 100644
index 000000000..537fd07db
--- /dev/null
+++ b/dev-lang/rubinius/files/rubyopts_unset.patch
@@ -0,0 +1,22 @@
+diff -u -r work/Rakefile old-work/Rakefile
+--- work/Rakefile 2010-05-14 10:21:35.000000000 -0700
++++ old-work/Rakefile 2010-06-10 11:39:56.000000000 -0700
+@@ -38,7 +38,7 @@
+ ENV["CFLAGS"] = "-Ivm/capi"
+ end
+
+- sh "bin/mspec ci --background"
++ sh "RUBYOPT='' bin/mspec ci --background"
+ end
+
+ # See vm.rake for more information
+diff -u -r work/bin/rbx-build old-work/bin/rbx-build
+--- work/bin/rbx-build 2010-05-14 10:21:35.000000000 -0700
++++ old-work/bin/rbx-build 2010-06-10 11:37:12.000000000 -0700
+@@ -7,4 +7,6 @@
+ export RBX_LIB="$BASE_DIR/lib"
+ export RBX_CAPI_DIR="$BASE_DIR/vm/capi"
+
++unset RUBYOPT
++
+ exec $BIN_DIR/../vm/vm "$*"