summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMamoru Komachi <usata@gentoo.org>2004-03-07 18:06:54 +0000
committerMamoru Komachi <usata@gentoo.org>2004-03-07 18:06:54 +0000
commitcec3165a2817f049c3e44191b73ff472feef7e53 (patch)
tree5652bff9e874afca19c631ed72a4b5d217aeb279 /app-i18n/prime/files
parentnew dep for bugger (Manifest recommit) (diff)
downloadgentoo-2-cec3165a2817f049c3e44191b73ff472feef7e53.tar.gz
gentoo-2-cec3165a2817f049c3e44191b73ff472feef7e53.tar.bz2
gentoo-2-cec3165a2817f049c3e44191b73ff472feef7e53.zip
Added a fix for ruby 1.6. Extracted from prime-0.7.a.1
Diffstat (limited to 'app-i18n/prime/files')
-rw-r--r--app-i18n/prime/files/digest-prime-0.7a-r11
-rw-r--r--app-i18n/prime/files/prime-0.7.a.1.diff30
2 files changed, 31 insertions, 0 deletions
diff --git a/app-i18n/prime/files/digest-prime-0.7a-r1 b/app-i18n/prime/files/digest-prime-0.7a-r1
new file mode 100644
index 000000000000..792d921f0686
--- /dev/null
+++ b/app-i18n/prime/files/digest-prime-0.7a-r1
@@ -0,0 +1 @@
+MD5 5f2e3bb7f54175078696ca8575f6c784 prime-0.7.a.tar.gz 229156
diff --git a/app-i18n/prime/files/prime-0.7.a.1.diff b/app-i18n/prime/files/prime-0.7.a.1.diff
new file mode 100644
index 000000000000..1482d8a1195a
--- /dev/null
+++ b/app-i18n/prime/files/prime-0.7.a.1.diff
@@ -0,0 +1,30 @@
+diff -urN taiyaki.rb.orig taiyaki.rb
+--- taiyaki.rb.org 2004-02-05 20:39:32.000000000 +0900
++++ taiyaki.rb 2004-03-03 03:21:51.000000000 +0900
+@@ -20,6 +20,26 @@
+ end
+ end
+
++### Considering under compatibility with Ruby1.6
++begin
++ Array.new([])
++rescue TypeError
++ class Array
++ alias original_initialize initialize
++
++ def initialize(value = 0)
++ if value.kind_of?(Array) then
++ original_initialize(value.length)
++ self.length.times {|i|
++ self[i] = value[i]
++ }
++ else
++ original_initialize(value)
++ end
++ end
++ end
++end
++
+ def require (name, package = nil, url = nil)
+ package_name =
+ {'progressbar' => 'progressbar',