summaryrefslogtreecommitdiff
path: root/data/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'data/ruby')
-rw-r--r--data/ruby/_metadata/version2
-rw-r--r--data/ruby/make.sh8
-rw-r--r--data/ruby/ruby-1.8.6-p111.tar.gzbin0 -> 4547579 bytes
-rw-r--r--data/ruby/ruby-1.9.0-0.tar.gzbin5923616 -> 0 bytes
-rw-r--r--data/ruby/stackend.diff12
-rw-r--r--data/ruby/tools.diff28
6 files changed, 39 insertions, 11 deletions
diff --git a/data/ruby/_metadata/version b/data/ruby/_metadata/version
index 1b2c3b824..6aa428f33 100644
--- a/data/ruby/_metadata/version
+++ b/data/ruby/_metadata/version
@@ -1 +1 @@
-1.9.0-0
+1.8.6-p111
diff --git a/data/ruby/make.sh b/data/ruby/make.sh
index 6618a55da..9815e2cf9 100644
--- a/data/ruby/make.sh
+++ b/data/ruby/make.sh
@@ -2,7 +2,11 @@ pkg:extract
cd *
pkg:patch
autoconf
-pkg:configure ac_cv_func_setpgrp_void=yes rb_cv_stack_grow_dir=-1 --disable-rpath --enable-shared
+pkg:configure ac_cv_func_setpgrp_void=yes rb_cv_binary_elf=no rb_cv_stack_grow_dir=-1 rb_cv_bsd_signal=yes ac_cv_type_getgroups=gid_t ac_cv_c_stack_direction=1 ac_cv_func_memcmp_working=yes --enable-wide-getaddrinfo
make
+cd ext/iconv
+touch iconv.c
+make LOCAL_LIBS=-liconv
+cd ../..
pkg:install
-pkg: rm -rf /usr/share
+pkg: rm -f /usr/lib/libruby-static.a
diff --git a/data/ruby/ruby-1.8.6-p111.tar.gz b/data/ruby/ruby-1.8.6-p111.tar.gz
new file mode 100644
index 000000000..a5e774698
--- /dev/null
+++ b/data/ruby/ruby-1.8.6-p111.tar.gz
Binary files differ
diff --git a/data/ruby/ruby-1.9.0-0.tar.gz b/data/ruby/ruby-1.9.0-0.tar.gz
deleted file mode 100644
index 8e2896f19..000000000
--- a/data/ruby/ruby-1.9.0-0.tar.gz
+++ /dev/null
Binary files differ
diff --git a/data/ruby/stackend.diff b/data/ruby/stackend.diff
new file mode 100644
index 000000000..2bbb5fe40
--- /dev/null
+++ b/data/ruby/stackend.diff
@@ -0,0 +1,12 @@
+diff -ru ruby-1.8.6-p111/gc.c ruby-1.8.6-p111+iPhone/gc.c
+--- ruby-1.8.6-p111/gc.c 2007-03-03 07:30:46.000000000 +0000
++++ ruby-1.8.6-p111+iPhone/gc.c 2008-01-14 10:08:59.000000000 +0000
+@@ -1365,7 +1367,7 @@
+ setjmp(save_regs_gc_mark);
+ mark_locations_array((VALUE*)save_regs_gc_mark, sizeof(save_regs_gc_mark) / sizeof(VALUE *));
+ #if STACK_GROW_DIRECTION < 0
+- rb_gc_mark_locations((VALUE*)STACK_END, rb_gc_stack_start);
++ rb_gc_mark_locations((VALUE*)((uintptr_t)STACK_END & ~0xf), rb_gc_stack_start);
+ #elif STACK_GROW_DIRECTION > 0
+ rb_gc_mark_locations(rb_gc_stack_start, (VALUE*)STACK_END + 1);
+ #else
diff --git a/data/ruby/tools.diff b/data/ruby/tools.diff
index 5dc451bb1..e2e6723bf 100644
--- a/data/ruby/tools.diff
+++ b/data/ruby/tools.diff
@@ -1,7 +1,7 @@
-diff -r -u ruby-1.9.0-0/configure.in ruby-1.9.0-0+iPhone/configure.in
---- ruby-1.9.0-0/configure.in 2007-12-25 13:55:45.000000000 +0000
-+++ ruby-1.9.0-0+iPhone/configure.in 2008-01-01 22:44:55.000000000 +0000
-@@ -1124,7 +1124,7 @@
+diff -ru ruby-1.8.6-p111/configure.in ruby-1.8.6-p111+iPhone/configure.in
+--- ruby-1.8.6-p111/configure.in 2007-09-07 07:38:51.000000000 +0000
++++ ruby-1.8.6-p111+iPhone/configure.in 2008-01-14 07:16:01.000000000 +0000
+@@ -1052,7 +1052,7 @@
rhapsody*) : ${LDSHARED='cc -dynamic -bundle -undefined suppress'}
: ${LDFLAGS=""}
rb_cv_dlopen=yes ;;
@@ -10,16 +10,28 @@ diff -r -u ruby-1.9.0-0/configure.in ruby-1.9.0-0+iPhone/configure.in
: ${LDFLAGS=""}
: ${LIBPATHENV=DYLD_LIBRARY_PATH}
rb_cv_dlopen=yes ;;
-@@ -1270,7 +1270,7 @@
+@@ -1172,15 +1172,15 @@
+
+ case "$target_os" in
+ linux* | gnu* | k*bsd*-gnu)
+- STRIP='strip -S -x';;
++ STRIP=${STRIP}' -S -x';;
+ nextstep*)
+- STRIP='strip -A -n';;
++ STRIP=${STRIP}' -A -n';;
+ openstep*)
+- STRIP='strip -A -n';;
++ STRIP=${STRIP}' -A -n';;
rhapsody*)
- STRIP='strip -A -n';;
+- STRIP='strip -A -n';;
++ STRIP=${STRIP}' -A -n';;
darwin*)
- STRIP='strip -A -n';;
-+ STRIP='arm-apple-darwin-strip -A -n';;
++ STRIP=${STRIP}' -A -n';;
esac
EXTSTATIC=
-@@ -1462,7 +1462,7 @@
+@@ -1372,7 +1372,7 @@
;;
darwin*)
LIBRUBY_SO='lib$(RUBY_SO_NAME).$(MAJOR).$(MINOR).$(TEENY).dylib'